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.001233/0.001234, allocations: 108 kB / 15.61 MB, free: 152 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.001215/0.001215, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.14/0.14, allocations: 2.764 MB / 293.1 MB, free: 3.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.91 kB / 354.4 MB, free: 4.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1014, allocations: 50.22 MB / 404.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01049/0.112, allocations: 8.363 MB / 413 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008066/0.1201, allocations: 9.463 MB / 422.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.1203, allocations: 0 / 422.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005422/0.1208, allocations: 155.1 kB / 422.6 MB, free: 84 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1662/0.2871, allocations: 95.33 kB / 422.7 MB, free: 36.61 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.003861/0.2909, allocations: 1.452 MB / 424.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004162/0.2914, allocations: 263.5 kB / 424.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.143e-05/0.2914, allocations: 15.42 kB / 424.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004336/0.2958, allocations: 114.4 kB / 424.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.296, allocations: 93.94 kB / 424.6 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.296, allocations: 9.906 kB / 424.6 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001972/0.298, allocations: 478.2 kB / 425.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.444e-05/0.2981, allocations: 30.7 kB / 425.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.2982, allocations: 89.09 kB / 425.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.2994, allocations: 0.4905 MB / 425.7 MB, free: 36.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2995, allocations: 0 / 425.7 MB, free: 36.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2995, allocations: 0 / 425.7 MB, free: 36.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.2995, allocations: 3.25 kB / 425.7 MB, free: 36.56 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.0007076/0.3002, allocations: 0.5476 MB / 426.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.3002, allocations: 15.55 kB / 426.3 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.3006, allocations: 60.83 kB / 426.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.3007, allocations: 195 kB / 426.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3007, allocations: 9.906 kB / 426.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.3008, allocations: 9.969 kB / 426.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/0.3012, allocations: 249.2 kB / 426.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.3013, allocations: 4 kB / 426.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.3013, allocations: 3.75 kB / 426.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.3013, allocations: 13.33 kB / 426.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.3018, allocations: 197.2 kB / 427 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/0.3024, allocations: 0.6911 MB / 427.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/0.303, allocations: 239.3 kB / 427.9 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.3032, allocations: 158.5 kB / 428.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001938/0.3034, allocations: 336.9 kB / 428.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.747e-05/0.3034, allocations: 30.56 kB / 428.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.473e-06/0.3034, allocations: 0 / 428.4 MB, free: 35.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002516/0.306, allocations: 1.225 MB / 429.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.902e-05/0.306, allocations: 55.41 kB / 429.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.968e-05/0.3061, allocations: 130.9 kB / 429.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3061, allocations: 28.95 kB / 429.9 MB, free: 34.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.3061, allocations: 105 kB / 430 MB, free: 34.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.647e-05/0.3062, allocations: 152.4 kB / 430.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.91e-05/0.3063, allocations: 58.69 kB / 430.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/0.3063, allocations: 330.5 kB / 430.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/0.3066, allocations: 132.8 kB / 430.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.3068, allocations: 187.3 kB / 430.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.3073, allocations: 343.5 kB / 431.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3073, allocations: 2.25 kB / 431.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009921/0.3083, allocations: 490.8 kB / 431.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3083, allocations: 6.094 kB / 431.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3083, allocations: 3.219 kB / 431.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007202/0.3091, allocations: 159 kB / 431.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.3092, allocations: 35.48 kB / 431.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005186/0.3097, allocations: 0.6716 MB / 432.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.3099, allocations: 13.86 kB / 432.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.3099, allocations: 6.656 kB / 432.5 MB, free: 33.25 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 9.053e-05/0.31, allocations: 135.9 kB / 432.7 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.418e-05/0.31, allocations: 18.88 kB / 432.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.361e-05/0.3101, allocations: 23.47 kB / 432.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/0.3101, allocations: 12.84 kB / 432.7 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3101, allocations: 4 kB / 432.7 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3102, allocations: 3.375 kB / 432.7 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.3104, allocations: 296.8 kB / 433 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3104, allocations: 0 / 433 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002532/0.3107, allocations: 45.8 kB / 433.1 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003181/0.311, allocations: 69.58 kB / 433.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.311, allocations: 6.875 kB / 433.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.3124, allocations: 2.929 MB / 436.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3124, allocations: 6.703 kB / 436.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009551/0.3133, allocations: 0.6958 MB / 436.8 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.901e-05/0.3134, allocations: 102.7 kB / 436.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.3134, allocations: 6.812 kB / 436.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.3136, allocations: 10.12 kB / 436.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.3136, allocations: 27.42 kB / 436.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3137, allocations: 7.188 kB / 436.9 MB, free: 29.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.573e-05/0.3137, allocations: 95.16 kB / 437 MB, free: 29.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3137, allocations: 0 / 437 MB, free: 29.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.3141, allocations: 65.41 kB / 437.1 MB, free: 29.68 MB / 350.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.0003117/0.3144, allocations: 183.6 kB / 437.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008017/0.3152, allocations: 383 kB / 437.6 MB, free: 29.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3152, allocations: 2.969 kB / 437.6 MB, free: 29.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.3157, allocations: 312.5 kB / 437.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006144/0.3163, allocations: 96.92 kB / 438 MB, free: 29.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.3174, allocations: 0.6976 MB / 438.7 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.3176, allocations: 0.7437 MB / 439.5 MB, free: 28.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001962/0.3178, allocations: 103.7 kB / 439.6 MB, free: 28.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.143e-05/0.3178, allocations: 16.97 kB / 439.6 MB, free: 28.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3178, allocations: 0 / 439.6 MB, free: 28.4 MB / 350.1 MB Notification: Performance of Templates: time 0.008593/0.3264, allocations: 5.239 MB / 444.8 MB, free: 28.01 MB / 350.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)