Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",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.001188/0.001188, allocations: 108 kB / 15.61 MB, free: 148 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.001414/0.001414, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1324/0.1324, allocations: 2.765 MB / 293.2 MB, free: 3.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 67.89 kB / 354.5 MB, free: 4.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 50.23 MB / 404.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.2264/0.3284, allocations: 50.69 MB / 455.4 MB, free: 21.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01927/0.3478, allocations: 29.11 MB / 484.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006412/0.3484, allocations: 3.125 kB / 484.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.3503, allocations: 0.6124 MB / 485.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006153/0.3564, allocations: 2.245 MB / 487.4 MB, free: 13.91 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.0087/0.3651, allocations: 2.918 MB / 490.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.3665, allocations: 0.9224 MB / 491.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.3666, allocations: 56.31 kB / 491.3 MB, free: 11.66 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.3369/0.7035, allocations: 50.61 MB / 0.5292 GB, free: 8.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007626/0.7043, allocations: 306.6 kB / 0.5295 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.7044, allocations: 40 kB / 0.5295 GB, free: 8.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1673/0.8718, allocations: 26.72 MB / 0.5556 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.8721, allocations: 111.5 kB / 0.5557 GB, free: 13.41 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007004/0.8728, allocations: 338.4 kB / 0.5561 GB, free: 13.07 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00964/0.8824, allocations: 1.828 MB / 0.5578 GB, free: 11.24 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.8825, allocations: 0 / 0.5578 GB, free: 11.24 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.8825, allocations: 0 / 0.5578 GB, free: 11.24 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.392e-05/0.8825, allocations: 4 kB / 0.5578 GB, free: 11.24 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.002255/0.8848, allocations: 1.112 MB / 0.5589 GB, free: 10.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.8849, allocations: 8.031 kB / 0.5589 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001904/0.8851, allocations: 119 kB / 0.559 GB, free: 9.945 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002305/0.8874, allocations: 0.4958 MB / 0.5595 GB, free: 9.449 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005426/0.8879, allocations: 335.5 kB / 0.5599 GB, free: 9.082 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.192e-05/0.888, allocations: 45.88 kB / 0.5599 GB, free: 9.039 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.261e-05/0.8881, allocations: 59.94 kB / 0.56 GB, free: 8.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/0.8898, allocations: 0.8646 MB / 0.5608 GB, free: 8.066 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.8898, allocations: 7.938 kB / 0.5608 GB, free: 8.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.8899, allocations: 20 kB / 0.5608 GB, free: 8.039 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.131e-05/0.8899, allocations: 35.97 kB / 0.5609 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.8914, allocations: 0.7039 MB / 0.5615 GB, free: 7.297 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/0.8964, allocations: 4.985 MB / 0.5664 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007988/0.8972, allocations: 349 kB / 0.5667 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003623/0.8976, allocations: 229.7 kB / 0.567 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00143/0.899, allocations: 1.551 MB / 0.5685 GB, free: 15.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.8991, allocations: 34.56 kB / 0.5685 GB, free: 15.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=74): time 2.224e-06/0.8991, allocations: 0 / 0.5685 GB, free: 15.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=74): time 0.003878/0.903, allocations: 0.6231 MB / 0.5691 GB, free: 14.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.903, allocations: 81.11 kB / 0.5692 GB, free: 14.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.9032, allocations: 175.6 kB / 0.5694 GB, free: 14.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.9033, allocations: 29.7 kB / 0.5694 GB, free: 14.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.9035, allocations: 275.6 kB / 0.5697 GB, free: 14.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.9036, allocations: 248.3 kB / 0.5699 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.9038, allocations: 89.92 kB / 0.57 GB, free: 13.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.9039, allocations: 347 kB / 0.5703 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002852/0.9042, allocations: 121.3 kB / 0.5704 GB, free: 13.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.9046, allocations: 285.4 kB / 0.5707 GB, free: 12.99 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007344/0.9054, allocations: 482.7 kB / 0.5712 GB, free: 12.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.9054, allocations: 4 kB / 0.5712 GB, free: 12.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008991/0.9063, allocations: 472 kB / 0.5716 GB, free: 11.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.9063, allocations: 12.55 kB / 0.5716 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.9064, allocations: 8 kB / 0.5716 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.9064, allocations: 8 kB / 0.5716 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.9067, allocations: 71.91 kB / 0.5717 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.9067, allocations: 11.92 kB / 0.5717 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.907, allocations: 59.27 kB / 0.5718 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.013e-05/0.907, allocations: 20 kB / 0.5718 GB, free: 11.79 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * 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.0002694/0.9073, allocations: 193.7 kB / 0.572 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.325e-05/0.9074, allocations: 35.55 kB / 0.572 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.504e-05/0.9075, allocations: 37.95 kB / 0.5721 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.9075, allocations: 0 / 0.5721 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.9075, allocations: 0 / 0.5721 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.9075, allocations: 4 kB / 0.5721 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006897/0.9082, allocations: 0.4983 MB / 0.5725 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.9082, allocations: 0 / 0.5725 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.9084, allocations: 31.92 kB / 0.5726 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.578e-06/0.9084, allocations: 7.938 kB / 0.5726 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.9084, allocations: 8 kB / 0.5726 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.9085, allocations: 0 / 0.5726 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.9085, allocations: 4 kB / 0.5726 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008014/0.9093, allocations: 0.5291 MB / 0.5731 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.073e-05/0.9094, allocations: 108.6 kB / 0.5732 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.034e-05/0.9094, allocations: 11.94 kB / 0.5732 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002245/0.9096, allocations: 15.98 kB / 0.5732 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.9097, allocations: 19.97 kB / 0.5733 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.9098, allocations: 8 kB / 0.5733 GB, free: 10.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.9099, allocations: 124.1 kB / 0.5734 GB, free: 10.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9099, allocations: 0 / 0.5734 GB, free: 10.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007178/0.9106, allocations: 191.4 kB / 0.5736 GB, free: 9.883 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: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * 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.001519/0.9121, allocations: 1.267 MB / 0.5748 GB, free: 8.586 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.9133, allocations: 0.6226 MB / 0.5754 GB, free: 7.945 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.9133, allocations: 0 / 0.5754 GB, free: 7.945 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005583/0.9139, allocations: 0.508 MB / 0.5759 GB, free: 7.363 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.9151, allocations: 199 kB / 0.5761 GB, free: 7.172 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004951/0.9201, allocations: 3.55 MB / 0.5796 GB, free: 3.406 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006562/0.9207, allocations: 0.9475 MB / 0.5805 GB, free: 2.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006755/0.9214, allocations: 261.8 kB / 0.5807 GB, free: 2.176 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000348/0.9218, allocations: 279.3 kB / 0.581 GB, free: 1.902 MB / 446.1 MB Notification: Performance of SimCode: time 9.51e-07/0.9218, allocations: 0 / 0.581 GB, free: 1.902 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2407/1.162, allocations: 17.92 MB / 0.5985 GB, free: 141.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.961/9.124, allocations: 11.23 kB / 0.5985 GB, free: 141.6 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)