Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",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.006545/0.006545, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001157/0.001158, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.54/1.54, allocations: 205.1 MB / 222.5 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.04932/0.04932, allocations: 9.103 MB / 279 MB, free: 12.08 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.002528/0.002528, allocations: 63.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2912, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.1399/0.4311, allocations: 128.8 MB / 0.5508 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.428/0.8591, allocations: 111.1 MB / 0.6593 GB, free: 316 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007179/0.8598, allocations: 12.84 kB / 0.6593 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003165/0.8631, allocations: 1.368 MB / 0.6606 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00435/0.8674, allocations: 1.655 MB / 0.6622 GB, free: 252 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.08064/0.9481, allocations: 29.52 MB / 0.691 GB, free: 7.047 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002125/0.9502, allocations: 1.403 MB / 0.6924 GB, free: 6.035 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002966/0.9506, allocations: 128.9 kB / 0.6925 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01685/0.9674, allocations: 9.748 MB / 0.7021 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006091/0.9681, allocations: 383.8 kB / 0.7024 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.033e-05/0.9682, allocations: 40 kB / 0.7025 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07081/1.039, allocations: 35.26 MB / 0.7369 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000343/1.039, allocations: 118.9 kB / 0.737 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000557/1.04, allocations: 310.2 kB / 0.7373 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04771/1.088, allocations: 14.09 MB / 0.7511 GB, free: 224 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/1.088, allocations: 0 / 0.7511 GB, free: 224 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.392e-06/1.088, allocations: 0 / 0.7511 GB, free: 224 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.888e-06/1.088, allocations: 0 / 0.7511 GB, free: 224 kB / 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.006549/1.094, allocations: 2.576 MB / 0.7536 GB, free: 13.6 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/1.094, allocations: 12.03 kB / 0.7536 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.616e-05/1.094, allocations: 86.52 kB / 0.7537 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006075/1.095, allocations: 79.41 kB / 0.7537 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004424/1.096, allocations: 350 kB / 0.7541 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/1.096, allocations: 28.66 kB / 0.7541 GB, free: 13.01 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.148e-05/1.096, allocations: 35.94 kB / 0.7541 GB, free: 12.98 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/1.097, allocations: 0.6028 MB / 0.7547 GB, free: 12.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/1.097, allocations: 0 / 0.7547 GB, free: 12.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/1.097, allocations: 12 kB / 0.7547 GB, free: 12.35 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/1.097, allocations: 19.75 kB / 0.7548 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/1.098, allocations: 0.552 MB / 0.7553 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/1.101, allocations: 2.498 MB / 0.7577 GB, free: 9.074 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/1.102, allocations: 0.4912 MB / 0.7582 GB, free: 8.578 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005208/1.102, allocations: 334.8 kB / 0.7585 GB, free: 8.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.503/1.606, allocations: 139 MB / 0.8943 GB, free: 64.48 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/1.606, allocations: 36.59 kB / 0.8943 GB, free: 64.45 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.766e-06/1.606, allocations: 0 / 0.8943 GB, free: 64.45 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005441/1.611, allocations: 2.334 MB / 0.8966 GB, free: 63.97 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.146e-05/1.611, allocations: 55.91 kB / 0.8966 GB, free: 63.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/1.611, allocations: 258.4 kB / 0.8969 GB, free: 63.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/1.611, allocations: 33.58 kB / 0.8969 GB, free: 63.77 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.77e-05/1.611, allocations: 187.2 kB / 0.8971 GB, free: 63.65 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/1.612, allocations: 265.1 kB / 0.8973 GB, free: 63.48 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/1.612, allocations: 99.67 kB / 0.8974 GB, free: 63.46 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.055e-05/1.612, allocations: 351.8 kB / 0.8978 GB, free: 63.15 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004357/1.612, allocations: 272.2 kB / 0.898 GB, free: 63.15 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004806/1.613, allocations: 386.5 kB / 0.8984 GB, free: 63.04 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009502/1.614, allocations: 0.6817 MB / 0.8991 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/1.614, allocations: 3 kB / 0.8991 GB, free: 62.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001285/1.615, allocations: 0.7949 MB / 0.8998 GB, free: 62.81 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/1.615, allocations: 9.75 kB / 0.8998 GB, free: 62.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/1.615, allocations: 3.562 kB / 0.8998 GB, free: 62.81 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002435/1.615, allocations: 63.27 kB / 0.8999 GB, free: 62.79 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/1.616, allocations: 130.8 kB / 0.9 GB, free: 62.79 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06828/1.684, allocations: 19.42 MB / 0.919 GB, free: 55.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/1.685, allocations: 28.94 kB / 0.919 GB, free: 55.41 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.128e-05/1.685, allocations: 21.94 kB / 0.919 GB, free: 55.41 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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.0002314/1.685, allocations: 188.6 kB / 0.9192 GB, free: 55.29 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.308e-05/1.685, allocations: 44.62 kB / 0.9193 GB, free: 55.27 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/1.687, allocations: 1.668 MB / 0.9209 GB, free: 55 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/1.687, allocations: 10.19 kB / 0.9209 GB, free: 55 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/1.687, allocations: 0 / 0.9209 GB, free: 55 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001241/1.688, allocations: 1.253 MB / 0.9221 GB, free: 54.51 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/1.69, allocations: 1.706 MB / 0.9238 GB, free: 54.15 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/1.69, allocations: 0 / 0.9238 GB, free: 54.15 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/1.69, allocations: 81.28 kB / 0.9239 GB, free: 54.15 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002478/1.69, allocations: 101.6 kB / 0.924 GB, free: 54.13 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/1.69, allocations: 8.906 kB / 0.924 GB, free: 54.13 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009187/1.691, allocations: 2.001 MB / 0.9259 GB, free: 52.25 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.691, allocations: 0 / 0.9259 GB, free: 52.25 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/1.693, allocations: 1.294 MB / 0.9272 GB, free: 52.03 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.989e-05/1.693, allocations: 116.2 kB / 0.9273 GB, free: 51.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.208e-05/1.693, allocations: 17.41 kB / 0.9273 GB, free: 51.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/1.694, allocations: 26.42 kB / 0.9273 GB, free: 51.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/1.694, allocations: 48.89 kB / 0.9274 GB, free: 51.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/1.694, allocations: 9.75 kB / 0.9274 GB, free: 51.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001835/1.694, allocations: 228.7 kB / 0.9276 GB, free: 51.77 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/1.694, allocations: 0 / 0.9276 GB, free: 51.77 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008007/1.702, allocations: 3.514 MB / 0.9311 GB, free: 48.93 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.02048/1.722, allocations: 6.226 MB / 0.9371 GB, free: 44.65 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002372/1.725, allocations: 1.02 MB / 0.9381 GB, free: 43.98 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/1.725, allocations: 2.531 kB / 0.9381 GB, free: 43.98 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000746/1.726, allocations: 0.4991 MB / 0.9386 GB, free: 43.67 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/1.728, allocations: 398.9 kB / 0.939 GB, free: 43.41 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/1.744, allocations: 6.185 MB / 0.945 GB, free: 38.71 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/1.744, allocations: 0.8554 MB / 0.9459 GB, free: 37.89 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004554/1.745, allocations: 135.7 kB / 0.946 GB, free: 37.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/1.745, allocations: 173.7 kB / 0.9462 GB, free: 37.76 MB / 0.6075 GB Notification: Performance of SimCode: time 9.12e-07/1.745, allocations: 0 / 0.9462 GB, free: 37.76 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4278/2.173, allocations: 133.1 MB / 1.076 GB, free: 253.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.65/19.82, allocations: 14.34 kB / 1.076 GB, free: 253.4 MB / 0.67 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)