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.001207/0.001207, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 188.9 kB / 16.66 MB, free: 6.582 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.243/1.243, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.09916/0.09916, allocations: 2.755 MB / 293.3 MB, free: 3.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.91 kB / 405.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.2004, allocations: 50.23 MB / 456.1 MB, free: 21.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.005997/0.2065, allocations: 8.361 MB / 464.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005272/0.2118, allocations: 9.453 MB / 473.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.792e-05/0.2119, allocations: 1.719 kB / 473.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004329/0.2123, allocations: 164.9 kB / 474.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002475/0.2126, allocations: 92.98 kB / 474.2 MB, free: 7.844 MB / 350.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.002744/0.2153, allocations: 1.471 MB / 475.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003313/0.2157, allocations: 261.7 kB / 475.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.476e-05/0.2157, allocations: 12.28 kB / 475.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004107/0.2199, allocations: 124.3 kB / 476 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.22, allocations: 84.25 kB / 476.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.22, allocations: 6.875 kB / 476.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.2214, allocations: 479 kB / 476.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.924e-05/0.2215, allocations: 33.8 kB / 476.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.902e-05/0.2216, allocations: 84.58 kB / 476.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000916/0.2225, allocations: 0.4963 MB / 477.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2225, allocations: 2.219 kB / 477.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2225, allocations: 0 / 477.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.2225, allocations: 0 / 477.2 MB, free: 6.441 MB / 350.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.0006569/0.2232, allocations: 0.5572 MB / 477.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.2232, allocations: 13.56 kB / 477.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003129/0.2235, allocations: 55.81 kB / 477.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.2237, allocations: 209.2 kB / 478 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.2237, allocations: 9.875 kB / 478 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.106e-05/0.2238, allocations: 11.25 kB / 478.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.2242, allocations: 245.7 kB / 478.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.2242, allocations: 0 / 478.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.2243, allocations: 2.75 kB / 478.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.2243, allocations: 9.703 kB / 478.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004589/0.2248, allocations: 207.4 kB / 478.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006626/0.2254, allocations: 0.6749 MB / 479.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/0.226, allocations: 235.8 kB / 479.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.2262, allocations: 161.3 kB / 479.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001887/0.2264, allocations: 331.1 kB / 479.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.413e-05/0.2264, allocations: 33.23 kB / 479.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.453e-06/0.2264, allocations: 0 / 479.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002544/0.229, allocations: 1.244 MB / 481.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.229, allocations: 58.88 kB / 481.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.346e-05/0.2291, allocations: 127.2 kB / 481.4 MB, free: 3.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.2291, allocations: 30.67 kB / 481.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.678e-05/0.2292, allocations: 103.5 kB / 481.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.716e-05/0.2293, allocations: 166 kB / 481.6 MB, free: 3.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.758e-05/0.2293, allocations: 62.52 kB / 481.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.364e-05/0.2294, allocations: 330 kB / 482 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.2296, allocations: 125.2 kB / 482.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.2299, allocations: 186.7 kB / 482.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/0.2304, allocations: 344.6 kB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2304, allocations: 1.344 kB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00101/0.2314, allocations: 489.2 kB / 483.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2314, allocations: 6.406 kB / 483.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.2314, allocations: 1.531 kB / 483.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000722/0.2321, allocations: 158.7 kB / 483.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2323, allocations: 45.2 kB / 483.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004951/0.2328, allocations: 0.6637 MB / 484 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.2329, allocations: 8.875 kB / 484 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.233, allocations: 12.34 kB / 484 MB, free: 1.793 MB / 350.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.0001056/0.2331, allocations: 137 kB / 484.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.2331, allocations: 19.27 kB / 484.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.559e-05/0.2332, allocations: 28.45 kB / 484.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.101e-05/0.2332, allocations: 6.484 kB / 484.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2332, allocations: 1.719 kB / 484.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2332, allocations: 0.75 kB / 484.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.2335, allocations: 304.6 kB / 484.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2335, allocations: 0 / 484.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/0.2338, allocations: 56.58 kB / 484.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003108/0.2341, allocations: 65.97 kB / 484.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.2341, allocations: 10.38 kB / 484.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001594/0.2357, allocations: 2.924 MB / 487.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2357, allocations: 3.938 kB / 487.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.2368, allocations: 0.7002 MB / 488.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.54e-05/0.2368, allocations: 94.58 kB / 488.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.2369, allocations: 9.375 kB / 488.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.237, allocations: 12.7 kB / 488.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.2371, allocations: 29.97 kB / 488.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.2371, allocations: 4.984 kB / 488.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.011e-05/0.2372, allocations: 96.88 kB / 488.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2372, allocations: 0 / 488.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.2375, allocations: 66.38 kB / 488.6 MB, free: 13.71 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.0002993/0.2378, allocations: 175.7 kB / 488.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007852/0.2386, allocations: 378.6 kB / 489.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2387, allocations: 3.938 kB / 489.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005203/0.2392, allocations: 316 kB / 489.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.2398, allocations: 96.64 kB / 489.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.2409, allocations: 0.6941 MB / 490.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.2412, allocations: 0.7389 MB / 491 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002111/0.2414, allocations: 112.8 kB / 491.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.762e-05/0.2415, allocations: 18.59 kB / 491.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2415, allocations: 0 / 491.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of Templates: time 0.009088/0.2506, allocations: 5.271 MB / 496.4 MB, free: 9.941 MB / 366.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)