Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.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.001501/0.001501, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001743/0.001743, allocations: 215.4 kB / 22.24 MB, free: 5.258 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 7.805 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.0128/0.0128, allocations: 2.816 MB / 315.2 MB, free: 96 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.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",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.002407/0.002407, allocations: 63.89 kB / 438.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1065, allocations: 54.19 MB / 492.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01037/0.1169, allocations: 7.695 MB / 0.4888 GB, free: 15.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008549/0.1255, allocations: 8.163 MB / 0.4967 GB, free: 7.137 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001766/0.1256, allocations: 0 / 0.4967 GB, free: 7.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005901/0.1262, allocations: 127.2 kB / 0.4969 GB, free: 7.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.1266, allocations: 103.3 kB / 0.497 GB, free: 6.91 MB / 366.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.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.003969/0.1306, allocations: 1.433 MB / 0.4984 GB, free: 5.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004389/0.131, allocations: 270.7 kB / 0.4986 GB, free: 5.203 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.189e-05/0.1311, allocations: 13.8 kB / 0.4986 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004567/0.1356, allocations: 128.6 kB / 0.4988 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.1358, allocations: 75.69 kB / 0.4988 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.1359, allocations: 8 kB / 0.4988 GB, free: 4.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.1374, allocations: 479.8 kB / 0.4993 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.146e-05/0.1375, allocations: 35.84 kB / 0.4993 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.1376, allocations: 67.67 kB / 0.4994 GB, free: 4.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.1392, allocations: 0.4985 MB / 0.4999 GB, free: 3.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1392, allocations: 4 kB / 0.4999 GB, free: 3.914 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1392, allocations: 0 / 0.4999 GB, free: 3.914 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.1392, allocations: 4 kB / 0.4999 GB, free: 3.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001029/0.1402, allocations: 488.8 kB / 0.5003 GB, free: 3.402 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.1403, allocations: 8.031 kB / 0.5004 GB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.209e-05/0.1403, allocations: 50.73 kB / 0.5004 GB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003805/0.1407, allocations: 64.75 kB / 0.5005 GB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/0.141, allocations: 150.2 kB / 0.5006 GB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.141, allocations: 12.38 kB / 0.5006 GB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.1411, allocations: 12.31 kB / 0.5006 GB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006429/0.1417, allocations: 298.5 kB / 0.5009 GB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1417, allocations: 0 / 0.5009 GB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.1417, allocations: 4 kB / 0.5009 GB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.1418, allocations: 11.98 kB / 0.5009 GB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.1423, allocations: 208.2 kB / 0.5011 GB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009825/0.1433, allocations: 0.6385 MB / 0.5018 GB, free: 1.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006596/0.1439, allocations: 229.3 kB / 0.502 GB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.1442, allocations: 140.9 kB / 0.5021 GB, free: 1.477 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001982/0.1444, allocations: 99.83 kB / 0.5022 GB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.1444, allocations: 38.56 kB / 0.5022 GB, free: 1.332 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.974e-06/0.1444, allocations: 0 / 0.5022 GB, free: 1.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.002966/0.1474, allocations: 1.177 MB / 0.5034 GB, free: 124 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.1475, allocations: 55.41 kB / 0.5034 GB, free: 56 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1822/0.3297, allocations: 120 kB / 0.5036 GB, free: 24.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.3297, allocations: 28.83 kB / 0.5036 GB, free: 24.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.3298, allocations: 107.7 kB / 0.5037 GB, free: 24.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.3299, allocations: 165.6 kB / 0.5038 GB, free: 24.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-05/0.33, allocations: 55.81 kB / 0.5039 GB, free: 24.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.787e-05/0.3301, allocations: 336.2 kB / 0.5042 GB, free: 24.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.3303, allocations: 131 kB / 0.5043 GB, free: 24.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.3306, allocations: 188.3 kB / 0.5045 GB, free: 24.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005346/0.3312, allocations: 346.4 kB / 0.5049 GB, free: 24.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3312, allocations: 0 / 0.5049 GB, free: 24.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001158/0.3323, allocations: 497.7 kB / 0.5053 GB, free: 24.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3323, allocations: 6.828 kB / 0.5053 GB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.3323, allocations: 1.406 kB / 0.5053 GB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000771/0.3331, allocations: 159.4 kB / 0.5055 GB, free: 24.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.3333, allocations: 30.97 kB / 0.5055 GB, free: 24.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005556/0.3338, allocations: 0.6745 MB / 0.5062 GB, free: 23.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.334, allocations: 12.08 kB / 0.5062 GB, free: 23.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.334, allocations: 7.484 kB / 0.5062 GB, free: 23.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.3341, allocations: 139.4 kB / 0.5063 GB, free: 23.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.3342, allocations: 19.81 kB / 0.5063 GB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.655e-05/0.3342, allocations: 22.59 kB / 0.5064 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.3343, allocations: 8.797 kB / 0.5064 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3343, allocations: 1.25 kB / 0.5064 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3343, allocations: 1.266 kB / 0.5064 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.3346, allocations: 251 kB / 0.5066 GB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3346, allocations: 1.453 kB / 0.5066 GB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.3348, allocations: 48.97 kB / 0.5067 GB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00034/0.3352, allocations: 72.58 kB / 0.5067 GB, free: 23.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.3352, allocations: 8 kB / 0.5067 GB, free: 23.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/0.3367, allocations: 2.707 MB / 0.5094 GB, free: 20.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3367, allocations: 1.344 kB / 0.5094 GB, free: 20.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.3378, allocations: 0.7172 MB / 0.5101 GB, free: 20.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.145e-05/0.3378, allocations: 17.17 kB / 0.5101 GB, free: 20.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.3379, allocations: 7.75 kB / 0.5101 GB, free: 20.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.338, allocations: 10.94 kB / 0.5101 GB, free: 20.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.828e-05/0.3381, allocations: 27.61 kB / 0.5101 GB, free: 20.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.3381, allocations: 6.156 kB / 0.5102 GB, free: 20.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.662e-05/0.3382, allocations: 94.33 kB / 0.5102 GB, free: 20.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3382, allocations: 3.938 kB / 0.5102 GB, free: 20.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000379/0.3386, allocations: 64.66 kB / 0.5103 GB, free: 20.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001473/0.34, allocations: 1.29 MB / 0.5116 GB, free: 19.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008241/0.3409, allocations: 355.1 kB / 0.5119 GB, free: 19.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3409, allocations: 0.875 kB / 0.5119 GB, free: 19.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005652/0.3414, allocations: 289.7 kB / 0.5122 GB, free: 19.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.3421, allocations: 97.2 kB / 0.5123 GB, free: 19.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004251/0.3463, allocations: 3.001 MB / 0.5152 GB, free: 17.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.3465, allocations: 128 kB / 0.5153 GB, free: 17.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.3467, allocations: 104.9 kB / 0.5154 GB, free: 17.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3468, allocations: 55.23 kB / 0.5155 GB, free: 17.16 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3468, allocations: 3.938 kB / 0.5155 GB, free: 17.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.3857, allocations: 8.634 MB / 0.5239 GB, free: 14.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.29, allocations: 11.66 kB / 0.5239 GB, free: 14.57 MB / 366.1 MB " [Timeout remaining time 646] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --stepSize=0.1 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.24490974890068] Failed to read output from testmodel.py, exit status != 0: 13.629399425815791 13.641393054 13.499772341 Calling exit ...