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.001267/0.001267, 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.001273/0.001273, allocations: 194.7 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1146/0.1146, allocations: 2.77 MB / 293.2 MB, free: 3.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002536/0.002536, allocations: 60.14 kB / 354.5 MB, free: 4.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1188, allocations: 50.24 MB / 404.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01006/0.1289, allocations: 8.345 MB / 413.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008301/0.1372, allocations: 9.459 MB / 422.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.1374, allocations: 0 / 422.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1804/0.3179, allocations: 156.9 kB / 422.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004362/0.3184, allocations: 97.45 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.004339/0.3227, allocations: 1.451 MB / 424.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005657/0.3233, allocations: 267.1 kB / 424.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.557e-05/0.3234, allocations: 15.41 kB / 424.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004932/0.3284, allocations: 125.2 kB / 424.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.3287, allocations: 86.72 kB / 424.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.3287, allocations: 9.5 kB / 424.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001935/0.3307, allocations: 471.7 kB / 425.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.3307, allocations: 33.44 kB / 425.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001505/0.3309, allocations: 86.98 kB / 425.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.3326, allocations: 0.4953 MB / 425.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3327, allocations: 0.5312 kB / 425.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3327, allocations: 4 kB / 425.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3327, allocations: 0 / 425.8 MB, free: 35.85 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.0008731/0.3336, allocations: 0.5445 MB / 426.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3336, allocations: 9.812 kB / 426.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.599e-05/0.3337, allocations: 53.05 kB / 426.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003768/0.3341, allocations: 59.14 kB / 426.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.3342, allocations: 209 kB / 426.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.3343, allocations: 9.219 kB / 426.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.3343, allocations: 14.41 kB / 426.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.3348, allocations: 246.9 kB / 426.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.3348, allocations: 0.625 kB / 426.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.3349, allocations: 3.125 kB / 426.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.3349, allocations: 11.7 kB / 427 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004724/0.3354, allocations: 205.6 kB / 427.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006939/0.3361, allocations: 0.673 MB / 427.8 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005804/0.3367, allocations: 249.8 kB / 428.1 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.3369, allocations: 154 kB / 428.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002039/0.3371, allocations: 328.6 kB / 428.5 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.3371, allocations: 42.25 kB / 428.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.715e-06/0.3371, allocations: 0 / 428.6 MB, free: 34.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.00262/0.3398, allocations: 1.225 MB / 429.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.3398, allocations: 57.66 kB / 429.9 MB, free: 33.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.885e-05/0.3399, allocations: 125.2 kB / 430 MB, free: 33.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.3399, allocations: 32.52 kB / 430 MB, free: 33.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.34, allocations: 101.5 kB / 430.1 MB, free: 33.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.3401, allocations: 152.8 kB / 430.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.398e-05/0.3401, allocations: 61.78 kB / 430.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.3402, allocations: 330.7 kB / 430.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.3404, allocations: 134.1 kB / 430.8 MB, free: 33.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.3407, allocations: 183.4 kB / 431 MB, free: 33.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.3412, allocations: 342.7 kB / 431.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3412, allocations: 3.188 kB / 431.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00105/0.3422, allocations: 492.1 kB / 431.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3423, allocations: 6.594 kB / 431.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3423, allocations: 5.234 kB / 431.8 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00076/0.343, allocations: 160.6 kB / 432 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.3432, allocations: 32.67 kB / 432 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005246/0.3437, allocations: 0.6723 MB / 432.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.3439, allocations: 9.781 kB / 432.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.3439, allocations: 19.53 kB / 432.7 MB, free: 32.51 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.0001019/0.344, allocations: 130 kB / 432.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.3441, allocations: 21.34 kB / 432.8 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.574e-05/0.3442, allocations: 26.81 kB / 432.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.316e-05/0.3442, allocations: 11.84 kB / 432.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3442, allocations: 10.5 kB / 432.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.3442, allocations: 3.375 kB / 432.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.3445, allocations: 286 kB / 433.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3445, allocations: 7.25 kB / 433.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.3448, allocations: 49.28 kB / 433.2 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003329/0.3451, allocations: 60.3 kB / 433.3 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.3451, allocations: 11 kB / 433.3 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.3467, allocations: 2.922 MB / 436.2 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3467, allocations: 7.156 kB / 436.2 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3478, allocations: 0.7012 MB / 436.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.53e-05/0.3478, allocations: 88.11 kB / 437 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.3478, allocations: 6.812 kB / 437 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.348, allocations: 17.47 kB / 437 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.924e-05/0.3481, allocations: 30.22 kB / 437.1 MB, free: 29.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.3481, allocations: 7.969 kB / 437.1 MB, free: 29.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.418e-05/0.3482, allocations: 97.59 kB / 437.2 MB, free: 28.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3482, allocations: 0 / 437.2 MB, free: 28.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003755/0.3485, allocations: 60.97 kB / 437.2 MB, free: 28.94 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.001435/0.35, allocations: 1.259 MB / 438.5 MB, free: 28.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009186/0.3509, allocations: 380.4 kB / 438.9 MB, free: 28.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.3509, allocations: 7.5 kB / 438.9 MB, free: 28.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005446/0.3515, allocations: 313 kB / 439.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006642/0.3522, allocations: 102.2 kB / 439.3 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.3563, allocations: 2.946 MB / 442.2 MB, free: 26.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.3565, allocations: 0.7361 MB / 442.9 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002657/0.3568, allocations: 104.5 kB / 443.1 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.183e-05/0.3569, allocations: 63.28 kB / 443.1 MB, free: 25.57 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3569, allocations: 0 / 443.1 MB, free: 25.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02921/0.3861, allocations: 7.793 MB / 450.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.99, allocations: 8.531 kB / 450.9 MB, free: 24.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)