Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 105.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 225.6 MB / 247.8 MB, free: 3.727 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01191/0.01191, allocations: 2.794 MB / 305.5 MB, free: 3.309 MB / 238.1 MB " [Timeout remaining time 180] 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_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 71.89 kB / 425 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3176, allocations: 52.95 MB / 478 MB, free: 26.37 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.04338/0.361, allocations: 50.95 MB / 0.5165 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03093/0.3919, allocations: 29.16 MB / 0.545 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001235/0.3932, allocations: 7.938 kB / 0.545 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002581/0.3957, allocations: 0.6175 MB / 0.5456 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008548/0.4043, allocations: 2.242 MB / 0.5478 GB, free: 10.22 MB / 414.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_Tabular.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.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_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.009245/0.4135, allocations: 2.929 MB / 0.5506 GB, free: 7.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001546/0.4151, allocations: 0.9326 MB / 0.5516 GB, free: 6.336 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.4152, allocations: 25.78 kB / 0.5516 GB, free: 6.305 MB / 414.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.7139/1.129, allocations: 51.93 MB / 0.6023 GB, free: 3.246 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006798/1.13, allocations: 306.7 kB / 0.6026 GB, free: 2.945 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/1.13, allocations: 40 kB / 0.6026 GB, free: 2.906 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4519/1.582, allocations: 27.35 MB / 0.6293 GB, free: 52.77 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000224/1.582, allocations: 116.8 kB / 0.6295 GB, free: 52.77 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005111/1.583, allocations: 339.1 kB / 0.6298 GB, free: 52.77 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006971/1.589, allocations: 1.859 MB / 0.6316 GB, free: 52.67 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/1.59, allocations: 3.062 kB / 0.6316 GB, free: 52.67 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.824e-06/1.59, allocations: 1.125 kB / 0.6316 GB, free: 52.67 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/1.59, allocations: 0 / 0.6316 GB, free: 52.67 MB / 462.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.002346/1.592, allocations: 1.129 MB / 0.6327 GB, free: 52.01 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.592, allocations: 9.469 kB / 0.6327 GB, free: 52.01 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/1.592, allocations: 114.7 kB / 0.6328 GB, free: 51.97 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0021/1.594, allocations: 0.4976 MB / 0.6333 GB, free: 51.93 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003884/1.598, allocations: 338.7 kB / 0.6336 GB, free: 51.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.31e-05/1.598, allocations: 48.36 kB / 0.6337 GB, free: 51.71 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.184e-05/1.598, allocations: 56.97 kB / 0.6337 GB, free: 51.71 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/1.6, allocations: 0.8745 MB / 0.6346 GB, free: 51.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/1.6, allocations: 4.031 kB / 0.6346 GB, free: 51.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/1.6, allocations: 23.5 kB / 0.6346 GB, free: 51.54 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.159e-05/1.6, allocations: 31.7 kB / 0.6346 GB, free: 51.54 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/1.601, allocations: 0.7071 MB / 0.6353 GB, free: 51.54 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003317/1.605, allocations: 5.016 MB / 0.6402 GB, free: 47.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006005/1.605, allocations: 264 kB / 0.6405 GB, free: 47.39 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/1.605, allocations: 158.7 kB / 0.6406 GB, free: 47.37 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00121/1.607, allocations: 1.532 MB / 0.6421 GB, free: 46.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/1.607, allocations: 35.41 kB / 0.6422 GB, free: 46.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.773e-06/1.607, allocations: 2.812 kB / 0.6422 GB, free: 46.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001432/1.608, allocations: 0.5956 MB / 0.6427 GB, free: 46.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/1.608, allocations: 78.98 kB / 0.6428 GB, free: 45.96 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/1.608, allocations: 188.1 kB / 0.643 GB, free: 45.85 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/1.608, allocations: 29.27 kB / 0.643 GB, free: 45.82 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/1.608, allocations: 291 kB / 0.6433 GB, free: 45.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/1.608, allocations: 240.6 kB / 0.6435 GB, free: 45.44 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/1.609, allocations: 97.5 kB / 0.6436 GB, free: 45.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.784e-05/1.609, allocations: 346.4 kB / 0.644 GB, free: 45.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/1.609, allocations: 117.6 kB / 0.6441 GB, free: 45.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/1.609, allocations: 301.1 kB / 0.6444 GB, free: 44.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/1.61, allocations: 483.2 kB / 0.6448 GB, free: 44.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/1.61, allocations: 2.469 kB / 0.6448 GB, free: 44.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007176/1.61, allocations: 488.8 kB / 0.6453 GB, free: 44.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/1.61, allocations: 11.12 kB / 0.6453 GB, free: 44.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/1.61, allocations: 6.312 kB / 0.6453 GB, free: 44.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/1.61, allocations: 8.219 kB / 0.6453 GB, free: 44.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/1.611, allocations: 72.89 kB / 0.6454 GB, free: 44.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/1.611, allocations: 10.44 kB / 0.6454 GB, free: 44.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/1.611, allocations: 61.12 kB / 0.6454 GB, free: 44.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/1.611, allocations: 24.09 kB / 0.6455 GB, free: 44.56 MB / 462.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.0002091/1.611, allocations: 189.7 kB / 0.6457 GB, free: 44.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.265e-05/1.611, allocations: 35.97 kB / 0.6457 GB, free: 44.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.124e-05/1.611, allocations: 25 kB / 0.6457 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/1.611, allocations: 5.094 kB / 0.6457 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/1.611, allocations: 4 kB / 0.6457 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/1.611, allocations: 1.828 kB / 0.6457 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004858/1.612, allocations: 0.4972 MB / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/1.612, allocations: 0 / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000102/1.612, allocations: 30.3 kB / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/1.612, allocations: 3.938 kB / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/1.612, allocations: 7.75 kB / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/1.612, allocations: 3.688 kB / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/1.612, allocations: 0 / 0.6462 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004925/1.612, allocations: 0.5163 MB / 0.6468 GB, free: 43.94 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.039e-05/1.612, allocations: 108 kB / 0.6469 GB, free: 43.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/1.613, allocations: 8.906 kB / 0.6469 GB, free: 43.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/1.613, allocations: 9.5 kB / 0.6469 GB, free: 43.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/1.613, allocations: 12.36 kB / 0.6469 GB, free: 43.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/1.613, allocations: 11.28 kB / 0.6469 GB, free: 43.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.653e-05/1.613, allocations: 122.1 kB / 0.647 GB, free: 43.74 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/1.613, allocations: 0 / 0.647 GB, free: 43.74 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001306/1.614, allocations: 200.5 kB / 0.6472 GB, free: 43.7 MB / 462.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: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.001081/1.615, allocations: 1.249 MB / 0.6484 GB, free: 42.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006279/1.616, allocations: 0.5444 MB / 0.649 GB, free: 42.65 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.616, allocations: 0 / 0.649 GB, free: 42.65 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/1.616, allocations: 456.6 kB / 0.6494 GB, free: 42.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/1.617, allocations: 192.4 kB / 0.6496 GB, free: 42.29 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/1.62, allocations: 3.63 MB / 0.6531 GB, free: 39.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/1.621, allocations: 0.948 MB / 0.654 GB, free: 38.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004281/1.621, allocations: 256.7 kB / 0.6543 GB, free: 38.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/1.621, allocations: 274.3 kB / 0.6546 GB, free: 38.03 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/1.621, allocations: 2.516 kB / 0.6546 GB, free: 38.03 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03909/1.661, allocations: 18.16 MB / 0.6723 GB, free: 19.98 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.452/11.11, allocations: 11.98 kB / 0.6723 GB, free: 19.97 MB / 462.1 MB " [Timeout remaining time 649] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.241334768012166] Failed to read output from testmodel.py, exit status != 0: 11.414799213875085 11.437649178 9.843996329 Calling exit ...