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.005427/0.005427, allocations: 99.95 kB / 15.73 MB, free: 6.477 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.001056/0.001057, allocations: 191 kB / 16.67 MB, free: 6.379 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.278/1.278, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1162/0.1162, allocations: 2.761 MB / 293.3 MB, free: 3.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 67.91 kB / 405.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.244, allocations: 50.23 MB / 456.1 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.006917/0.251, allocations: 8.369 MB / 464.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006977/0.258, allocations: 9.459 MB / 473.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.2582, allocations: 3.938 kB / 473.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005842/0.2588, allocations: 158.2 kB / 474.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003665/0.2592, allocations: 106.5 kB / 474.2 MB, free: 7.855 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.004971/0.2642, allocations: 1.45 MB / 475.7 MB, free: 7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/0.2646, allocations: 262.3 kB / 475.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.644e-05/0.2647, allocations: 12.88 kB / 475.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004569/0.2693, allocations: 134.7 kB / 476.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.2695, allocations: 80.33 kB / 476.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.2696, allocations: 7.75 kB / 476.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002513/0.2721, allocations: 475.1 kB / 476.6 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.48e-05/0.2722, allocations: 33.69 kB / 476.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.2723, allocations: 84.8 kB / 476.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.2737, allocations: 0.4969 MB / 477.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2737, allocations: 1.469 kB / 477.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2737, allocations: 0 / 477.2 MB, free: 6.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.2737, allocations: 0 / 477.2 MB, free: 6.469 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.0008627/0.2746, allocations: 0.5518 MB / 477.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.2746, allocations: 12.53 kB / 477.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/0.275, allocations: 59.06 kB / 477.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.2752, allocations: 201.9 kB / 478 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.2753, allocations: 6 kB / 478 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.2753, allocations: 15.34 kB / 478.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005339/0.2758, allocations: 241.6 kB / 478.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2759, allocations: 3.938 kB / 478.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.2759, allocations: 5.281 kB / 478.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.2759, allocations: 10.62 kB / 478.3 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004722/0.2764, allocations: 204.3 kB / 478.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007447/0.2771, allocations: 0.6764 MB / 479.2 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.2777, allocations: 240.7 kB / 479.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.278, allocations: 161.1 kB / 479.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002282/0.2782, allocations: 324 kB / 479.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.2782, allocations: 41.02 kB / 479.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.634e-06/0.2782, allocations: 0 / 479.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002835/0.2811, allocations: 1.236 MB / 481.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.2811, allocations: 57.69 kB / 481.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.211e-05/0.2812, allocations: 121.2 kB / 481.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.2812, allocations: 30.41 kB / 481.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.418e-05/0.2813, allocations: 106.3 kB / 481.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.89e-05/0.2814, allocations: 153 kB / 481.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.641e-05/0.2815, allocations: 59.2 kB / 481.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.2816, allocations: 334.4 kB / 482 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.2819, allocations: 129.8 kB / 482.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.2821, allocations: 185.8 kB / 482.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.2827, allocations: 341.5 kB / 482.7 MB, free: 2.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2827, allocations: 0 / 482.7 MB, free: 2.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001183/0.2839, allocations: 493.5 kB / 483.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.2839, allocations: 6.797 kB / 483.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.284, allocations: 1.281 kB / 483.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008081/0.2848, allocations: 159.2 kB / 483.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.2849, allocations: 37.05 kB / 483.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005817/0.2855, allocations: 0.6723 MB / 484 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.2857, allocations: 16.23 kB / 484 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.2857, allocations: 11.11 kB / 484 MB, free: 1.836 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.0001096/0.2858, allocations: 133.7 kB / 484.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/0.2859, allocations: 19.47 kB / 484.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.94e-05/0.2859, allocations: 25.03 kB / 484.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.286, allocations: 10.56 kB / 484.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.286, allocations: 0 / 484.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.286, allocations: 6.656 kB / 484.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.2863, allocations: 299.9 kB / 484.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2863, allocations: 0 / 484.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.2866, allocations: 48.66 kB / 484.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/0.2869, allocations: 68.2 kB / 484.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.2869, allocations: 13.53 kB / 484.6 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/0.2887, allocations: 2.918 MB / 487.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2888, allocations: 1.188 kB / 487.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.29, allocations: 0.7068 MB / 488.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.29, allocations: 94.22 kB / 488.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.2901, allocations: 6.969 kB / 488.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.2902, allocations: 10.58 kB / 488.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.837e-05/0.2903, allocations: 26.34 kB / 488.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.2903, allocations: 11.56 kB / 488.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.507e-05/0.2904, allocations: 95.69 kB / 488.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2904, allocations: 0 / 488.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003853/0.2908, allocations: 65.41 kB / 488.6 MB, free: 13.77 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.0003991/0.2912, allocations: 175 kB / 488.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008923/0.2921, allocations: 375.8 kB / 489.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2921, allocations: 5 kB / 489.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.2927, allocations: 308.5 kB / 489.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.2933, allocations: 103.1 kB / 489.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2946, allocations: 0.6935 MB / 490.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.2949, allocations: 0.7411 MB / 491 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002671/0.2952, allocations: 110.6 kB / 491.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.2953, allocations: 23.45 kB / 491.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2953, allocations: 0 / 491.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of Templates: time 0.01016/0.3055, allocations: 5.26 MB / 496.3 MB, free: 9.969 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)