Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.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_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",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.001714/0.001714, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001952/0.001952, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.174/1.174, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.3586/0.3586, allocations: 9.077 MB / 278.5 MB, free: 12.36 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.001345/0.001345, allocations: 63.91 kB / 337.6 MB, free: 25.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07141/0.07277, allocations: 48.16 MB / 385.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.2658/0.3386, allocations: 141.6 MB / 0.515 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3884/0.727, allocations: 97.47 MB / 0.6102 GB, free: 260 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006192/0.7277, allocations: 10.5 kB / 0.6102 GB, free: 256 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002769/0.7305, allocations: 1.282 MB / 0.6114 GB, free: 248 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.7338, allocations: 1.555 MB / 0.613 GB, free: 232 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05926/0.793, allocations: 26.68 MB / 0.639 GB, free: 15.45 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.7947, allocations: 1.412 MB / 0.6404 GB, free: 15.32 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.7949, allocations: 120.6 kB / 0.6405 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01328/0.8082, allocations: 10.03 MB / 0.6503 GB, free: 11.63 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004378/0.8087, allocations: 387.3 kB / 0.6507 GB, free: 11.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.689e-05/0.8087, allocations: 44 kB / 0.6507 GB, free: 11.34 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04341/0.8521, allocations: 31.02 MB / 0.681 GB, free: 6.355 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.8524, allocations: 124.8 kB / 0.6811 GB, free: 6.238 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005143/0.853, allocations: 309 kB / 0.6814 GB, free: 5.941 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03008/0.883, allocations: 12.69 MB / 0.6938 GB, free: 10.17 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.8831, allocations: 4 kB / 0.6938 GB, free: 10.17 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.8831, allocations: 0 / 0.6938 GB, free: 10.17 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.8831, allocations: 0 / 0.6938 GB, free: 10.17 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.004352/0.8874, allocations: 2.287 MB / 0.6961 GB, free: 7.836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.8875, allocations: 8.031 kB / 0.6961 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.068e-05/0.8876, allocations: 86.52 kB / 0.6961 GB, free: 7.734 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000492/0.8881, allocations: 75.41 kB / 0.6962 GB, free: 7.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.8884, allocations: 342.7 kB / 0.6965 GB, free: 7.289 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.8885, allocations: 28.66 kB / 0.6966 GB, free: 7.262 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.8885, allocations: 35.94 kB / 0.6966 GB, free: 7.227 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.8896, allocations: 0.5845 MB / 0.6972 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.8896, allocations: 7.844 kB / 0.6972 GB, free: 6.621 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.8896, allocations: 16 kB / 0.6972 GB, free: 6.605 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.8897, allocations: 14.89 kB / 0.6972 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.8907, allocations: 0.5291 MB / 0.6977 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.8927, allocations: 2.481 MB / 0.7002 GB, free: 3.383 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009295/0.8937, allocations: 0.4966 MB / 0.7006 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.8942, allocations: 340.3 kB / 0.701 GB, free: 2.543 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3125/1.207, allocations: 121.8 MB / 0.8199 GB, free: 300.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/1.207, allocations: 36.25 kB / 0.82 GB, free: 300.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.806e-06/1.207, allocations: 0 / 0.82 GB, free: 300.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.005178/1.212, allocations: 2.413 MB / 0.8223 GB, free: 299.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/1.212, allocations: 56.62 kB / 0.8224 GB, free: 299.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/1.212, allocations: 259.6 kB / 0.8226 GB, free: 299.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/1.212, allocations: 36.14 kB / 0.8227 GB, free: 299.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.563e-05/1.212, allocations: 194.6 kB / 0.8228 GB, free: 299 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000122/1.212, allocations: 256.9 kB / 0.8231 GB, free: 298.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/1.213, allocations: 103.5 kB / 0.8232 GB, free: 298.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.683e-05/1.213, allocations: 350.6 kB / 0.8235 GB, free: 298.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/1.213, allocations: 272.3 kB / 0.8238 GB, free: 298.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004676/1.214, allocations: 393.3 kB / 0.8242 GB, free: 298 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009179/1.214, allocations: 0.6955 MB / 0.8248 GB, free: 297.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.214, allocations: 1.031 kB / 0.8248 GB, free: 297.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001178/1.216, allocations: 0.8042 MB / 0.8256 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.216, allocations: 7.562 kB / 0.8256 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/1.216, allocations: 3.969 kB / 0.8256 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004481/1.216, allocations: 110.8 kB / 0.8257 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/1.217, allocations: 112 kB / 0.8259 GB, free: 297 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09039/1.307, allocations: 24.98 MB / 0.8502 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004526/1.308, allocations: 39.94 kB / 0.8503 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/1.308, allocations: 20 kB / 0.8503 GB, free: 277.8 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): 40 * 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, 2} * 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.0002113/1.308, allocations: 198.8 kB / 0.8505 GB, free: 277.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.433e-05/1.308, allocations: 47.38 kB / 0.8505 GB, free: 277.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/1.309, allocations: 1.699 MB / 0.8522 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/1.309, allocations: 19.58 kB / 0.8522 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/1.309, allocations: 0 / 0.8522 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001159/1.311, allocations: 1.275 MB / 0.8535 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/1.312, allocations: 1.733 MB / 0.8552 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/1.312, allocations: 0 / 0.8552 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/1.313, allocations: 75.88 kB / 0.8552 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002807/1.313, allocations: 186.4 kB / 0.8554 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/1.313, allocations: 12 kB / 0.8554 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009765/1.314, allocations: 2.591 MB / 0.8579 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.314, allocations: 0 / 0.8579 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/1.316, allocations: 1.455 MB / 0.8594 GB, free: 268.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.288e-05/1.316, allocations: 120.5 kB / 0.8595 GB, free: 268 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.337e-05/1.316, allocations: 12 kB / 0.8595 GB, free: 268 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003251/1.316, allocations: 37.28 kB / 0.8595 GB, free: 267.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.538e-05/1.316, allocations: 43.94 kB / 0.8596 GB, free: 267.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/1.316, allocations: 15.98 kB / 0.8596 GB, free: 267.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001691/1.316, allocations: 219.1 kB / 0.8598 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.3e-07/1.316, allocations: 7.938 kB / 0.8598 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006131/1.323, allocations: 2.911 MB / 0.8626 GB, free: 265.1 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.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 (37): * Single equations (assignments): 31 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01347/1.336, allocations: 5.398 MB / 0.8679 GB, free: 260.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00188/1.338, allocations: 1.024 MB / 0.8689 GB, free: 259 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.338, allocations: 0 / 0.8689 GB, free: 259 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006453/1.339, allocations: 0.5227 MB / 0.8694 GB, free: 258.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/1.34, allocations: 396.1 kB / 0.8698 GB, free: 258.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009463/1.35, allocations: 6.193 MB / 0.8759 GB, free: 251.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/1.35, allocations: 0.8604 MB / 0.8767 GB, free: 250.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003966/1.351, allocations: 99.31 kB / 0.8768 GB, free: 250.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/1.351, allocations: 175.4 kB / 0.877 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of SimCode: time 7.31e-07/1.351, allocations: 0 / 0.877 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.481/2.832, allocations: 120.6 MB / 0.9947 GB, free: 129.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/2.832, allocations: 259.8 kB / 0.9949 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.526/10.36, allocations: 12 kB / 0.9949 GB, free: 129.4 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)