Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",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.0009449/0.0009452, 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.0009173/0.0009174, 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 4.0.0+maint.om/package.mo): time 1.135/1.135, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1008/0.1008, allocations: 2.758 MB / 292.8 MB, free: 3.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 59.91 kB / 354 MB, free: 4.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06733/0.06836, allocations: 50.24 MB / 404.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.1545/0.2229, allocations: 50.31 MB / 454.6 MB, free: 21.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.2367, allocations: 28.87 MB / 483.4 MB, free: 368 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003689/0.2371, allocations: 4 kB / 483.4 MB, free: 364 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.2382, allocations: 0.5715 MB / 484 MB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003936/0.2421, allocations: 2.057 MB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005865/0.248, allocations: 2.717 MB / 488.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007518/0.2488, allocations: 0.921 MB / 489.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.961e-05/0.2489, allocations: 56.55 kB / 489.7 MB, free: 12.86 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function ‘ExternalMedia.Common.CheckCoolPropOptions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFEvalConstants.evaluate: time 0.6708/0.9197, allocations: 50.59 MB / 0.5277 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005665/0.9202, allocations: 306.6 kB / 0.528 GB, free: 10 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.165e-05/0.9203, allocations: 40 kB / 0.528 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3361/1.256, allocations: 26.72 MB / 0.5541 GB, free: 15.06 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001457/1.257, allocations: 115.5 kB / 0.5542 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004087/1.257, allocations: 334.5 kB / 0.5545 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004632/1.262, allocations: 1.832 MB / 0.5563 GB, free: 12.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/1.262, allocations: 4 kB / 0.5563 GB, free: 12.78 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.352e-06/1.262, allocations: 0 / 0.5563 GB, free: 12.78 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/1.262, allocations: 3.938 kB / 0.5563 GB, free: 12.78 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001354/1.263, allocations: 1.1 MB / 0.5574 GB, free: 11.63 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/1.263, allocations: 8.031 kB / 0.5574 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/1.263, allocations: 115 kB / 0.5575 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/1.265, allocations: 0.4958 MB / 0.558 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/1.265, allocations: 339.4 kB / 0.5583 GB, free: 10.63 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.828e-05/1.266, allocations: 49.88 kB / 0.5584 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.498e-05/1.266, allocations: 55.94 kB / 0.5584 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/1.267, allocations: 0.8723 MB / 0.5593 GB, free: 9.609 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/1.267, allocations: 3.984 kB / 0.5593 GB, free: 9.605 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/1.267, allocations: 27.94 kB / 0.5593 GB, free: 9.578 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/1.267, allocations: 31.98 kB / 0.5593 GB, free: 9.547 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/1.268, allocations: 0.7078 MB / 0.56 GB, free: 8.836 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/1.271, allocations: 5.017 MB / 0.5649 GB, free: 3.227 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005537/1.272, allocations: 329.7 kB / 0.5652 GB, free: 2.887 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/1.272, allocations: 217.6 kB / 0.5655 GB, free: 2.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/1.273, allocations: 1.535 MB / 0.567 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/1.273, allocations: 38.56 kB / 0.567 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of pre-optimization done (n=71): time 1.533e-06/1.273, allocations: 0 / 0.567 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of matching and sorting (n=71): time 0.001256/1.274, allocations: 0.5885 MB / 0.5676 GB, free: 328 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/1.274, allocations: 81.11 kB / 0.5676 GB, free: 228 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/1.275, allocations: 186.2 kB / 0.5678 GB, free: 32 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/1.275, allocations: 29.78 kB / 0.5678 GB, free: 15.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/1.275, allocations: 287.4 kB / 0.5681 GB, free: 15.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/1.275, allocations: 232.5 kB / 0.5683 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/1.275, allocations: 97.91 kB / 0.5684 GB, free: 15.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.098e-05/1.275, allocations: 334.8 kB / 0.5688 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/1.275, allocations: 117.3 kB / 0.5689 GB, free: 14.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002864/1.276, allocations: 308 kB / 0.5692 GB, free: 14.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/1.276, allocations: 492.4 kB / 0.5696 GB, free: 13.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/1.276, allocations: 7.938 kB / 0.5696 GB, free: 13.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0006444/1.277, allocations: 472.3 kB / 0.5701 GB, free: 13.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/1.277, allocations: 11.94 kB / 0.5701 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/1.277, allocations: 4 kB / 0.5701 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/1.277, allocations: 8.719 kB / 0.5701 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/1.277, allocations: 75.84 kB / 0.5702 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/1.277, allocations: 15.98 kB / 0.5702 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/1.277, allocations: 71.36 kB / 0.5703 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/1.277, allocations: 24.19 kB / 0.5703 GB, free: 13.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001776/1.278, allocations: 201.6 kB / 0.5705 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/1.278, allocations: 31.5 kB / 0.5705 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/1.279, allocations: 1.174 MB / 0.5717 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001044/1.28, allocations: 0.969 MB / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/1.28, allocations: 0 / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/1.28, allocations: 3.984 kB / 0.5726 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/1.282, allocations: 2.301 MB / 0.5749 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.282, allocations: 4 kB / 0.5749 GB, free: 8.543 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/1.282, allocations: 107.9 kB / 0.575 GB, free: 8.438 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/1.282, allocations: 4 kB / 0.575 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/1.282, allocations: 20 kB / 0.575 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/1.282, allocations: 3.938 kB / 0.575 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.282, allocations: 4 kB / 0.575 GB, free: 8.406 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/1.283, allocations: 0.8675 MB / 0.5758 GB, free: 7.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/1.283, allocations: 132.3 kB / 0.576 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/1.283, allocations: 16 kB / 0.576 GB, free: 7.355 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/1.284, allocations: 91.48 kB / 0.5761 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.184e-05/1.284, allocations: 39.95 kB / 0.5761 GB, free: 7.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/1.284, allocations: 20 kB / 0.5761 GB, free: 7.207 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.429e-05/1.284, allocations: 128.7 kB / 0.5762 GB, free: 7.082 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.284, allocations: 0 / 0.5762 GB, free: 7.082 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005333/1.285, allocations: 223.4 kB / 0.5765 GB, free: 6.863 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (medium1.completeState.state.phase,$cse4.phase,medium2.completeState.state.phase,$cse2.phase,medium2.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001351/1.286, allocations: 1.629 MB / 0.5781 GB, free: 5.207 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/1.287, allocations: 0.7733 MB / 0.5788 GB, free: 4.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/1.287, allocations: 0 / 0.5788 GB, free: 4.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/1.287, allocations: 370.5 kB / 0.5792 GB, free: 4.051 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/1.289, allocations: 343.2 kB / 0.5795 GB, free: 3.715 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1119/1.401, allocations: 4.187 MB / 0.5836 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/1.401, allocations: 0.9591 MB / 0.5845 GB, free: 141.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004287/1.402, allocations: 128.5 kB / 0.5846 GB, free: 141.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002364/1.402, allocations: 276.8 kB / 0.5849 GB, free: 141.2 MB / 446.1 MB Notification: Performance of SimCode: time 4.7e-07/1.402, allocations: 0 / 0.5849 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.857/5.258, allocations: 19.5 MB / 0.6039 GB, free: 140.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/5.258, allocations: 254.4 kB / 0.6042 GB, free: 139.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/7.585, allocations: 0 / 0.6042 GB, free: 139.8 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)