Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.005012/0.005012, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.001268/0.001268, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.515/1.515, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05232/0.05232, allocations: 9.092 MB / 279 MB, free: 12.07 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.002132/0.002132, allocations: 63.91 kB / 387 MB, free: 8.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3049, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.155/0.46, allocations: 128.7 MB / 0.5506 GB, free: 15.67 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4254/0.8855, allocations: 111.1 MB / 0.6591 GB, free: 284 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.8862, allocations: 6.188 kB / 0.6591 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003524/0.8897, allocations: 1.368 MB / 0.6604 GB, free: 272 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004217/0.894, allocations: 1.65 MB / 0.662 GB, free: 224 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.08452/0.9785, allocations: 29.37 MB / 0.6907 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002215/0.9808, allocations: 1.408 MB / 0.6921 GB, free: 6.191 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.9811, allocations: 127 kB / 0.6922 GB, free: 6.094 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01675/0.9978, allocations: 8.954 MB / 0.701 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005848/0.9985, allocations: 374.1 kB / 0.7013 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.582e-05/0.9986, allocations: 44 kB / 0.7014 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06992/1.068, allocations: 34.96 MB / 0.7355 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002821/1.069, allocations: 119.2 kB / 0.7356 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006423/1.069, allocations: 310.4 kB / 0.7359 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05138/1.121, allocations: 14.09 MB / 0.7497 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/1.121, allocations: 0 / 0.7497 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.653e-06/1.121, allocations: 0 / 0.7497 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.769e-06/1.121, allocations: 0 / 0.7497 GB, free: 1.504 MB / 0.5294 GB 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.0074/1.128, allocations: 2.672 MB / 0.7523 GB, free: 14.79 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/1.128, allocations: 15.97 kB / 0.7523 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/1.129, allocations: 86.52 kB / 0.7524 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006221/1.129, allocations: 91.56 kB / 0.7525 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006065/1.13, allocations: 353.8 kB / 0.7528 GB, free: 14.21 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/1.13, allocations: 24.66 kB / 0.7528 GB, free: 14.18 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.085e-05/1.13, allocations: 39.94 kB / 0.7529 GB, free: 14.14 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/1.131, allocations: 0.6006 MB / 0.7535 GB, free: 13.53 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/1.131, allocations: 0 / 0.7535 GB, free: 13.53 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.295e-05/1.132, allocations: 16 kB / 0.7535 GB, free: 13.51 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/1.132, allocations: 12 kB / 0.7535 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/1.133, allocations: 0.5454 MB / 0.754 GB, free: 12.96 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003007/1.136, allocations: 2.55 MB / 0.7565 GB, free: 10.18 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/1.137, allocations: 0.5063 MB / 0.757 GB, free: 9.668 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006288/1.138, allocations: 334.3 kB / 0.7573 GB, free: 9.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4479/1.586, allocations: 139 MB / 0.893 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/1.586, allocations: 36.91 kB / 0.8931 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.595e-06/1.586, allocations: 0 / 0.8931 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005377/1.591, allocations: 2.336 MB / 0.8954 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/1.591, allocations: 55.03 kB / 0.8954 GB, free: 218 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/1.592, allocations: 262.2 kB / 0.8957 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/1.592, allocations: 29.7 kB / 0.8957 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.632e-05/1.592, allocations: 187.3 kB / 0.8959 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/1.592, allocations: 285.7 kB / 0.8961 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/1.592, allocations: 98.06 kB / 0.8962 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.811e-05/1.592, allocations: 358.8 kB / 0.8966 GB, free: 217 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/1.592, allocations: 260.4 kB / 0.8968 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004395/1.593, allocations: 402.6 kB / 0.8972 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008588/1.594, allocations: 0.6967 MB / 0.8979 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.594, allocations: 4 kB / 0.8979 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001205/1.595, allocations: 0.7887 MB / 0.8987 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/1.595, allocations: 4.938 kB / 0.8987 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/1.595, allocations: 5.125 kB / 0.8987 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/1.595, allocations: 64.45 kB / 0.8987 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/1.596, allocations: 99.81 kB / 0.8988 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08046/1.676, allocations: 17.2 MB / 0.9156 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006143/1.677, allocations: 31.97 kB / 0.9157 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.692e-05/1.677, allocations: 16 kB / 0.9157 GB, free: 196.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003706/1.677, allocations: 202.3 kB / 0.9159 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/1.677, allocations: 43.72 kB / 0.9159 GB, free: 196.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/1.68, allocations: 1.541 MB / 0.9174 GB, free: 195 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/1.68, allocations: 19.69 kB / 0.9174 GB, free: 195 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/1.68, allocations: 0 / 0.9174 GB, free: 195 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001623/1.681, allocations: 1.138 MB / 0.9185 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002712/1.684, allocations: 1.588 MB / 0.9201 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.684, allocations: 4 kB / 0.9201 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/1.685, allocations: 79.88 kB / 0.9202 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002641/1.685, allocations: 48.84 kB / 0.9202 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/1.685, allocations: 11.98 kB / 0.9202 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/1.686, allocations: 1.424 MB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/1.686, allocations: 0 / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/1.688, allocations: 1.186 MB / 0.9228 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/1.688, allocations: 115.4 kB / 0.9229 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/1.689, allocations: 11.98 kB / 0.9229 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004849/1.689, allocations: 27.98 kB / 0.9229 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/1.689, allocations: 39.94 kB / 0.923 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/1.689, allocations: 15.98 kB / 0.923 GB, free: 189 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002869/1.69, allocations: 243 kB / 0.9232 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.81e-07/1.69, allocations: 4.062 kB / 0.9232 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01127/1.701, allocations: 3.576 MB / 0.9267 GB, free: 185.7 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02267/1.724, allocations: 6.201 MB / 0.9328 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001794/1.725, allocations: 0.9572 MB / 0.9337 GB, free: 178.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.725, allocations: 0 / 0.9337 GB, free: 178.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007956/1.726, allocations: 0.4917 MB / 0.9342 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/1.728, allocations: 374.6 kB / 0.9345 GB, free: 178 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/1.74, allocations: 6.337 MB / 0.9407 GB, free: 171.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/1.74, allocations: 0.8486 MB / 0.9416 GB, free: 170.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004306/1.74, allocations: 160.8 kB / 0.9417 GB, free: 170.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/1.741, allocations: 167.4 kB / 0.9419 GB, free: 170.3 MB / 0.6075 GB Notification: Performance of SimCode: time 5.31e-07/1.741, allocations: 0 / 0.9419 GB, free: 170.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1863/1.927, allocations: 132 MB / 1.071 GB, free: 38.11 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.82/18.74, allocations: 11.98 kB / 1.071 GB, free: 38.1 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)