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.001284/0.001284, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001555/0.001555, allocations: 215 kB / 20.13 MB, free: 2.949 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.472/1.472, allocations: 230.6 MB / 253.5 MB, free: 15.13 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.01381/0.01381, allocations: 2.792 MB / 312.3 MB, free: 2.379 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.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.001985/0.001985, allocations: 63.67 kB / 434.2 MB, free: 39.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.0937, allocations: 54.13 MB / 488.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.04912/0.1428, allocations: 51.08 MB / 0.5268 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03234/0.1752, allocations: 29.17 MB / 0.5553 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006628/0.1758, allocations: 4 kB / 0.5553 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.1775, allocations: 0.6137 MB / 0.5559 GB, free: 15.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006504/0.184, allocations: 2.254 MB / 0.5581 GB, free: 13.07 MB / 430.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.008587/0.1926, allocations: 2.925 MB / 0.561 GB, free: 10.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001605/0.1942, allocations: 0.9365 MB / 0.5619 GB, free: 9.184 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.481e-05/0.1943, allocations: 29.78 kB / 0.5619 GB, free: 9.145 MB / 430.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.6622/0.8565, allocations: 51.18 MB / 0.6119 GB, free: 24.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005323/0.857, allocations: 306.9 kB / 0.6122 GB, free: 24.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.8571, allocations: 40.72 kB / 0.6122 GB, free: 24.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2075/1.065, allocations: 27.01 MB / 0.6386 GB, free: 9.328 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/1.065, allocations: 112.5 kB / 0.6387 GB, free: 9.289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005396/1.065, allocations: 341.7 kB / 0.639 GB, free: 9.145 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005757/1.071, allocations: 1.866 MB / 0.6408 GB, free: 7.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/1.071, allocations: 8 kB / 0.6409 GB, free: 7.812 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.834e-06/1.071, allocations: 0 / 0.6409 GB, free: 7.812 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.996e-05/1.071, allocations: 0 / 0.6409 GB, free: 7.812 MB / 446.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.001596/1.073, allocations: 1.128 MB / 0.642 GB, free: 6.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/1.073, allocations: 15.98 kB / 0.642 GB, free: 6.754 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.434e-05/1.073, allocations: 17.5 kB / 0.642 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/1.073, allocations: 120 kB / 0.6421 GB, free: 6.656 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/1.076, allocations: 0.4981 MB / 0.6426 GB, free: 6.328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/1.078, allocations: 338.6 kB / 0.6429 GB, free: 6.035 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.485e-05/1.078, allocations: 45.25 kB / 0.643 GB, free: 6.012 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.012e-05/1.078, allocations: 61.31 kB / 0.643 GB, free: 5.969 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/1.079, allocations: 0.8685 MB / 0.6439 GB, free: 5.348 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/1.079, allocations: 0 / 0.6439 GB, free: 5.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/1.079, allocations: 28.75 kB / 0.6439 GB, free: 5.336 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.089e-05/1.079, allocations: 34.97 kB / 0.6439 GB, free: 5.312 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/1.081, allocations: 0.7056 MB / 0.6446 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003101/1.084, allocations: 5.117 MB / 0.6496 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006858/1.084, allocations: 273.7 kB / 0.6499 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/1.085, allocations: 160.3 kB / 0.65 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/1.086, allocations: 1.543 MB / 0.6515 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/1.086, allocations: 41.12 kB / 0.6516 GB, free: 13.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.874e-06/1.086, allocations: 0 / 0.6516 GB, free: 13.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001634/1.088, allocations: 0.6036 MB / 0.6522 GB, free: 13.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/1.088, allocations: 80.3 kB / 0.6522 GB, free: 13.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/1.088, allocations: 188.1 kB / 0.6524 GB, free: 13.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/1.088, allocations: 26.89 kB / 0.6524 GB, free: 13.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/1.088, allocations: 298.8 kB / 0.6527 GB, free: 12.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/1.089, allocations: 239 kB / 0.6529 GB, free: 12.71 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/1.089, allocations: 98.52 kB / 0.653 GB, free: 12.63 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/1.089, allocations: 342.9 kB / 0.6534 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/1.089, allocations: 127.7 kB / 0.6535 GB, free: 12.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003822/1.089, allocations: 302.5 kB / 0.6538 GB, free: 11.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/1.09, allocations: 482.8 kB / 0.6542 GB, free: 11.54 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/1.09, allocations: 4 kB / 0.6542 GB, free: 11.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008153/1.091, allocations: 494.2 kB / 0.6547 GB, free: 11.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/1.091, allocations: 11.94 kB / 0.6547 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/1.091, allocations: 4 kB / 0.6547 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/1.091, allocations: 8 kB / 0.6547 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003583/1.091, allocations: 82.39 kB / 0.6548 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007558/1.092, allocations: 1.182 MB / 0.656 GB, free: 9.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/1.092, allocations: 55.45 kB / 0.656 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/1.092, allocations: 27.8 kB / 0.6561 GB, free: 9.832 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): 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.0002423/1.093, allocations: 191.3 kB / 0.6562 GB, free: 9.684 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.199e-05/1.093, allocations: 31.77 kB / 0.6563 GB, free: 9.652 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.853e-05/1.093, allocations: 36.89 kB / 0.6563 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/1.093, allocations: 3.938 kB / 0.6563 GB, free: 9.629 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/1.093, allocations: 4 kB / 0.6563 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/1.093, allocations: 0 / 0.6563 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/1.094, allocations: 0.4948 MB / 0.6568 GB, free: 9.211 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/1.094, allocations: 0 / 0.6568 GB, free: 9.211 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/1.094, allocations: 46.5 kB / 0.6568 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/1.094, allocations: 4 kB / 0.6568 GB, free: 9.168 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/1.094, allocations: 8 kB / 0.6568 GB, free: 9.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000707/1.095, allocations: 1.171 MB / 0.658 GB, free: 7.957 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.095, allocations: 0 / 0.658 GB, free: 7.957 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006491/1.096, allocations: 0.5077 MB / 0.6585 GB, free: 7.551 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.406e-05/1.096, allocations: 116.7 kB / 0.6586 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/1.096, allocations: 3.312 kB / 0.6586 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/1.096, allocations: 11.97 kB / 0.6586 GB, free: 7.406 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/1.096, allocations: 18.67 kB / 0.6586 GB, free: 7.395 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/1.096, allocations: 19.56 kB / 0.6586 GB, free: 7.379 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001045/1.096, allocations: 127.4 kB / 0.6588 GB, free: 7.266 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/1.096, allocations: 0 / 0.6588 GB, free: 7.266 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007047/1.097, allocations: 192.1 kB / 0.659 GB, free: 7.086 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): 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.001445/1.098, allocations: 1.244 MB / 0.6602 GB, free: 5.969 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009607/1.099, allocations: 0.5659 MB / 0.6607 GB, free: 5.527 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.099, allocations: 0 / 0.6607 GB, free: 5.527 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000628/1.1, allocations: 491.3 kB / 0.6612 GB, free: 5.051 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/1.101, allocations: 193.8 kB / 0.6614 GB, free: 4.883 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004735/1.106, allocations: 3.66 MB / 0.6649 GB, free: 1.527 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006573/1.107, allocations: 0.9465 MB / 0.6659 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004656/1.107, allocations: 207.9 kB / 0.6661 GB, free: 352 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/1.107, allocations: 276.5 kB / 0.6663 GB, free: 280 kB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/1.107, allocations: 4 kB / 0.6663 GB, free: 276 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/1.152, allocations: 18.48 MB / 0.6844 GB, free: 13.92 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/14.47, allocations: 8.062 kB / 0.6844 GB, free: 13.91 MB / 494.1 MB " [Timeout remaining time 645] (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.11204788304167] Failed to read output from testmodel.py, exit status != 0: 14.854442116979044 14.869093504 13.794674979 Calling exit ...