Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.000872/0.000872, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.000955/0.000955, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.8999/0.8999, 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.008333/0.008333, allocations: 1.985 MB / 261.2 MB, free: 11.27 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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 384.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.66e-05/1.842e-05, allocations: 2.281 kB / 384.7 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2008/0.2008, allocations: 45.2 MB / 429.9 MB, free: 13.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01439/0.2152, allocations: 25.14 MB / 455 MB, free: 12.61 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004799/0.2157, allocations: 2.75 kB / 455 MB, free: 12.61 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.2168, allocations: 0.5159 MB / 455.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004483/0.2213, allocations: 2.266 MB / 457.8 MB, free: 10.39 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.006517/0.2278, allocations: 2.987 MB / 460.8 MB, free: 7.965 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009492/0.2288, allocations: 0.977 MB / 461.7 MB, free: 7.359 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.288e-05/0.2289, allocations: 30.34 kB / 461.8 MB, free: 7.34 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.6122/0.8411, allocations: 51.49 MB / 0.5012 GB, free: 5.93 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006332/0.8417, allocations: 247.3 kB / 0.5015 GB, free: 5.688 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.849e-05/0.8418, allocations: 40 kB / 0.5015 GB, free: 5.648 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07432/0.9161, allocations: 27.05 MB / 0.5279 GB, free: 10.42 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.9163, allocations: 123.5 kB / 0.5281 GB, free: 10.3 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.9166, allocations: 227.5 kB / 0.5283 GB, free: 10.08 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004605/0.9212, allocations: 1.905 MB / 0.5301 GB, free: 8.168 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.9213, allocations: 0 / 0.5301 GB, free: 8.168 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.9213, allocations: 3.938 kB / 0.5301 GB, free: 8.164 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.9213, allocations: 0 / 0.5301 GB, free: 8.164 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.001347/0.9226, allocations: 1.044 MB / 0.5312 GB, free: 7.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.9227, allocations: 12.03 kB / 0.5312 GB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.292e-05/0.9228, allocations: 119.1 kB / 0.5313 GB, free: 6.953 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.924, allocations: 0.5 MB / 0.5318 GB, free: 6.453 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003701/0.9244, allocations: 284.9 kB / 0.532 GB, free: 6.148 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.9244, allocations: 41.69 kB / 0.5321 GB, free: 6.109 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.337e-05/0.9245, allocations: 60.36 kB / 0.5321 GB, free: 6.051 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009606/0.9254, allocations: 0.9776 MB / 0.5331 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.9254, allocations: 11.88 kB / 0.5331 GB, free: 4.984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.9255, allocations: 28 kB / 0.5331 GB, free: 4.957 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.9255, allocations: 31.97 kB / 0.5332 GB, free: 4.926 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007851/0.9263, allocations: 0.7162 MB / 0.5339 GB, free: 4.211 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002251/0.9285, allocations: 2.773 MB / 0.5366 GB, free: 1.344 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004743/0.929, allocations: 275 kB / 0.5368 GB, free: 1.059 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.9292, allocations: 162.2 kB / 0.537 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008028/0.93, allocations: 0.8817 MB / 0.5378 GB, free: 15.99 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.93, allocations: 30.56 kB / 0.5379 GB, free: 15.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=71): time 1.803e-06/0.93, allocations: 0 / 0.5379 GB, free: 15.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=71): time 0.0009426/0.9309, allocations: 0.6092 MB / 0.5385 GB, free: 15.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.931, allocations: 84.98 kB / 0.5385 GB, free: 15.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.9312, allocations: 198.6 kB / 0.5387 GB, free: 15.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.9312, allocations: 25.7 kB / 0.5388 GB, free: 15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.9314, allocations: 292.5 kB / 0.539 GB, free: 14.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.9315, allocations: 249.6 kB / 0.5393 GB, free: 14.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.9316, allocations: 97.95 kB / 0.5394 GB, free: 14.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.9317, allocations: 334.8 kB / 0.5397 GB, free: 14.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.9319, allocations: 121.3 kB / 0.5398 GB, free: 13.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/0.9324, allocations: 311.9 kB / 0.5401 GB, free: 13.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004468/0.9328, allocations: 480.8 kB / 0.5406 GB, free: 12.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.9328, allocations: 8 kB / 0.5406 GB, free: 12.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000556/0.9334, allocations: 480.6 kB / 0.541 GB, free: 12.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.9334, allocations: 11.94 kB / 0.541 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.9334, allocations: 8 kB / 0.541 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.9334, allocations: 8 kB / 0.5411 GB, free: 12.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.9337, allocations: 88.02 kB / 0.5411 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004931/0.9342, allocations: 1.176 MB / 0.5423 GB, free: 11.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.9343, allocations: 63.55 kB / 0.5423 GB, free: 11.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.9343, allocations: 27.94 kB / 0.5424 GB, free: 11.07 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001917/0.9345, allocations: 196.1 kB / 0.5426 GB, free: 10.87 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.272e-05/0.9346, allocations: 31.8 kB / 0.5426 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.9346, allocations: 22.66 kB / 0.5426 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.9346, allocations: 4 kB / 0.5426 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.9346, allocations: 0 / 0.5426 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.9346, allocations: 0 / 0.5426 GB, free: 10.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/0.9351, allocations: 444 kB / 0.543 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.9351, allocations: 4 kB / 0.543 GB, free: 10.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.9352, allocations: 47.84 kB / 0.5431 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.9352, allocations: 0 / 0.5431 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.9352, allocations: 8 kB / 0.5431 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005214/0.9358, allocations: 1.176 MB / 0.5442 GB, free: 9.055 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.9358, allocations: 3.938 kB / 0.5443 GB, free: 9.051 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004634/0.9362, allocations: 0.5063 MB / 0.5447 GB, free: 8.527 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.9363, allocations: 47.62 kB / 0.5448 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.9363, allocations: 7.984 kB / 0.5448 GB, free: 8.473 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.841e-05/0.9364, allocations: 8 kB / 0.5448 GB, free: 8.465 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.894e-05/0.9365, allocations: 11.97 kB / 0.5448 GB, free: 8.453 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.9365, allocations: 12 kB / 0.5448 GB, free: 8.441 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.644e-05/0.9365, allocations: 119.2 kB / 0.5449 GB, free: 8.324 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.9365, allocations: 0 / 0.5449 GB, free: 8.324 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005298/0.9371, allocations: 195.5 kB / 0.5451 GB, free: 8.133 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009296/0.938, allocations: 1.256 MB / 0.5464 GB, free: 6.848 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006005/0.9386, allocations: 0.5764 MB / 0.5469 GB, free: 6.246 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.9386, allocations: 4 kB / 0.5469 GB, free: 6.242 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004623/0.9391, allocations: 484.2 kB / 0.5474 GB, free: 5.695 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006519/0.9397, allocations: 180.9 kB / 0.5476 GB, free: 5.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.9429, allocations: 3.63 MB / 0.5511 GB, free: 1.652 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.9432, allocations: 364.7 kB / 0.5514 GB, free: 1.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.9436, allocations: 211.9 kB / 0.5517 GB, free: 1.055 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.9438, allocations: 276.4 kB / 0.5519 GB, free: 0.7852 MB / 442.7 MB Notification: Performance of SimCode: time 8.61e-07/0.9438, allocations: 4 kB / 0.5519 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.9751, allocations: 19.43 MB / 0.5709 GB, free: 13.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.216/9.192, allocations: 8 kB / 0.5709 GB, free: 13.38 MB / 474.7 MB " [Timeout remaining time 650] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.336445989087224] Failed to read output from testmodel.py, exit status != 0: 9.545471987687051 9.700490639 8.63390662 Calling exit ...