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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007779/0.007779, allocations: 98.69 kB / 15.73 MB, free: 6.027 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.001839/0.00184, allocations: 194.7 kB / 16.67 MB, free: 5.961 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1257/0.1256, allocations: 2.764 MB / 293.3 MB, free: 3.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 55.91 kB / 405.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2469, allocations: 50.24 MB / 455.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.006893/0.2538, allocations: 8.355 MB / 464 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006006/0.2599, allocations: 9.465 MB / 473.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.2601, allocations: 0 / 473.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005603/0.2607, allocations: 158.6 kB / 473.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003511/0.261, allocations: 101.1 kB / 473.7 MB, free: 7.504 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.004471/0.2655, allocations: 1.447 MB / 475.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004287/0.2659, allocations: 267.4 kB / 475.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.234e-05/0.266, allocations: 20.16 kB / 475.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004387/0.2704, allocations: 133.8 kB / 475.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2706, allocations: 84.41 kB / 475.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.2707, allocations: 8.031 kB / 475.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.2727, allocations: 470.7 kB / 476.1 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-05/0.2728, allocations: 38.3 kB / 476.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.2729, allocations: 81.17 kB / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001693/0.2746, allocations: 0.5038 MB / 476.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2746, allocations: 0 / 476.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2746, allocations: 0 / 476.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.2747, allocations: 1.375 kB / 476.7 MB, free: 6.102 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.0009179/0.2756, allocations: 0.5541 MB / 477.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.2756, allocations: 13.56 kB / 477.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.232e-05/0.2757, allocations: 52.84 kB / 477.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003908/0.2761, allocations: 55.16 kB / 477.4 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.2763, allocations: 203.3 kB / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.2764, allocations: 8.5 kB / 477.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.2764, allocations: 15.25 kB / 477.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005447/0.277, allocations: 248.3 kB / 477.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.277, allocations: 1.375 kB / 477.9 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.277, allocations: 5.375 kB / 477.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.277, allocations: 5.422 kB / 477.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005295/0.2776, allocations: 213.2 kB / 478.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008351/0.2784, allocations: 0.6756 MB / 478.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006532/0.2791, allocations: 243.4 kB / 479 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002605/0.2794, allocations: 152.3 kB / 479.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002413/0.2796, allocations: 328.6 kB / 479.5 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.2796, allocations: 36.83 kB / 479.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.2796, allocations: 0 / 479.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002835/0.2825, allocations: 1.236 MB / 480.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.2825, allocations: 54.81 kB / 480.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.717e-05/0.2826, allocations: 122.7 kB / 480.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.2827, allocations: 30.86 kB / 481 MB, free: 3.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.2827, allocations: 110.9 kB / 481.1 MB, free: 3.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.371e-05/0.2828, allocations: 162.4 kB / 481.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.475e-05/0.2829, allocations: 63.2 kB / 481.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.374e-05/0.283, allocations: 337.7 kB / 481.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.2833, allocations: 124.8 kB / 481.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.2836, allocations: 182.3 kB / 481.9 MB, free: 2.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005385/0.2841, allocations: 337.9 kB / 482.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2841, allocations: 1.188 kB / 482.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001138/0.2853, allocations: 494.8 kB / 482.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.2853, allocations: 11.34 kB / 482.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2853, allocations: 1.469 kB / 482.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008037/0.2861, allocations: 160 kB / 482.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.2863, allocations: 32.73 kB / 482.9 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005733/0.2869, allocations: 0.6754 MB / 483.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.287, allocations: 17.17 kB / 483.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.2871, allocations: 7.922 kB / 483.6 MB, free: 1.402 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.0001262/0.2872, allocations: 127.9 kB / 483.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.972e-05/0.2873, allocations: 18.36 kB / 483.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.95e-05/0.2873, allocations: 30.25 kB / 483.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.2874, allocations: 9.547 kB / 483.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.2874, allocations: 1.344 kB / 483.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.2874, allocations: 13.23 kB / 483.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003383/0.2877, allocations: 300.1 kB / 484.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2877, allocations: 0 / 484.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.288, allocations: 48.41 kB / 484.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003557/0.2884, allocations: 70.23 kB / 484.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.2884, allocations: 9.906 kB / 484.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002014/0.2904, allocations: 2.92 MB / 487.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2905, allocations: 0 / 487.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.2916, allocations: 0.7041 MB / 487.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.2917, allocations: 98.45 kB / 488 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.2917, allocations: 3.781 kB / 488 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.2919, allocations: 19.12 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.203e-05/0.292, allocations: 24.75 kB / 488 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.292, allocations: 7.75 kB / 488 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.693e-05/0.2921, allocations: 91.64 kB / 488.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2921, allocations: 1.062 kB / 488.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004019/0.2925, allocations: 61.56 kB / 488.2 MB, free: 13.33 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.001633/0.2942, allocations: 1.266 MB / 489.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000932/0.2951, allocations: 376.3 kB / 489.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2951, allocations: 0 / 489.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006058/0.2957, allocations: 317.1 kB / 490.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.2964, allocations: 99.52 kB / 490.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004901/0.3013, allocations: 2.984 MB / 493.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.3017, allocations: 0.7333 MB / 493.9 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003611/0.3021, allocations: 109.4 kB / 494 MB, free: 9.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3022, allocations: 55.7 kB / 494.1 MB, free: 9.258 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3022, allocations: 0 / 494.1 MB, free: 9.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.3378, allocations: 7.895 MB / 0.4902 GB, free: 5.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.75, allocations: 4.406 kB / 0.4902 GB, free: 5.664 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)