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.001164/0.001164, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001507/0.001507, allocations: 196.9 kB / 16.14 MB, free: 6.707 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.315/1.315, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001931/0.001931, allocations: 279 kB / 290.2 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9059/0.9059, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 92.58 kB / 0.5946 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.1624, allocations: 86.98 MB / 0.6795 GB, free: 1.07 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4695/0.6319, allocations: 191.6 MB / 0.8667 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01008/0.642, allocations: 6.987 MB / 0.8735 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001354/0.6434, allocations: 40.31 kB / 0.8736 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001501/0.6449, allocations: 0.5678 MB / 0.8741 GB, free: 9.547 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00494/0.6499, allocations: 2.19 MB / 0.8762 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.6527, allocations: 1.277 MB / 0.8775 GB, free: 6.949 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003848/0.6566, allocations: 3.74 MB / 0.8811 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.6576, allocations: 0.7898 MB / 0.8819 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001586/0.6592, allocations: 0.9719 MB / 0.8829 GB, free: 3.875 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.6606, allocations: 0.8149 MB / 0.8837 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.6607, allocations: 45.41 kB / 0.8837 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003585/0.6643, allocations: 2.233 MB / 0.8859 GB, free: 2.117 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000363/0.6647, allocations: 316.3 kB / 0.8862 GB, free: 1.91 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007027/0.6654, allocations: 0.5356 MB / 0.8867 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003949/0.6694, allocations: 2.426 MB / 0.8891 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.6694, allocations: 2.719 kB / 0.8891 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6694, allocations: 0 / 0.8891 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.508e-05/0.6694, allocations: 0 / 0.8891 GB, free: 15.98 MB / 0.6075 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.003534/0.673, allocations: 1.623 MB / 0.8907 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.673, allocations: 14.19 kB / 0.8907 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001595/0.6732, allocations: 119.2 kB / 0.8908 GB, free: 14.63 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002877/0.6761, allocations: 0.5311 MB / 0.8913 GB, free: 14.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001931/0.678, allocations: 0.9823 MB / 0.8923 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001103/0.6791, allocations: 280.6 kB / 0.8925 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.6792, allocations: 71.16 kB / 0.8926 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.6815, allocations: 1.128 MB / 0.8937 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.6816, allocations: 0 / 0.8937 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-05/0.6817, allocations: 31.98 kB / 0.8937 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.73e-05/0.6817, allocations: 29.31 kB / 0.8938 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.6846, allocations: 1.207 MB / 0.8949 GB, free: 11.33 MB / 0.6075 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.005292/0.6899, allocations: 3.207 MB / 0.8981 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.6914, allocations: 0.6802 MB / 0.8987 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007179/0.6922, allocations: 424.2 kB / 0.8992 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007771/0.6929, allocations: 1.021 MB / 0.9001 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008973/0.6939, allocations: 0.5182 MB / 0.9007 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.094e-06/0.6939, allocations: 0 / 0.9007 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002615/0.6965, allocations: 1.229 MB / 0.9019 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.6966, allocations: 144.8 kB / 0.902 GB, free: 3.738 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.6983, allocations: 1.192 MB / 0.9032 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.867e-05/0.6984, allocations: 41.7 kB / 0.9032 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003123/0.6987, allocations: 445.4 kB / 0.9036 GB, free: 2.047 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.6988, allocations: 185.3 kB / 0.9038 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.6991, allocations: 142.1 kB / 0.9039 GB, free: 1.719 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.6992, allocations: 334 kB / 0.9043 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.7004, allocations: 452.9 kB / 0.9047 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.7017, allocations: 0.621 MB / 0.9053 GB, free: 288 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.7036, allocations: 0.9496 MB / 0.9062 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.7036, allocations: 0 / 0.9062 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002882/0.7065, allocations: 1.232 MB / 0.9074 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.7066, allocations: 41.69 kB / 0.9075 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.7066, allocations: 0 / 0.9075 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.7066, allocations: 8.281 kB / 0.9075 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009119/0.7075, allocations: 199.7 kB / 0.9077 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.7075, allocations: 11.98 kB / 0.9077 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.709, allocations: 266.9 kB / 0.9079 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-05/0.7091, allocations: 39.97 kB / 0.908 GB, free: 13.47 MB / 0.6231 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.000389/0.7095, allocations: 327.9 kB / 0.9083 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.7097, allocations: 114.6 kB / 0.9084 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.7116, allocations: 0.9981 MB / 0.9094 GB, free: 12.01 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.7116, allocations: 15.88 kB / 0.9094 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.7116, allocations: 0 / 0.9094 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.7116, allocations: 0 / 0.9094 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004391/0.716, allocations: 3.166 MB / 0.9125 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.716, allocations: 8.594 kB / 0.9125 GB, free: 8.66 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005825/0.7166, allocations: 119.8 kB / 0.9126 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.256e-05/0.7167, allocations: 12 kB / 0.9126 GB, free: 8.531 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/0.7167, allocations: 23.98 kB / 0.9126 GB, free: 8.508 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-05/0.7167, allocations: 15.94 kB / 0.9126 GB, free: 8.492 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/0.7168, allocations: 8 kB / 0.9126 GB, free: 8.484 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.7189, allocations: 1.357 MB / 0.914 GB, free: 7.012 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005734/0.7195, allocations: 323.4 kB / 0.9143 GB, free: 6.676 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002007/0.7197, allocations: 23.98 kB / 0.9143 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.7209, allocations: 115.9 kB / 0.9144 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.721, allocations: 63.7 kB / 0.9145 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.682e-05/0.7211, allocations: 43.97 kB / 0.9145 GB, free: 6.434 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001563/0.7226, allocations: 0.8638 MB / 0.9154 GB, free: 5.562 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4.81e-07/0.7226, allocations: 0 / 0.9154 GB, free: 5.562 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001111/0.7238, allocations: 295.8 kB / 0.9156 GB, free: 5.273 MB / 0.6231 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.00334/0.7271, allocations: 2.146 MB / 0.9177 GB, free: 3.023 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002364/0.7295, allocations: 1.017 MB / 0.9187 GB, free: 1.992 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.7295, allocations: 0 / 0.9187 GB, free: 1.992 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0008807/0.7304, allocations: 0.5086 MB / 0.9192 GB, free: 1.473 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.733, allocations: 0.534 MB / 0.9197 GB, free: 0.9492 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01927/0.7523, allocations: 10.25 MB / 0.9298 GB, free: 6.152 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007983/0.7531, allocations: 1.069 MB / 0.9308 GB, free: 5.055 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001209/0.7543, allocations: 274.8 kB / 0.9311 GB, free: 4.785 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005217/0.7549, allocations: 359.3 kB / 0.9314 GB, free: 4.434 MB / 0.6387 GB Notification: Performance of SimCode: time 7.01e-07/0.7549, allocations: 4 kB / 0.9314 GB, free: 4.43 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04925/0.8041, allocations: 30.61 MB / 0.9613 GB, free: 6.258 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002706/0.8044, allocations: 273.5 kB / 0.9616 GB, free: 5.879 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/3.072, allocations: 3.938 kB / 0.9616 GB, free: 5.875 MB / 0.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)