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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007373/0.0007373, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000843/0.000843, allocations: 165.9 kB / 22.46 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9119/0.9119, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.01238/0.01238, allocations: 1.978 MB / 261.2 MB, free: 11.26 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 384.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.082e-05, allocations: 9.172 kB / 384.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.1806/0.1806, allocations: 45.15 MB / 429.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.1956, allocations: 25.13 MB / 455 MB, free: 12.66 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005267/0.1962, allocations: 6.594 kB / 455 MB, free: 12.66 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.1974, allocations: 0.5105 MB / 455.5 MB, free: 12.26 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004646/0.2021, allocations: 2.269 MB / 457.7 MB, free: 10.44 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.00654/0.2086, allocations: 2.996 MB / 460.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.2098, allocations: 0.9706 MB / 461.7 MB, free: 7.41 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.497e-05/0.2098, allocations: 27.77 kB / 461.7 MB, free: 7.395 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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.6192/0.8291, allocations: 51.49 MB / 0.5012 GB, free: 5.98 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000722/0.8298, allocations: 239.4 kB / 0.5014 GB, free: 5.746 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.581e-05/0.8299, allocations: 40 kB / 0.5015 GB, free: 5.707 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07574/0.9056, allocations: 27.06 MB / 0.5279 GB, free: 10.48 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.9058, allocations: 119.5 kB / 0.528 GB, free: 10.36 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004993/0.9063, allocations: 227.5 kB / 0.5282 GB, free: 10.14 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006776/0.913, allocations: 1.901 MB / 0.5301 GB, free: 8.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.066e-05/0.9131, allocations: 3.938 kB / 0.5301 GB, free: 8.227 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.118e-06/0.9131, allocations: 0 / 0.5301 GB, free: 8.227 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.9131, allocations: 0 / 0.5301 GB, free: 8.227 MB / 426.7 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.001454/0.9145, allocations: 1.037 MB / 0.5311 GB, free: 7.156 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.9146, allocations: 12.03 kB / 0.5311 GB, free: 7.145 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.649e-05/0.9147, allocations: 119 kB / 0.5312 GB, free: 7.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.9158, allocations: 0.4961 MB / 0.5317 GB, free: 6.523 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.9162, allocations: 280.9 kB / 0.532 GB, free: 6.223 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.255e-05/0.9162, allocations: 41.69 kB / 0.532 GB, free: 6.184 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.9163, allocations: 64.31 kB / 0.5321 GB, free: 6.121 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.9173, allocations: 0.9815 MB / 0.533 GB, free: 5.059 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.9173, allocations: 7.875 kB / 0.533 GB, free: 5.051 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.9173, allocations: 28 kB / 0.5331 GB, free: 5.023 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.9174, allocations: 27.98 kB / 0.5331 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008551/0.9182, allocations: 0.7201 MB / 0.5338 GB, free: 4.277 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.9206, allocations: 2.765 MB / 0.5365 GB, free: 1.418 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.921, allocations: 262.9 kB / 0.5367 GB, free: 1.145 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.9211, allocations: 162.2 kB / 0.5369 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007095/0.9218, allocations: 0.866 MB / 0.5377 GB, free: 96 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.9219, allocations: 38.56 kB / 0.5378 GB, free: 48 kB / 426.7 MB Notification: Performance of pre-optimization done (n=71): time 1.684e-06/0.9219, allocations: 0 / 0.5378 GB, free: 48 kB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.0009033/0.9228, allocations: 0.5975 MB / 0.5384 GB, free: 15.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003459/0.9231, allocations: 84.98 kB / 0.5384 GB, free: 15.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.9232, allocations: 190.6 kB / 0.5386 GB, free: 15.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.9233, allocations: 29.7 kB / 0.5387 GB, free: 15.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.9234, allocations: 296.4 kB / 0.5389 GB, free: 14.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.9235, allocations: 245.7 kB / 0.5392 GB, free: 14.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.995e-05/0.9236, allocations: 93.95 kB / 0.5393 GB, free: 14.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.9237, allocations: 342.8 kB / 0.5396 GB, free: 14.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.9238, allocations: 121.3 kB / 0.5397 GB, free: 14.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.924, allocations: 299.9 kB / 0.54 GB, free: 13.64 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.9244, allocations: 480.8 kB / 0.5404 GB, free: 13.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.9244, allocations: 4 kB / 0.5404 GB, free: 13.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0004722/0.9249, allocations: 492.1 kB / 0.5409 GB, free: 12.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.9249, allocations: 8 kB / 0.5409 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.9249, allocations: 8 kB / 0.5409 GB, free: 12.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.9249, allocations: 4.719 kB / 0.5409 GB, free: 12.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.9251, allocations: 79.84 kB / 0.541 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.9251, allocations: 16.11 kB / 0.541 GB, free: 12.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.9252, allocations: 55.52 kB / 0.5411 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.9252, allocations: 24.09 kB / 0.5411 GB, free: 12.41 MB / 442.7 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.0001598/0.9254, allocations: 181.8 kB / 0.5413 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.9254, allocations: 27.81 kB / 0.5413 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.9255, allocations: 34.64 kB / 0.5413 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.9255, allocations: 3.984 kB / 0.5413 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.9255, allocations: 3.938 kB / 0.5413 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.9255, allocations: 0 / 0.5413 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003727/0.9259, allocations: 444 kB / 0.5418 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9259, allocations: 3.938 kB / 0.5418 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.445e-05/0.9259, allocations: 31.92 kB / 0.5418 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.9259, allocations: 4 kB / 0.5418 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.926, allocations: 8 kB / 0.5418 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.926, allocations: 3.984 kB / 0.5418 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.926, allocations: 7.922 kB / 0.5418 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003817/0.9263, allocations: 0.5061 MB / 0.5423 GB, free: 11.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/0.9264, allocations: 35.69 kB / 0.5424 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.9264, allocations: 8 kB / 0.5424 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.9265, allocations: 7.984 kB / 0.5424 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.9265, allocations: 23.91 kB / 0.5424 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.9265, allocations: 8 kB / 0.5424 GB, free: 11.02 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.096e-05/0.9266, allocations: 123.2 kB / 0.5425 GB, free: 10.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.9266, allocations: 0 / 0.5425 GB, free: 10.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004587/0.927, allocations: 191.5 kB / 0.5427 GB, free: 10.71 MB / 442.7 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.0009021/0.9279, allocations: 1.248 MB / 0.5439 GB, free: 9.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004995/0.9284, allocations: 0.5531 MB / 0.5445 GB, free: 8.852 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.9284, allocations: 0 / 0.5445 GB, free: 8.852 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.9287, allocations: 464.2 kB / 0.5449 GB, free: 8.324 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006533/0.9294, allocations: 201.6 kB / 0.5451 GB, free: 8.133 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.9324, allocations: 3.598 MB / 0.5486 GB, free: 4.305 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.9326, allocations: 352.7 kB / 0.5489 GB, free: 3.934 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003624/0.933, allocations: 257.9 kB / 0.5492 GB, free: 3.672 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.9332, allocations: 272.4 kB / 0.5494 GB, free: 3.406 MB / 442.7 MB Notification: Performance of SimCode: time 9.22e-07/0.9332, allocations: 0 / 0.5494 GB, free: 3.406 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.9691, allocations: 19.06 MB / 0.5681 GB, free: 372 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.992, allocations: 8.062 kB / 0.5681 GB, free: 364 kB / 458.7 MB " [Timeout remaining time 652] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.011072784662247] Failed to read output from testmodel.py, exit status != 0: 8.32963840290904 8.339153223 7.424098996 Calling exit ...