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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 105.9 kB / 16.27 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 187.6 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01172/0.01172, allocations: 2.769 MB / 293.8 MB, free: 12.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.91 kB / 355.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.222, allocations: 50.23 MB / 405.3 MB, free: 32.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.007613/0.2297, allocations: 8.354 MB / 413.7 MB, free: 24.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005291/0.235, allocations: 9.466 MB / 423.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.2352, allocations: 0 / 423.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005171/0.2358, allocations: 159 kB / 423.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003227/0.2361, allocations: 95.34 kB / 423.4 MB, free: 14.83 MB / 302.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.003516/0.2397, allocations: 1.456 MB / 424.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.24, allocations: 262.8 kB / 425.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.439e-05/0.2401, allocations: 13.67 kB / 425.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00437/0.2445, allocations: 129.4 kB / 425.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.2446, allocations: 79.69 kB / 425.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.2447, allocations: 8 kB / 425.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.2464, allocations: 471.9 kB / 425.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.02e-05/0.2465, allocations: 43.83 kB / 425.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.043e-05/0.2466, allocations: 79.61 kB / 425.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009996/0.2476, allocations: 0.4988 MB / 426.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2476, allocations: 0 / 426.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2476, allocations: 0 / 426.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.2476, allocations: 0 / 426.4 MB, free: 11.8 MB / 302.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.0007543/0.2484, allocations: 0.5379 MB / 426.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2484, allocations: 16.03 kB / 426.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003332/0.2488, allocations: 60.55 kB / 427 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.249, allocations: 212 kB / 427.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.249, allocations: 4.375 kB / 427.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.249, allocations: 12.38 kB / 427.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.2495, allocations: 243.3 kB / 427.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2495, allocations: 0 / 427.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.2495, allocations: 8 kB / 427.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.2495, allocations: 11.98 kB / 427.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004637/0.25, allocations: 200.2 kB / 427.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000647/0.2507, allocations: 0.6823 MB / 428.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005411/0.2512, allocations: 246.5 kB / 428.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.2514, allocations: 156.8 kB / 428.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002047/0.2517, allocations: 327.2 kB / 429.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.2517, allocations: 38.56 kB / 429.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.733e-06/0.2517, allocations: 0 / 429.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.002479/0.2542, allocations: 1.23 MB / 430.3 MB, free: 7.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.2542, allocations: 55.41 kB / 430.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.288e-05/0.2543, allocations: 125.7 kB / 430.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.2543, allocations: 33.7 kB / 430.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.338e-05/0.2544, allocations: 100.9 kB / 430.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.856e-05/0.2544, allocations: 153.7 kB / 430.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/0.2545, allocations: 57.69 kB / 430.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.422e-05/0.2546, allocations: 330.8 kB / 431.2 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.2548, allocations: 132.5 kB / 431.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.255, allocations: 189.1 kB / 431.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004442/0.2555, allocations: 343.8 kB / 431.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2555, allocations: 0 / 431.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009905/0.2565, allocations: 489.5 kB / 432.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2565, allocations: 10.19 kB / 432.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2565, allocations: 160 / 432.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007117/0.2572, allocations: 164.7 kB / 432.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.2574, allocations: 35.92 kB / 432.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005063/0.2579, allocations: 0.6732 MB / 433.2 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.2581, allocations: 12.03 kB / 433.2 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.2581, allocations: 12 kB / 433.2 MB, free: 4.57 MB / 302.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.0001009/0.2582, allocations: 133.7 kB / 433.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.2582, allocations: 19.72 kB / 433.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.345e-05/0.2583, allocations: 26.22 kB / 433.4 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.2583, allocations: 7.984 kB / 433.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.2583, allocations: 11.94 kB / 433.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2584, allocations: 0 / 433.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.2586, allocations: 290.4 kB / 433.7 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2586, allocations: 3.938 kB / 433.7 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.2589, allocations: 51.89 kB / 433.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003151/0.2592, allocations: 68.78 kB / 433.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.2592, allocations: 7.938 kB / 433.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/0.2607, allocations: 2.921 MB / 436.7 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2607, allocations: 0 / 436.7 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009815/0.2617, allocations: 0.7041 MB / 437.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.517e-05/0.2618, allocations: 92.86 kB / 437.5 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.2618, allocations: 12 kB / 437.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.262, allocations: 11.92 kB / 437.6 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.2621, allocations: 27.84 kB / 437.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2621, allocations: 8 kB / 437.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.027e-05/0.2622, allocations: 99.2 kB / 437.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2622, allocations: 0 / 437.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.2626, allocations: 64 kB / 437.8 MB, free: 15.63 MB / 318.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.0003629/0.263, allocations: 170.5 kB / 437.9 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009231/0.2639, allocations: 387.2 kB / 438.3 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2639, allocations: 4 kB / 438.3 MB, free: 15.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006395/0.2645, allocations: 311 kB / 438.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.2653, allocations: 108.4 kB / 438.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.2666, allocations: 0.7337 MB / 439.4 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.2669, allocations: 0.741 MB / 440.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.2669, allocations: 27.42 kB / 440.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of SimCode: time 4.3e-07/0.267, allocations: 0 / 440.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of Templates: time 0.006641/0.2736, allocations: 3.812 MB / 444 MB, free: 9.293 MB / 318.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile (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 & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)