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.001274/0.001274, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 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.001515/0.001515, allocations: 220.4 kB / 23.05 MB, free: 5.074 MB / 14.72 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 1.413/1.413, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.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.01206/0.01206, allocations: 2.797 MB / 316 MB, free: 324 kB / 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.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.89 kB / 439.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.0978, allocations: 54.18 MB / 493.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2677/0.3655, allocations: 51.35 MB / 0.5322 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02847/0.394, allocations: 29.21 MB / 0.5608 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006216/0.3946, allocations: 2.938 kB / 0.5608 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.3963, allocations: 0.6125 MB / 0.5614 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006869/0.4032, allocations: 2.251 MB / 0.5636 GB, free: 2.566 MB / 398.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.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.0.0/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.00885/0.412, allocations: 2.943 MB / 0.5665 GB, free: 200 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.4136, allocations: 0.9386 MB / 0.5674 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.022e-05/0.4137, allocations: 26.09 kB / 0.5674 GB, free: 15.62 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.4488/0.8625, allocations: 51.34 MB / 0.6175 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008386/0.8634, allocations: 310.6 kB / 0.6178 GB, free: 13.09 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.8635, allocations: 40 kB / 0.6179 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2212/1.085, allocations: 27.08 MB / 0.6443 GB, free: 1.789 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002242/1.085, allocations: 107.5 kB / 0.6444 GB, free: 1.684 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005717/1.085, allocations: 342.4 kB / 0.6447 GB, free: 1.348 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007118/1.093, allocations: 1.862 MB / 0.6466 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.093, allocations: 0 / 0.6466 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/1.093, allocations: 0 / 0.6466 GB, free: 15.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/1.093, allocations: 0 / 0.6466 GB, free: 15.48 MB / 494.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.00161/1.094, allocations: 1.065 MB / 0.6476 GB, free: 14.38 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/1.094, allocations: 11.97 kB / 0.6476 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.617e-05/1.094, allocations: 17.5 kB / 0.6476 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/1.094, allocations: 127 kB / 0.6477 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001964/1.096, allocations: 0.4961 MB / 0.6482 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/1.098, allocations: 282 kB / 0.6485 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.171e-05/1.098, allocations: 45.31 kB / 0.6485 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.537e-05/1.098, allocations: 59.94 kB / 0.6486 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/1.1, allocations: 0.8766 MB / 0.6495 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/1.1, allocations: 0 / 0.6495 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/1.1, allocations: 24 kB / 0.6495 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.79e-05/1.1, allocations: 35.92 kB / 0.6495 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/1.101, allocations: 0.7162 MB / 0.6502 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/1.106, allocations: 5.094 MB / 0.6552 GB, free: 5.898 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006823/1.107, allocations: 273.1 kB / 0.6554 GB, free: 5.613 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/1.107, allocations: 157.7 kB / 0.6556 GB, free: 5.453 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001166/1.108, allocations: 0.9196 MB / 0.6565 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/1.109, allocations: 34.5 kB / 0.6565 GB, free: 4.469 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 1.773e-06/1.109, allocations: 0 / 0.6565 GB, free: 4.469 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.001559/1.11, allocations: 0.6051 MB / 0.6571 GB, free: 3.859 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/1.11, allocations: 77.11 kB / 0.6572 GB, free: 3.766 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/1.11, allocations: 190.5 kB / 0.6574 GB, free: 3.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/1.11, allocations: 37.64 kB / 0.6574 GB, free: 3.527 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/1.111, allocations: 304.3 kB / 0.6577 GB, free: 3.223 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/1.111, allocations: 237.8 kB / 0.6579 GB, free: 2.988 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/1.111, allocations: 97.95 kB / 0.658 GB, free: 2.883 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/1.111, allocations: 342.8 kB / 0.6583 GB, free: 2.539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/1.111, allocations: 121.3 kB / 0.6585 GB, free: 2.422 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/1.112, allocations: 304 kB / 0.6588 GB, free: 2.047 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000732/1.113, allocations: 480.9 kB / 0.6592 GB, free: 1.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/1.113, allocations: 4 kB / 0.6592 GB, free: 1.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000893/1.113, allocations: 488.9 kB / 0.6597 GB, free: 1.012 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/1.113, allocations: 11.94 kB / 0.6597 GB, free: 1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/1.113, allocations: 8 kB / 0.6597 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/1.114, allocations: 8 kB / 0.6597 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/1.114, allocations: 83.83 kB / 0.6598 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007825/1.115, allocations: 1.184 MB / 0.6609 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/1.115, allocations: 55.56 kB / 0.661 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.322e-05/1.115, allocations: 20 kB / 0.661 GB, free: 15.6 MB / 0.4981 GB 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.0002707/1.115, allocations: 203.4 kB / 0.6612 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/1.115, allocations: 27.81 kB / 0.6612 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.1e-05/1.115, allocations: 34.58 kB / 0.6613 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/1.115, allocations: 3.938 kB / 0.6613 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.115, allocations: 4.094 kB / 0.6613 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/1.115, allocations: 4 kB / 0.6613 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000655/1.116, allocations: 475.9 kB / 0.6617 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.116, allocations: 0 / 0.6617 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/1.116, allocations: 35.98 kB / 0.6618 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.413e-06/1.116, allocations: 4 kB / 0.6618 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/1.116, allocations: 7.984 kB / 0.6618 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006682/1.117, allocations: 1.172 MB / 0.6629 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/1.117, allocations: 4.031 kB / 0.6629 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006948/1.118, allocations: 0.514 MB / 0.6634 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/1.118, allocations: 43.64 kB / 0.6635 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/1.118, allocations: 0 / 0.6635 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/1.118, allocations: 12 kB / 0.6635 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/1.118, allocations: 19.97 kB / 0.6635 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/1.118, allocations: 7.938 kB / 0.6635 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001077/1.118, allocations: 119.2 kB / 0.6636 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/1.118, allocations: 0 / 0.6636 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000755/1.119, allocations: 199.5 kB / 0.6638 GB, free: 12.61 MB / 0.4981 GB 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.001481/1.12, allocations: 1.24 MB / 0.665 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001003/1.121, allocations: 0.5838 MB / 0.6656 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.121, allocations: 0 / 0.6656 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006471/1.122, allocations: 479.9 kB / 0.6661 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/1.123, allocations: 192.2 kB / 0.6662 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/1.128, allocations: 3.664 MB / 0.6698 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/1.129, allocations: 0.9503 MB / 0.6707 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004824/1.129, allocations: 215.8 kB / 0.6709 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003432/1.13, allocations: 275.3 kB / 0.6712 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/1.13, allocations: 0 / 0.6712 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04715/1.177, allocations: 19.63 MB / 0.6904 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/15.21, allocations: 15.7 kB / 0.6904 GB, free: 1.074 MB / 0.5137 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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: 26.76833584601991] Failed to read output from testmodel.py, exit status != 0: 15.606655358918943 15.624160853 14.528056376 Calling exit ...