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.001951/0.00195, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002511/0.002511, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.467/1.467, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002525/0.002525, allocations: 271.1 kB / 290.2 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.102/1.102, allocations: 178.6 MB / 0.5068 GB, free: 4.793 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002724/0.002725, allocations: 102.5 kB / 0.6057 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1633, allocations: 89.16 MB / 0.6928 GB, free: 4.879 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5365/0.6999, allocations: 191.6 MB / 0.8799 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01171/0.7116, allocations: 7.004 MB / 0.8868 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.7133, allocations: 41.88 kB / 0.8868 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.715, allocations: 0.562 MB / 0.8874 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005856/0.7209, allocations: 2.189 MB / 0.8895 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003391/0.7243, allocations: 1.286 MB / 0.8908 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.005485/0.7298, allocations: 3.746 MB / 0.8944 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.7314, allocations: 0.7892 MB / 0.8952 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.7337, allocations: 0.9725 MB / 0.8961 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.7359, allocations: 0.8101 MB / 0.8969 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001668/0.7361, allocations: 48 kB / 0.897 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004314/0.7404, allocations: 2.225 MB / 0.8991 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0003932/0.7408, allocations: 314.9 kB / 0.8994 GB, free: 8.664 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006838/0.7415, allocations: 0.54 MB / 0.9 GB, free: 8.117 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003392/0.7449, allocations: 2.427 MB / 0.9023 GB, free: 5.684 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.7449, allocations: 0 / 0.9023 GB, free: 5.684 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.133e-06/0.7449, allocations: 0 / 0.9023 GB, free: 5.684 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.7449, allocations: 0 / 0.9023 GB, free: 5.684 MB / 0.6231 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.00351/0.7484, allocations: 1.625 MB / 0.9039 GB, free: 4 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.7485, allocations: 8.031 kB / 0.9039 GB, free: 3.992 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003184/0.7517, allocations: 0.5409 MB / 0.9045 GB, free: 3.449 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.7538, allocations: 0.9734 MB / 0.9054 GB, free: 2.438 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001215/0.7551, allocations: 281 kB / 0.9057 GB, free: 2.16 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.7552, allocations: 68 kB / 0.9057 GB, free: 2.094 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.7579, allocations: 1.12 MB / 0.9068 GB, free: 0.9453 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.7579, allocations: 7.938 kB / 0.9068 GB, free: 0.9375 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-05/0.758, allocations: 27.98 kB / 0.9069 GB, free: 0.9102 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-05/0.7581, allocations: 41.23 kB / 0.9069 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003349/0.7614, allocations: 1.192 MB / 0.9081 GB, free: 15.68 MB / 0.6387 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.006244/0.7677, allocations: 3.209 MB / 0.9112 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.7695, allocations: 0.688 MB / 0.9119 GB, free: 11.69 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008566/0.7703, allocations: 414.2 kB / 0.9123 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001086/0.7714, allocations: 1.021 MB / 0.9133 GB, free: 10.04 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.7726, allocations: 0.5221 MB / 0.9138 GB, free: 9.496 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 2.485e-06/0.7726, allocations: 0 / 0.9138 GB, free: 9.496 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.003244/0.7758, allocations: 1.22 MB / 0.915 GB, free: 8.266 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.7759, allocations: 144.8 kB / 0.9151 GB, free: 8.094 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.7781, allocations: 1.2 MB / 0.9163 GB, free: 6.879 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/0.7782, allocations: 41.64 kB / 0.9163 GB, free: 6.832 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004432/0.7787, allocations: 437.4 kB / 0.9167 GB, free: 6.402 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.7789, allocations: 197.2 kB / 0.9169 GB, free: 6.207 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000303/0.7792, allocations: 138.1 kB / 0.9171 GB, free: 6.066 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.7794, allocations: 326 kB / 0.9174 GB, free: 5.742 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.7807, allocations: 468.8 kB / 0.9178 GB, free: 5.281 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001551/0.7823, allocations: 0.6171 MB / 0.9184 GB, free: 4.617 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/0.7845, allocations: 0.9418 MB / 0.9193 GB, free: 3.625 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.7845, allocations: 4 kB / 0.9193 GB, free: 3.621 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003333/0.7878, allocations: 1.237 MB / 0.9206 GB, free: 2.371 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.021e-05/0.7879, allocations: 37.7 kB / 0.9206 GB, free: 2.328 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.7879, allocations: 7.984 kB / 0.9206 GB, free: 2.32 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.7879, allocations: 4 kB / 0.9206 GB, free: 2.316 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.789, allocations: 203.8 kB / 0.9208 GB, free: 2.117 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.789, allocations: 7.938 kB / 0.9208 GB, free: 2.109 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.7906, allocations: 270.8 kB / 0.9211 GB, free: 1.844 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.202e-05/0.7907, allocations: 35.98 kB / 0.9211 GB, free: 1.809 MB / 0.6387 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.0005146/0.7913, allocations: 337.9 kB / 0.9214 GB, free: 1.465 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.7915, allocations: 114.7 kB / 0.9215 GB, free: 1.352 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.7937, allocations: 0.9952 MB / 0.9225 GB, free: 352 kB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.7937, allocations: 4 kB / 0.9225 GB, free: 348 kB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.7937, allocations: 7.938 kB / 0.9225 GB, free: 340 kB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.7938, allocations: 3.984 kB / 0.9225 GB, free: 336 kB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.7989, allocations: 3.162 MB / 0.9256 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.7989, allocations: 8 kB / 0.9256 GB, free: 13 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006117/0.7995, allocations: 120 kB / 0.9257 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.387e-05/0.7995, allocations: 16 kB / 0.9257 GB, free: 12.87 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.401e-05/0.7996, allocations: 31.92 kB / 0.9258 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.397e-05/0.7996, allocations: 15.92 kB / 0.9258 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.106e-05/0.7996, allocations: 11.94 kB / 0.9258 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.802, allocations: 1.341 MB / 0.9271 GB, free: 11.35 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005117/0.8025, allocations: 331.3 kB / 0.9274 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.8027, allocations: 20 kB / 0.9274 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.8038, allocations: 111.9 kB / 0.9275 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.804, allocations: 59.77 kB / 0.9276 GB, free: 10.82 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/0.8041, allocations: 39.97 kB / 0.9276 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001632/0.8057, allocations: 0.8716 MB / 0.9285 GB, free: 9.902 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8057, allocations: 0 / 0.9285 GB, free: 9.902 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001086/0.8068, allocations: 303.8 kB / 0.9288 GB, free: 9.605 MB / 0.6544 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.0007687/0.8076, allocations: 351 kB / 0.9291 GB, free: 9.266 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002536/0.8101, allocations: 1.017 MB / 0.9301 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.8101, allocations: 0 / 0.9301 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009882/0.8111, allocations: 0.5125 MB / 0.9306 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002666/0.8138, allocations: 0.5341 MB / 0.9311 GB, free: 7.195 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004179/0.818, allocations: 2.343 MB / 0.9334 GB, free: 4.723 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007509/0.8188, allocations: 1.069 MB / 0.9345 GB, free: 3.625 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001128/0.8199, allocations: 275.2 kB / 0.9347 GB, free: 3.355 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.8202, allocations: 83.41 kB / 0.9348 GB, free: 3.273 MB / 0.6544 GB Notification: Performance of SimCode: time 5.21e-07/0.8202, allocations: 0 / 0.9348 GB, free: 3.273 MB / 0.6544 GB Notification: Performance of Templates: time 0.03952/0.8597, allocations: 21.27 MB / 0.9556 GB, free: 14.27 MB / 0.6856 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)