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.001614/0.001614, 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.001863/0.001863, allocations: 196.6 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1127/0.1127, allocations: 2.761 MB / 293.2 MB, free: 3.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 63.91 kB / 354.5 MB, free: 4.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1127, allocations: 50.24 MB / 404.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01378/0.1266, allocations: 8.345 MB / 413.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009676/0.1363, allocations: 9.467 MB / 422.6 MB, free: 108 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.1365, allocations: 0 / 422.6 MB, free: 108 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1473/0.2838, allocations: 150.3 kB / 422.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004133/0.2843, allocations: 99.86 kB / 422.8 MB, free: 35.9 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.003554/0.2878, allocations: 1.453 MB / 424.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003414/0.2882, allocations: 262.2 kB / 424.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.536e-05/0.2883, allocations: 11.73 kB / 424.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.2923, allocations: 135 kB / 424.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.2924, allocations: 88.48 kB / 424.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.2925, allocations: 9.781 kB / 424.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.2939, allocations: 471.9 kB / 425.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.108e-05/0.294, allocations: 30.39 kB / 425.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.41e-05/0.2941, allocations: 86.44 kB / 425.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008999/0.295, allocations: 0.4954 MB / 425.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.295, allocations: 0.8125 kB / 425.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.295, allocations: 0 / 425.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.295, allocations: 4 kB / 425.8 MB, free: 35.84 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.0006703/0.2957, allocations: 0.5462 MB / 426.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2958, allocations: 9.156 kB / 426.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.2958, allocations: 53.69 kB / 426.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003117/0.2961, allocations: 56.16 kB / 426.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.2963, allocations: 203 kB / 426.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.2963, allocations: 11.72 kB / 426.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.2963, allocations: 13.03 kB / 426.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004584/0.2968, allocations: 246.5 kB / 426.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2968, allocations: 0 / 426.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.2969, allocations: 6.594 kB / 427 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.2969, allocations: 9.922 kB / 427 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.2973, allocations: 206.7 kB / 427.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000623/0.298, allocations: 0.677 MB / 427.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005567/0.2985, allocations: 243.7 kB / 428.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.2987, allocations: 163.4 kB / 428.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001834/0.2989, allocations: 324.2 kB / 428.6 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.382e-05/0.299, allocations: 37.44 kB / 428.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.553e-06/0.299, allocations: 7.219 kB / 428.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002487/0.3015, allocations: 1.222 MB / 429.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.3015, allocations: 57.31 kB / 429.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.656e-05/0.3016, allocations: 126.1 kB / 430 MB, free: 33.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.3016, allocations: 33.27 kB / 430 MB, free: 33.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.3016, allocations: 102.1 kB / 430.1 MB, free: 33.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.375e-05/0.3017, allocations: 157.2 kB / 430.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.446e-05/0.3018, allocations: 59.45 kB / 430.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.3018, allocations: 330.9 kB / 430.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.3021, allocations: 129.3 kB / 430.8 MB, free: 33.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.3023, allocations: 186.5 kB / 431 MB, free: 33.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004551/0.3028, allocations: 344.6 kB / 431.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3028, allocations: 0 / 431.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001025/0.3038, allocations: 491.3 kB / 431.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.3038, allocations: 6.406 kB / 431.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3039, allocations: 0.5469 kB / 431.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007321/0.3046, allocations: 166.5 kB / 432 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3047, allocations: 32.84 kB / 432 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005021/0.3052, allocations: 0.6647 MB / 432.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.3054, allocations: 14.06 kB / 432.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.3054, allocations: 11.84 kB / 432.7 MB, free: 32.5 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.132e-05/0.3055, allocations: 138.3 kB / 432.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.579e-05/0.3056, allocations: 21.58 kB / 432.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.179e-05/0.3056, allocations: 29.72 kB / 432.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.3057, allocations: 10.78 kB / 432.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.3057, allocations: 0 / 432.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3057, allocations: 3.938 kB / 432.9 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.3059, allocations: 297.2 kB / 433.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3059, allocations: 0 / 433.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.3062, allocations: 52.31 kB / 433.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003262/0.3065, allocations: 68.86 kB / 433.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.3066, allocations: 7.125 kB / 433.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.3079, allocations: 2.927 MB / 436.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.308, allocations: 4.094 kB / 436.2 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009539/0.3089, allocations: 0.6993 MB / 436.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.817e-05/0.309, allocations: 87.92 kB / 437 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.309, allocations: 6.562 kB / 437 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.3092, allocations: 13.78 kB / 437 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.3092, allocations: 33.5 kB / 437.1 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.3093, allocations: 6.422 kB / 437.1 MB, free: 29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.565e-05/0.3093, allocations: 94.77 kB / 437.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3093, allocations: 0 / 437.2 MB, free: 28.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.3096, allocations: 64.19 kB / 437.2 MB, free: 28.93 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.001247/0.3109, allocations: 1.256 MB / 438.5 MB, free: 28.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007855/0.3117, allocations: 385.4 kB / 438.9 MB, free: 28.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3117, allocations: 0 / 438.9 MB, free: 28.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004962/0.3122, allocations: 318.8 kB / 439.2 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.3129, allocations: 102.5 kB / 439.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.3165, allocations: 2.945 MB / 442.2 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.3167, allocations: 0.7378 MB / 443 MB, free: 25.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.3169, allocations: 109.6 kB / 443.1 MB, free: 25.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.317, allocations: 59.41 kB / 443.1 MB, free: 25.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.317, allocations: 0 / 443.1 MB, free: 25.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/0.3438, allocations: 7.781 MB / 450.9 MB, free: 24.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.68, allocations: 6.875 kB / 450.9 MB, free: 24.68 MB / 350.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)