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.001354/0.001354, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001671/0.001671, allocations: 220.2 kB / 22.26 MB, free: 5.125 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.44/1.44, allocations: 230.6 MB / 256 MB, free: 7.992 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.01261/0.01261, allocations: 2.795 MB / 315.2 MB, free: 300 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.002013/0.002013, allocations: 67.89 kB / 438.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09252, allocations: 54.18 MB / 492.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01028/0.1028, allocations: 8.489 MB / 0.4896 GB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009387/0.1122, allocations: 9.498 MB / 0.4989 GB, free: 5.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1123, allocations: 4 kB / 0.4989 GB, free: 5.277 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005367/0.1129, allocations: 163 kB / 0.499 GB, free: 5.117 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003518/0.1132, allocations: 103.3 kB / 0.4991 GB, free: 5.016 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.003628/0.1169, allocations: 1.456 MB / 0.5006 GB, free: 3.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004545/0.1173, allocations: 270.7 kB / 0.5008 GB, free: 3.285 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.881e-05/0.1174, allocations: 9.812 kB / 0.5008 GB, free: 3.277 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004762/0.1221, allocations: 134.2 kB / 0.501 GB, free: 3.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.1224, allocations: 87.61 kB / 0.501 GB, free: 3.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.1224, allocations: 8 kB / 0.5011 GB, free: 3.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.124, allocations: 463.9 kB / 0.5015 GB, free: 2.602 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.321e-05/0.1241, allocations: 39.83 kB / 0.5015 GB, free: 2.562 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.1242, allocations: 79.61 kB / 0.5016 GB, free: 2.484 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00151/0.1257, allocations: 0.5024 MB / 0.5021 GB, free: 1.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1257, allocations: 0 / 0.5021 GB, free: 1.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1257, allocations: 3.938 kB / 0.5021 GB, free: 1.977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1257, allocations: 0 / 0.5021 GB, free: 1.977 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.001031/0.1267, allocations: 492.8 kB / 0.5026 GB, free: 1.465 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1268, allocations: 12.03 kB / 0.5026 GB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.594e-05/0.1268, allocations: 46.73 kB / 0.5026 GB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003449/0.1272, allocations: 56.75 kB / 0.5027 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.1274, allocations: 150.3 kB / 0.5028 GB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.768e-05/0.1274, allocations: 12.38 kB / 0.5028 GB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.1275, allocations: 12.38 kB / 0.5028 GB, free: 1.148 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.128, allocations: 247.1 kB / 0.5031 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.128, allocations: 0 / 0.5031 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.128, allocations: 4 kB / 0.5031 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.1281, allocations: 15.92 kB / 0.5031 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005414/0.1286, allocations: 204.3 kB / 0.5033 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1851/0.3137, allocations: 0.6594 MB / 0.5039 GB, free: 24.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006844/0.3144, allocations: 227.5 kB / 0.5042 GB, free: 24.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.3146, allocations: 140.9 kB / 0.5043 GB, free: 24.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000188/0.3148, allocations: 97.53 kB / 0.5044 GB, free: 24.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.3148, allocations: 32.94 kB / 0.5044 GB, free: 24.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.824e-06/0.3148, allocations: 0 / 0.5044 GB, free: 24.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.002875/0.3177, allocations: 1.177 MB / 0.5056 GB, free: 24.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.3177, allocations: 54.27 kB / 0.5056 GB, free: 24.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.399e-05/0.3178, allocations: 122.4 kB / 0.5057 GB, free: 24.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3178, allocations: 31.45 kB / 0.5058 GB, free: 24.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.288e-05/0.3178, allocations: 103.2 kB / 0.5059 GB, free: 24.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.505e-05/0.3179, allocations: 169 kB / 0.506 GB, free: 24.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.699e-05/0.318, allocations: 61.55 kB / 0.5061 GB, free: 24.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.346e-05/0.318, allocations: 333.5 kB / 0.5064 GB, free: 24.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002677/0.3183, allocations: 129.7 kB / 0.5065 GB, free: 24.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.3186, allocations: 187.8 kB / 0.5067 GB, free: 23.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005079/0.3191, allocations: 346 kB / 0.507 GB, free: 23.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3191, allocations: 1.375 kB / 0.507 GB, free: 23.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001136/0.3202, allocations: 492.7 kB / 0.5075 GB, free: 23.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3203, allocations: 11.06 kB / 0.5075 GB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3203, allocations: 1.406 kB / 0.5075 GB, free: 23.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007774/0.321, allocations: 158.1 kB / 0.5077 GB, free: 23.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3212, allocations: 33.31 kB / 0.5077 GB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005311/0.3217, allocations: 0.671 MB / 0.5084 GB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.3219, allocations: 15.47 kB / 0.5084 GB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.3219, allocations: 13.3 kB / 0.5084 GB, free: 23.12 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.0001002/0.322, allocations: 134.6 kB / 0.5085 GB, free: 22.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.322, allocations: 16.09 kB / 0.5085 GB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.057e-05/0.3221, allocations: 24.81 kB / 0.5086 GB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3221, allocations: 13.48 kB / 0.5086 GB, free: 22.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.3221, allocations: 4.688 kB / 0.5086 GB, free: 22.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3221, allocations: 1.359 kB / 0.5086 GB, free: 22.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.3224, allocations: 267 kB / 0.5088 GB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3224, allocations: 0 / 0.5088 GB, free: 22.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.3227, allocations: 52.48 kB / 0.5089 GB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003439/0.323, allocations: 76.19 kB / 0.5089 GB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.323, allocations: 3.828 kB / 0.509 GB, free: 22.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.3244, allocations: 2.719 MB / 0.5116 GB, free: 20 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3244, allocations: 0 / 0.5116 GB, free: 20 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.3255, allocations: 0.7103 MB / 0.5123 GB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.3255, allocations: 21.3 kB / 0.5123 GB, free: 19.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.3255, allocations: 2 kB / 0.5123 GB, free: 19.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.3257, allocations: 13.52 kB / 0.5123 GB, free: 19.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.3257, allocations: 25.38 kB / 0.5124 GB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.3258, allocations: 10.42 kB / 0.5124 GB, free: 19.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.13e-05/0.3258, allocations: 97 kB / 0.5125 GB, free: 19.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3258, allocations: 0 / 0.5125 GB, free: 19.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.3262, allocations: 66.59 kB / 0.5125 GB, free: 19.53 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.001483/0.3276, allocations: 1.284 MB / 0.5138 GB, free: 18.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.3285, allocations: 346.9 kB / 0.5141 GB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3285, allocations: 4.531 kB / 0.5141 GB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005521/0.3291, allocations: 289.7 kB / 0.5144 GB, free: 18.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000653/0.3297, allocations: 106 kB / 0.5145 GB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.334, allocations: 2.999 MB / 0.5174 GB, free: 16.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/0.3342, allocations: 0.7367 MB / 0.5181 GB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003031/0.3346, allocations: 108.3 kB / 0.5182 GB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-05/0.3346, allocations: 56.53 kB / 0.5183 GB, free: 15.57 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3346, allocations: 4 kB / 0.5183 GB, free: 15.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03835/0.373, allocations: 8.292 MB / 0.5264 GB, free: 13.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.12, allocations: 11.08 kB / 0.5264 GB, free: 13.12 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.895139138912782] Failed to read output from testmodel.py, exit status != 0: 14.467168968869373 14.493717649 14.363008736 Calling exit ...