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.001209/0.001209, allocations: 108 kB / 15.6 MB, free: 132 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.001181/0.001181, allocations: 194.2 kB / 16.53 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.554/1.554, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04764/0.04764, allocations: 9.092 MB / 278.9 MB, free: 12.19 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.001488/0.001488, allocations: 67.84 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 48.15 MB / 386.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.3812/0.4829, allocations: 142.2 MB / 0.5161 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4787/0.9617, allocations: 97.7 MB / 0.6115 GB, free: 320 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.963, allocations: 8.156 kB / 0.6115 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004683/0.9677, allocations: 1.363 MB / 0.6128 GB, free: 312 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00539/0.9732, allocations: 1.652 MB / 0.6144 GB, free: 288 kB / 446.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.1013/1.074, allocations: 29.54 MB / 0.6433 GB, free: 13.64 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002481/1.077, allocations: 1.415 MB / 0.6447 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003543/1.077, allocations: 132.4 kB / 0.6448 GB, free: 13.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02/1.097, allocations: 9.857 MB / 0.6544 GB, free: 9.25 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006637/1.098, allocations: 385.8 kB / 0.6548 GB, free: 8.992 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.7e-05/1.098, allocations: 40 kB / 0.6548 GB, free: 8.953 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05836/1.157, allocations: 28.65 MB / 0.6828 GB, free: 4.738 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004643/1.157, allocations: 118.8 kB / 0.6829 GB, free: 4.625 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007844/1.158, allocations: 308.1 kB / 0.6832 GB, free: 4.328 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04735/1.205, allocations: 11.93 MB / 0.6949 GB, free: 9.238 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/1.205, allocations: 4 kB / 0.6949 GB, free: 9.234 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.843e-06/1.205, allocations: 0 / 0.6949 GB, free: 9.234 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/1.205, allocations: 0 / 0.6949 GB, free: 9.234 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.006817/1.212, allocations: 2.142 MB / 0.697 GB, free: 7.047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/1.212, allocations: 12.03 kB / 0.697 GB, free: 7.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.928e-05/1.212, allocations: 86.52 kB / 0.6971 GB, free: 6.941 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005333/1.213, allocations: 75.41 kB / 0.6971 GB, free: 6.867 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/1.213, allocations: 329.2 kB / 0.6974 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/1.213, allocations: 32.66 kB / 0.6975 GB, free: 6.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/1.213, allocations: 35.94 kB / 0.6975 GB, free: 6.445 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/1.215, allocations: 0.5844 MB / 0.6981 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/1.215, allocations: 4 kB / 0.6981 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/1.215, allocations: 16 kB / 0.6981 GB, free: 5.82 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/1.215, allocations: 13.8 kB / 0.6981 GB, free: 5.809 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/1.216, allocations: 0.5173 MB / 0.6986 GB, free: 5.297 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/1.219, allocations: 2.486 MB / 0.701 GB, free: 2.605 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/1.22, allocations: 0.4886 MB / 0.7015 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005412/1.22, allocations: 342.2 kB / 0.7018 GB, free: 1.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3945/1.615, allocations: 113.3 MB / 0.8124 GB, free: 308 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/1.615, allocations: 35.19 kB / 0.8125 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.367e-06/1.615, allocations: 0 / 0.8125 GB, free: 307.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006867/1.622, allocations: 2.641 MB / 0.8151 GB, free: 306.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/1.622, allocations: 55.52 kB / 0.8151 GB, free: 306.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/1.622, allocations: 256.5 kB / 0.8154 GB, free: 306.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/1.622, allocations: 31.61 kB / 0.8154 GB, free: 306.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000128/1.622, allocations: 191.4 kB / 0.8156 GB, free: 306.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/1.623, allocations: 269.6 kB / 0.8158 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/1.623, allocations: 99.16 kB / 0.8159 GB, free: 306.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001092/1.623, allocations: 350.2 kB / 0.8162 GB, free: 305.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006851/1.624, allocations: 282.9 kB / 0.8165 GB, free: 305.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006851/1.624, allocations: 399.8 kB / 0.8169 GB, free: 305.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/1.625, allocations: 0.7132 MB / 0.8176 GB, free: 305.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/1.625, allocations: 6.625 kB / 0.8176 GB, free: 305.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001558/1.627, allocations: 0.8199 MB / 0.8184 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/1.627, allocations: 6.062 kB / 0.8184 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/1.627, allocations: 3.312 kB / 0.8184 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008055/1.628, allocations: 155.9 kB / 0.8186 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/1.628, allocations: 121.8 kB / 0.8187 GB, free: 304.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/1.631, allocations: 3.743 MB / 0.8223 GB, free: 300.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004306/1.631, allocations: 30.08 kB / 0.8224 GB, free: 300.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/1.631, allocations: 22.34 kB / 0.8224 GB, free: 300.9 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.0002945/1.631, allocations: 189.8 kB / 0.8226 GB, free: 300.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.49e-05/1.631, allocations: 48.69 kB / 0.8226 GB, free: 300.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/1.634, allocations: 1.677 MB / 0.8242 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.951e-05/1.634, allocations: 13.3 kB / 0.8243 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/1.634, allocations: 0 / 0.8243 GB, free: 299.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001361/1.635, allocations: 1.249 MB / 0.8255 GB, free: 299.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/1.637, allocations: 1.742 MB / 0.8272 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/1.637, allocations: 1.5 kB / 0.8272 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/1.638, allocations: 68.39 kB / 0.8272 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006464/1.638, allocations: 258.3 kB / 0.8275 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/1.638, allocations: 8.188 kB / 0.8275 GB, free: 298 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007875/1.639, allocations: 1.778 MB / 0.8292 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.639, allocations: 7.781 kB / 0.8292 GB, free: 296.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/1.641, allocations: 1.457 MB / 0.8307 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/1.641, allocations: 121.9 kB / 0.8308 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.068e-05/1.641, allocations: 11.97 kB / 0.8308 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003188/1.642, allocations: 26.12 kB / 0.8308 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.642, allocations: 43.73 kB / 0.8309 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/1.642, allocations: 15.92 kB / 0.8309 GB, free: 295.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002183/1.642, allocations: 226.3 kB / 0.8311 GB, free: 295.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/1.642, allocations: 0 / 0.8311 GB, free: 295.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00572/1.648, allocations: 1.974 MB / 0.833 GB, free: 294.9 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.01198/1.66, allocations: 4.503 MB / 0.8374 GB, free: 293.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002353/1.662, allocations: 0.901 MB / 0.8383 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.662, allocations: 0 / 0.8383 GB, free: 292.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007127/1.663, allocations: 433.4 kB / 0.8387 GB, free: 292.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/1.665, allocations: 396.2 kB / 0.8391 GB, free: 292.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009523/1.675, allocations: 5.716 MB / 0.8447 GB, free: 286.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/1.675, allocations: 0.8426 MB / 0.8455 GB, free: 285.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00046/1.675, allocations: 91.91 kB / 0.8456 GB, free: 285.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.676, allocations: 167.4 kB / 0.8457 GB, free: 285.2 MB / 0.5919 GB Notification: Performance of SimCode: time 6.82e-07/1.676, allocations: 0 / 0.8457 GB, free: 285.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1261/1.802, allocations: 77.94 MB / 0.9219 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/16.39, allocations: 19.66 kB / 0.9219 GB, free: 207.2 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)