Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",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.001006/0.001007, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001004/0.001004, allocations: 191.8 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.7572/0.7572, allocations: 9.085 MB / 278.5 MB, free: 12.33 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 75.83 kB / 337.6 MB, free: 25.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06834/0.06964, allocations: 48.15 MB / 385.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.267/0.3367, allocations: 141.6 MB / 0.515 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3842/0.7209, allocations: 97.46 MB / 0.6102 GB, free: 268 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005205/0.7215, allocations: 11.06 kB / 0.6102 GB, free: 264 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.724, allocations: 1.277 MB / 0.6114 GB, free: 256 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002832/0.7269, allocations: 1.553 MB / 0.613 GB, free: 240 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05608/0.783, allocations: 26.69 MB / 0.639 GB, free: 15.46 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.7845, allocations: 1.416 MB / 0.6404 GB, free: 15.33 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.7847, allocations: 124.6 kB / 0.6405 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01275/0.7974, allocations: 10.03 MB / 0.6503 GB, free: 11.64 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004122/0.7978, allocations: 390.2 kB / 0.6507 GB, free: 11.4 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.7979, allocations: 44 kB / 0.6507 GB, free: 11.36 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03976/0.8377, allocations: 29.21 MB / 0.6792 GB, free: 7.508 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.8379, allocations: 117.5 kB / 0.6794 GB, free: 7.441 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004829/0.8384, allocations: 306.7 kB / 0.6797 GB, free: 7.227 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02609/0.8645, allocations: 11.95 MB / 0.6913 GB, free: 12.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.8645, allocations: 0 / 0.6913 GB, free: 12.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.8645, allocations: 4 kB / 0.6913 GB, free: 12.57 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.8645, allocations: 0 / 0.6913 GB, free: 12.57 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.004007/0.8686, allocations: 2.135 MB / 0.6934 GB, free: 10.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.8686, allocations: 12.03 kB / 0.6934 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.92e-05/0.8687, allocations: 94.45 kB / 0.6935 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004505/0.8691, allocations: 75.41 kB / 0.6936 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.8695, allocations: 327.4 kB / 0.6939 GB, free: 9.844 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.8695, allocations: 32.66 kB / 0.6939 GB, free: 9.812 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.627e-05/0.8696, allocations: 32 kB / 0.694 GB, free: 9.781 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.8706, allocations: 0.5844 MB / 0.6945 GB, free: 9.184 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.8706, allocations: 7.906 kB / 0.6945 GB, free: 9.176 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.296e-05/0.8707, allocations: 12 kB / 0.6946 GB, free: 9.164 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.8707, allocations: 16.92 kB / 0.6946 GB, free: 9.152 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.8717, allocations: 0.5141 MB / 0.6951 GB, free: 8.645 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.8737, allocations: 2.486 MB / 0.6975 GB, free: 5.953 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008944/0.8746, allocations: 0.4888 MB / 0.698 GB, free: 5.453 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004456/0.8751, allocations: 326.3 kB / 0.6983 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.286/1.161, allocations: 113.3 MB / 0.8089 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/1.161, allocations: 33.44 kB / 0.8089 GB, free: 310.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.807e-06/1.161, allocations: 6.078 kB / 0.8089 GB, free: 310.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005802/1.167, allocations: 2.637 MB / 0.8115 GB, free: 309.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/1.167, allocations: 57.73 kB / 0.8116 GB, free: 309.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/1.167, allocations: 256.8 kB / 0.8118 GB, free: 309.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/1.167, allocations: 35.58 kB / 0.8118 GB, free: 309.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/1.167, allocations: 194.1 kB / 0.812 GB, free: 309 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/1.168, allocations: 266.4 kB / 0.8123 GB, free: 308.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/1.168, allocations: 99.59 kB / 0.8124 GB, free: 308.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.713e-05/1.168, allocations: 352.9 kB / 0.8127 GB, free: 308.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/1.168, allocations: 281.6 kB / 0.813 GB, free: 308.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/1.169, allocations: 401.1 kB / 0.8134 GB, free: 308 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/1.17, allocations: 0.7108 MB / 0.8141 GB, free: 307.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.17, allocations: 3.938 kB / 0.8141 GB, free: 307.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001417/1.171, allocations: 0.8213 MB / 0.8149 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/1.171, allocations: 5.5 kB / 0.8149 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/1.171, allocations: 4.125 kB / 0.8149 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007434/1.172, allocations: 152 kB / 0.815 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005546/1.173, allocations: 120.9 kB / 0.8151 GB, free: 307.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/1.174, allocations: 3.757 MB / 0.8188 GB, free: 303.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/1.175, allocations: 48.44 kB / 0.8189 GB, free: 303.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/1.175, allocations: 21.94 kB / 0.8189 GB, free: 303.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001976/1.175, allocations: 185.6 kB / 0.819 GB, free: 303.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.495e-05/1.175, allocations: 40.53 kB / 0.8191 GB, free: 303.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/1.177, allocations: 1.685 MB / 0.8207 GB, free: 302.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/1.177, allocations: 9.234 kB / 0.8207 GB, free: 302.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/1.177, allocations: 1.312 kB / 0.8207 GB, free: 302.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001267/1.178, allocations: 1.247 MB / 0.822 GB, free: 301.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/1.18, allocations: 1.733 MB / 0.8237 GB, free: 300.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/1.18, allocations: 3.875 kB / 0.8237 GB, free: 300.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/1.18, allocations: 75.25 kB / 0.8237 GB, free: 300.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005736/1.181, allocations: 252.6 kB / 0.824 GB, free: 300.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/1.181, allocations: 12.16 kB / 0.824 GB, free: 300.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007126/1.182, allocations: 1.777 MB / 0.8257 GB, free: 298.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/1.182, allocations: 2.75 kB / 0.8257 GB, free: 298.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/1.183, allocations: 1.461 MB / 0.8271 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.729e-05/1.183, allocations: 112 kB / 0.8273 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.822e-05/1.183, allocations: 8.812 kB / 0.8273 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/1.184, allocations: 44.42 kB / 0.8273 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/1.184, allocations: 49.56 kB / 0.8274 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/1.184, allocations: 15.64 kB / 0.8274 GB, free: 298 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001665/1.184, allocations: 225 kB / 0.8276 GB, free: 297.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.184, allocations: 0 / 0.8276 GB, free: 297.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004093/1.188, allocations: 1.971 MB / 0.8295 GB, free: 297.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008834/1.197, allocations: 4.494 MB / 0.8339 GB, free: 296 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001815/1.199, allocations: 0.9022 MB / 0.8348 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.199, allocations: 0 / 0.8348 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006219/1.199, allocations: 432.8 kB / 0.8352 GB, free: 295.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/1.201, allocations: 407.1 kB / 0.8356 GB, free: 295 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007183/1.208, allocations: 5.905 MB / 0.8413 GB, free: 289.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/1.209, allocations: 0.8446 MB / 0.8422 GB, free: 288.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003779/1.209, allocations: 92.02 kB / 0.8423 GB, free: 288.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/1.209, allocations: 167.4 kB / 0.8424 GB, free: 288.4 MB / 0.5919 GB Notification: Performance of SimCode: time 7.01e-07/1.209, allocations: 2.875 kB / 0.8424 GB, free: 288.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.615/2.824, allocations: 77.7 MB / 0.9183 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/2.824, allocations: 243.8 kB / 0.9185 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.461/9.285, allocations: 0 / 0.9185 GB, free: 210.5 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)