Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 105.1 kB / 16.41 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 189.7 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002141/0.00214, allocations: 284.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8813/0.8813, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 95.86 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4161, allocations: 86.97 MB / 0.767 GB, free: 3.91 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1965/0.6126, allocations: 194 MB / 0.9565 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.4523/1.065, allocations: 6.919 MB / 0.9633 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002029/1.067, allocations: 44.22 kB / 0.9633 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001992/1.069, allocations: 0.6918 MB / 0.964 GB, free: 2 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.007325/1.076, allocations: 2.333 MB / 0.9663 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004331/1.081, allocations: 1.434 MB / 0.9677 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.005228/1.086, allocations: 2.99 MB / 0.9706 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001932/1.088, allocations: 0.8891 MB / 0.9715 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003521/1.092, allocations: 1.152 MB / 0.9726 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002011/1.094, allocations: 0.7955 MB / 0.9734 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.00046/1.094, allocations: 103.3 kB / 0.9735 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005011/1.099, allocations: 2.054 MB / 0.9755 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0007392/1.1, allocations: 370.7 kB / 0.9758 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001567/1.101, allocations: 0.584 MB / 0.9764 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.005484/1.107, allocations: 2.423 MB / 0.9787 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/1.107, allocations: 0 / 0.9787 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/1.107, allocations: 1.062 kB / 0.9787 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.569e-05/1.107, allocations: 0 / 0.9787 GB, free: 1.617 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.004894/1.112, allocations: 1.633 MB / 0.9803 GB, free: 16.75 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/1.112, allocations: 11.41 kB / 0.9804 GB, free: 16.75 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003279/1.115, allocations: 0.5334 MB / 0.9809 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002729/1.118, allocations: 1.046 MB / 0.9819 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-05/1.118, allocations: 56.34 kB / 0.9819 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/1.118, allocations: 64.38 kB / 0.982 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/1.121, allocations: 1.106 MB / 0.9831 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/1.121, allocations: 2.703 kB / 0.9831 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/1.121, allocations: 32.62 kB / 0.9831 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.33e-05/1.121, allocations: 31.61 kB / 0.9832 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003013/1.124, allocations: 1.165 MB / 0.9843 GB, free: 16.24 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006028/1.13, allocations: 3.156 MB / 0.9874 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/1.132, allocations: 0.7012 MB / 0.9881 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007453/1.133, allocations: 417.1 kB / 0.9885 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009329/1.134, allocations: 1.024 MB / 0.9895 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/1.135, allocations: 0.5176 MB / 0.99 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=57): time 3.928e-06/1.135, allocations: 1.094 kB / 0.99 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of matching and sorting (n=57): time 0.00307/1.138, allocations: 1.22 MB / 0.9912 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.682e-05/1.138, allocations: 142.2 kB / 0.9913 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/1.14, allocations: 1.174 MB / 0.9924 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.000127/1.14, allocations: 40.41 kB / 0.9925 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/1.14, allocations: 439.6 kB / 0.9929 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000166/1.141, allocations: 190.8 kB / 0.9931 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/1.141, allocations: 143.8 kB / 0.9932 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001256/1.141, allocations: 335 kB / 0.9935 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/1.142, allocations: 438.5 kB / 0.994 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/1.144, allocations: 0.5924 MB / 0.9945 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/1.145, allocations: 0.926 MB / 0.9954 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.145, allocations: 0 / 0.9954 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003028/1.149, allocations: 1.197 MB / 0.9966 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/1.149, allocations: 44.83 kB / 0.9966 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/1.149, allocations: 5.25 kB / 0.9967 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/1.149, allocations: 6.75 kB / 0.9967 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009084/1.15, allocations: 186.1 kB / 0.9968 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/1.15, allocations: 13.5 kB / 0.9968 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/1.151, allocations: 246.4 kB / 0.9971 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/1.151, allocations: 36.17 kB / 0.9971 GB, free: 12.46 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005401/1.152, allocations: 339.5 kB / 0.9974 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003209/1.152, allocations: 121.9 kB / 0.9976 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/1.154, allocations: 0.9884 MB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/1.154, allocations: 6.375 kB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.154, allocations: 3.5 kB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/1.154, allocations: 3 kB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005001/1.159, allocations: 3.163 MB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/1.159, allocations: 9.328 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006002/1.16, allocations: 120 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.866e-05/1.16, allocations: 12.44 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/1.16, allocations: 25.77 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.159e-05/1.16, allocations: 18.33 kB / 1.002 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.16, allocations: 17.88 kB / 1.002 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/1.162, allocations: 1.335 MB / 1.003 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000645/1.163, allocations: 334.1 kB / 1.003 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/1.163, allocations: 23.42 kB / 1.003 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/1.165, allocations: 101.4 kB / 1.004 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/1.165, allocations: 56.28 kB / 1.004 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.569e-05/1.165, allocations: 42.88 kB / 1.004 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001566/1.166, allocations: 0.8519 MB / 1.004 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/1.166, allocations: 0 / 1.004 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001335/1.168, allocations: 305 kB / 1.005 GB, free: 10.48 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008688/1.169, allocations: 340.3 kB / 1.005 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002432/1.171, allocations: 1.023 MB / 1.006 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/1.171, allocations: 4.125 kB / 1.006 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009115/1.172, allocations: 0.5151 MB / 1.007 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002921/1.175, allocations: 0.5476 MB / 1.007 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003819/1.179, allocations: 2.066 MB / 1.009 GB, free: 9.164 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007433/1.179, allocations: 1.062 MB / 1.01 GB, free: 8.449 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003798/1.18, allocations: 90.72 kB / 1.01 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of SimCode: time 5.61e-07/1.18, allocations: 0 / 1.01 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of Templates: time 0.0279/1.208, allocations: 18.82 MB / 1.029 GB, free: 1.875 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)