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.0007806/0.0007806, 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.0008507/0.0008507, allocations: 169.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.8512/0.8512, 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.007466/0.007466, allocations: 1.985 MB / 261.2 MB, free: 11.26 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.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: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 7.938 kB / 384.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.808e-06/1.21e-05, allocations: 5.094 kB / 384.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.005812/0.005824, allocations: 7.686 MB / 392.3 MB, free: 4.207 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00463/0.01045, allocations: 8.167 MB / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.912e-05/0.01052, allocations: 0 / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003783/0.0109, allocations: 135.1 kB / 400.6 MB, free: 11.88 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.01115, allocations: 107.2 kB / 400.7 MB, free: 11.77 MB / 330.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.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.1.1/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.1.1/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.002308/0.01346, allocations: 1.483 MB / 402.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002458/0.01371, allocations: 274.6 kB / 402.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.01375, allocations: 5.812 kB / 402.5 MB, free: 10.01 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003184/0.01693, allocations: 162.5 kB / 402.6 MB, free: 9.852 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.01705, allocations: 75.78 kB / 402.7 MB, free: 9.777 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.01707, allocations: 8 kB / 402.7 MB, free: 9.77 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000755/0.01783, allocations: 467.6 kB / 403.2 MB, free: 9.312 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.431e-05/0.01789, allocations: 35.84 kB / 403.2 MB, free: 9.277 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.988e-05/0.01795, allocations: 63.83 kB / 403.3 MB, free: 9.215 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007605/0.01871, allocations: 0.5104 MB / 403.8 MB, free: 8.703 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01871, allocations: 7.922 kB / 403.8 MB, free: 8.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01872, allocations: 0 / 403.8 MB, free: 8.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.01872, allocations: 0 / 403.8 MB, free: 8.695 MB / 330.7 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.0006673/0.01939, allocations: 484.8 kB / 404.3 MB, free: 8.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.01943, allocations: 12.03 kB / 404.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.951e-05/0.01947, allocations: 50.72 kB / 404.3 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.01965, allocations: 60.75 kB / 404.4 MB, free: 8.062 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.01981, allocations: 149.5 kB / 404.5 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.01983, allocations: 8.375 kB / 404.5 MB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/0.01985, allocations: 16.31 kB / 404.6 MB, free: 7.867 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.02018, allocations: 304.4 kB / 404.8 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.02018, allocations: 192 / 404.8 MB, free: 7.543 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.0202, allocations: 7.938 kB / 404.9 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.02021, allocations: 11.98 kB / 404.9 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.02047, allocations: 200.4 kB / 405.1 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/0.02102, allocations: 0.6464 MB / 405.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004011/0.02142, allocations: 234.5 kB / 405.9 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.02156, allocations: 140.7 kB / 406.1 MB, free: 6.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.02169, allocations: 95.92 kB / 406.2 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.02171, allocations: 34.56 kB / 406.2 MB, free: 6.113 MB / 330.7 MB Notification: Performance of pre-optimization done (n=44): time 1.203e-06/0.02171, allocations: 0 / 406.2 MB, free: 6.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001572/0.02328, allocations: 1.171 MB / 407.4 MB, free: 4.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.02332, allocations: 55.41 kB / 407.4 MB, free: 4.844 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.215e-05/0.02339, allocations: 125.8 kB / 407.6 MB, free: 4.711 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.0234, allocations: 29.7 kB / 407.6 MB, free: 4.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.644e-05/0.02345, allocations: 105 kB / 407.7 MB, free: 4.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.827e-05/0.02352, allocations: 166.5 kB / 407.8 MB, free: 4.406 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.675e-05/0.02358, allocations: 57.7 kB / 407.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.555e-05/0.02365, allocations: 334.8 kB / 408.2 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.02379, allocations: 132.4 kB / 408.4 MB, free: 3.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.02394, allocations: 188.1 kB / 408.5 MB, free: 3.672 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.02423, allocations: 337 kB / 408.9 MB, free: 3.324 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.02423, allocations: 3.938 kB / 408.9 MB, free: 3.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005935/0.02482, allocations: 498.9 kB / 409.4 MB, free: 2.824 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.02484, allocations: 12.09 kB / 409.4 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.02484, allocations: 4 kB / 409.4 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003733/0.02522, allocations: 164.6 kB / 409.5 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.486e-05/0.02529, allocations: 27.98 kB / 409.6 MB, free: 2.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004138/0.0257, allocations: 0.6727 MB / 410.2 MB, free: 1.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.2e-05/0.02578, allocations: 16.03 kB / 410.3 MB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.02579, allocations: 8 kB / 410.3 MB, free: 1.898 MB / 330.7 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 8.431e-05/0.02587, allocations: 129.8 kB / 410.4 MB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.434e-05/0.0259, allocations: 15.91 kB / 410.4 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.02594, allocations: 22.28 kB / 410.4 MB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.02595, allocations: 11.98 kB / 410.4 MB, free: 1.711 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.02595, allocations: 3.938 kB / 410.4 MB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.02596, allocations: 3.984 kB / 410.4 MB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.02615, allocations: 245.7 kB / 410.7 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.02615, allocations: 3.938 kB / 410.7 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.02648, allocations: 51.91 kB / 410.7 MB, free: 1.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.02665, allocations: 72.72 kB / 410.8 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.02666, allocations: 4 kB / 410.8 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1381/0.1648, allocations: 2.706 MB / 413.5 MB, free: 26.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1648, allocations: 0.75 kB / 413.5 MB, free: 26.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000691/0.1655, allocations: 0.7192 MB / 414.2 MB, free: 26.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.1655, allocations: 20.19 kB / 414.3 MB, free: 26.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.1655, allocations: 4.922 kB / 414.3 MB, free: 26.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.1656, allocations: 12.75 kB / 414.3 MB, free: 26.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.46e-05/0.1656, allocations: 25.95 kB / 414.3 MB, free: 26.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.1657, allocations: 5.641 kB / 414.3 MB, free: 26.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.343e-05/0.1657, allocations: 98.67 kB / 414.4 MB, free: 25.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1657, allocations: 0 / 414.4 MB, free: 25.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.1659, allocations: 66.75 kB / 414.5 MB, free: 25.96 MB / 330.7 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.0008908/0.1668, allocations: 1.274 MB / 415.7 MB, free: 25.28 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004966/0.1673, allocations: 355.5 kB / 416.1 MB, free: 25.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1673, allocations: 1.094 kB / 416.1 MB, free: 25.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.1677, allocations: 297.5 kB / 416.4 MB, free: 25.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.1681, allocations: 97.88 kB / 416.5 MB, free: 25.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.1705, allocations: 2.913 MB / 419.4 MB, free: 23.76 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.167e-05/0.1706, allocations: 127.3 kB / 419.5 MB, free: 23.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001699/0.1707, allocations: 110.1 kB / 419.6 MB, free: 23.67 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.176e-05/0.1708, allocations: 56.17 kB / 419.7 MB, free: 23.66 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1708, allocations: 0 / 419.7 MB, free: 23.66 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.1921, allocations: 8.759 MB / 428.4 MB, free: 21.5 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.079, allocations: 15.58 kB / 428.5 MB, free: 21.49 MB / 330.7 MB " [Timeout remaining time 652] (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: 9.942442575469613] Failed to read output from testmodel.py, exit status != 0: 8.417731712572277 8.425173959 8.405124256 Calling exit ...