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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.427/1.427, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002434/0.002434, allocations: 275.1 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002658/0.002659, allocations: 99.94 kB / 0.6065 GB, free: 24.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1461, allocations: 89.15 MB / 0.6936 GB, free: 4.246 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.482/0.6282, allocations: 194 MB / 0.883 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.013/0.6412, allocations: 6.948 MB / 0.8898 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.6434, allocations: 47.69 kB / 0.8899 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.6454, allocations: 0.6869 MB / 0.8905 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006171/0.6516, allocations: 2.334 MB / 0.8928 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003457/0.6551, allocations: 1.419 MB / 0.8942 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004082/0.6592, allocations: 2.982 MB / 0.8971 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001462/0.6606, allocations: 0.8982 MB / 0.898 GB, free: 10.34 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002765/0.6634, allocations: 1.127 MB / 0.8991 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.6648, allocations: 0.7902 MB / 0.8999 GB, free: 8.422 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.665, allocations: 100 kB / 0.9 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004021/0.669, allocations: 2.058 MB / 0.902 GB, free: 6.262 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004518/0.6695, allocations: 370.9 kB / 0.9023 GB, free: 5.898 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0008795/0.6704, allocations: 0.5869 MB / 0.9029 GB, free: 5.309 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004191/0.6746, allocations: 2.365 MB / 0.9052 GB, free: 2.938 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.6746, allocations: 0 / 0.9052 GB, free: 2.938 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.352e-06/0.6746, allocations: 3.938 kB / 0.9052 GB, free: 2.934 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.703e-05/0.6747, allocations: 0 / 0.9052 GB, free: 2.934 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.003624/0.6783, allocations: 1.613 MB / 0.9068 GB, free: 1.262 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.6783, allocations: 15.97 kB / 0.9068 GB, free: 1.246 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001626/0.6785, allocations: 122.4 kB / 0.9069 GB, free: 1.117 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003046/0.6816, allocations: 0.5331 MB / 0.9074 GB, free: 0.582 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002303/0.6839, allocations: 0.9908 MB / 0.9084 GB, free: 15.54 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001202/0.6851, allocations: 273.1 kB / 0.9087 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.6853, allocations: 68 kB / 0.9087 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002617/0.6879, allocations: 1.136 MB / 0.9098 GB, free: 14.05 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.6879, allocations: 0 / 0.9098 GB, free: 14.05 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.688, allocations: 28 kB / 0.9099 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.556e-05/0.6881, allocations: 29.31 kB / 0.9099 GB, free: 14 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003321/0.6914, allocations: 1.2 MB / 0.9111 GB, free: 12.79 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.006429/0.6978, allocations: 3.217 MB / 0.9142 GB, free: 9.496 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.6996, allocations: 0.688 MB / 0.9149 GB, free: 8.797 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008218/0.7005, allocations: 423.8 kB / 0.9153 GB, free: 8.383 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001065/0.7015, allocations: 1.021 MB / 0.9163 GB, free: 7.141 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/0.7026, allocations: 0.5143 MB / 0.9168 GB, free: 6.605 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 2.645e-06/0.7026, allocations: 3.938 kB / 0.9168 GB, free: 6.602 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.003128/0.7058, allocations: 1.221 MB / 0.918 GB, free: 5.371 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.7059, allocations: 140.8 kB / 0.9181 GB, free: 5.203 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.7081, allocations: 1.204 MB / 0.9193 GB, free: 3.984 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.7082, allocations: 37.7 kB / 0.9193 GB, free: 3.941 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004226/0.7086, allocations: 433.5 kB / 0.9197 GB, free: 3.516 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.7089, allocations: 193.2 kB / 0.9199 GB, free: 3.324 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002946/0.7092, allocations: 150.1 kB / 0.9201 GB, free: 3.172 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.7093, allocations: 326 kB / 0.9204 GB, free: 2.848 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.7107, allocations: 456.9 kB / 0.9208 GB, free: 2.398 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.7122, allocations: 0.6232 MB / 0.9214 GB, free: 1.73 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002234/0.7145, allocations: 0.9379 MB / 0.9223 GB, free: 0.7383 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.7145, allocations: 4 kB / 0.9223 GB, free: 0.7344 MB / 0.6387 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003508/0.718, allocations: 1.232 MB / 0.9235 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.384e-05/0.7181, allocations: 41.69 kB / 0.9236 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.7181, allocations: 4 kB / 0.9236 GB, free: 15.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.7181, allocations: 4 kB / 0.9236 GB, free: 15.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009692/0.7191, allocations: 203.9 kB / 0.9238 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.7191, allocations: 7.984 kB / 0.9238 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.7207, allocations: 279.2 kB / 0.9241 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.558e-05/0.7208, allocations: 35.97 kB / 0.9241 GB, free: 14.92 MB / 0.6544 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.000524/0.7214, allocations: 335.1 kB / 0.9244 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.7216, allocations: 114.7 kB / 0.9245 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.7238, allocations: 0.9951 MB / 0.9255 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/0.7239, allocations: 11.92 kB / 0.9255 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.7239, allocations: 0 / 0.9255 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.7239, allocations: 8 kB / 0.9255 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.729, allocations: 3.162 MB / 0.9286 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.7291, allocations: 8 kB / 0.9286 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/0.7297, allocations: 120 kB / 0.9287 GB, free: 9.996 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.361e-05/0.7297, allocations: 8 kB / 0.9287 GB, free: 9.988 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.7298, allocations: 31.98 kB / 0.9288 GB, free: 9.957 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.281e-05/0.7298, allocations: 11.94 kB / 0.9288 GB, free: 9.945 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.7298, allocations: 8 kB / 0.9288 GB, free: 9.938 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002397/0.7322, allocations: 1.349 MB / 0.9301 GB, free: 8.469 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005795/0.7328, allocations: 323.4 kB / 0.9304 GB, free: 8.133 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.733, allocations: 27.98 kB / 0.9304 GB, free: 8.105 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.7341, allocations: 111.9 kB / 0.9305 GB, free: 7.996 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.7342, allocations: 63.7 kB / 0.9306 GB, free: 7.934 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-05/0.7343, allocations: 35.97 kB / 0.9306 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.00167/0.736, allocations: 0.8716 MB / 0.9315 GB, free: 7.02 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.6e-07/0.736, allocations: 0 / 0.9315 GB, free: 7.02 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001087/0.7371, allocations: 303.8 kB / 0.9318 GB, free: 6.723 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.003231/0.7403, allocations: 2.113 MB / 0.9338 GB, free: 4.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002642/0.743, allocations: 1.052 MB / 0.9349 GB, free: 3.438 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.743, allocations: 0 / 0.9349 GB, free: 3.438 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009731/0.744, allocations: 0.5086 MB / 0.9354 GB, free: 2.918 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.7467, allocations: 0.5558 MB / 0.9359 GB, free: 2.383 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/0.7642, allocations: 9.99 MB / 0.9457 GB, free: 7.84 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000742/0.765, allocations: 1.061 MB / 0.9467 GB, free: 6.746 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001161/0.7662, allocations: 287.4 kB / 0.947 GB, free: 6.465 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005372/0.7667, allocations: 367.2 kB / 0.9473 GB, free: 6.105 MB / 0.67 GB Notification: Performance of SimCode: time 5.91e-07/0.7667, allocations: 0 / 0.9473 GB, free: 6.105 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06902/0.8357, allocations: 31.56 MB / 0.9782 GB, free: 6.965 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/9.042, allocations: 19.81 kB / 0.9782 GB, free: 6.949 MB / 0.7012 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)