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.00652/0.00652, allocations: 98.14 kB / 15.73 MB, free: 6.039 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.00123/0.001231, allocations: 196.8 kB / 16.68 MB, free: 5.969 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.426/1.426, 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.1339/0.1339, allocations: 2.762 MB / 293.3 MB, free: 3.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.89 kB / 405.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2987, 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.006861/0.3056, allocations: 8.351 MB / 464 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006545/0.3122, allocations: 9.459 MB / 473.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.3124, allocations: 5.156 kB / 473.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005962/0.313, allocations: 158.1 kB / 473.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003678/0.3135, allocations: 101.3 kB / 473.7 MB, free: 7.52 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.004796/0.3183, allocations: 1.454 MB / 475.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005447/0.3188, allocations: 267.3 kB / 475.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.263e-05/0.3189, allocations: 11.73 kB / 475.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004846/0.3237, allocations: 143.8 kB / 475.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.324, allocations: 84 kB / 475.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.75e-05/0.3241, allocations: 8.906 kB / 475.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003147/0.3272, allocations: 466.3 kB / 476.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.3274, allocations: 37.62 kB / 476.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.3276, allocations: 85.19 kB / 476.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.3294, allocations: 0.4967 MB / 476.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3294, allocations: 0 / 476.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3294, allocations: 1.375 kB / 476.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.3294, allocations: 0 / 476.7 MB, free: 6.121 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.0009037/0.3303, allocations: 0.5466 MB / 477.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3304, allocations: 13.62 kB / 477.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.626e-05/0.3304, allocations: 50.81 kB / 477.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003525/0.3308, allocations: 58.19 kB / 477.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.331, allocations: 205.8 kB / 477.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.331, allocations: 5.625 kB / 477.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.3311, allocations: 12.28 kB / 477.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005855/0.3317, allocations: 248 kB / 477.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3317, allocations: 0 / 477.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.3317, allocations: 5.031 kB / 477.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.3317, allocations: 18.47 kB / 477.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005484/0.3323, allocations: 203 kB / 478.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009358/0.3332, allocations: 0.6801 MB / 478.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007229/0.334, allocations: 236.2 kB / 479 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.3343, allocations: 160.6 kB / 479.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003495/0.3346, allocations: 328.9 kB / 479.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.3347, allocations: 37.75 kB / 479.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.623e-06/0.3347, allocations: 0 / 479.5 MB, free: 4.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.003257/0.3379, allocations: 1.231 MB / 480.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.338, allocations: 53.69 kB / 480.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.3381, allocations: 128.7 kB / 480.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.3381, allocations: 30.86 kB / 480.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.156e-05/0.3382, allocations: 103 kB / 481 MB, free: 3.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.3383, allocations: 152.2 kB / 481.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3384, allocations: 59.08 kB / 481.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.171e-05/0.3385, allocations: 333.4 kB / 481.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.3388, allocations: 126.5 kB / 481.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.3391, allocations: 193.6 kB / 481.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.3396, allocations: 337.8 kB / 482.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3397, allocations: 0 / 482.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001193/0.3409, allocations: 487.2 kB / 482.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3409, allocations: 6.719 kB / 482.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3409, allocations: 1.594 kB / 482.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009361/0.3418, allocations: 160.9 kB / 482.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.342, allocations: 37.02 kB / 482.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006863/0.3427, allocations: 0.6662 MB / 483.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.3429, allocations: 16.83 kB / 483.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.3429, allocations: 7.375 kB / 483.6 MB, free: 1.453 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.0001364/0.3431, allocations: 140.4 kB / 483.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.3431, allocations: 19.92 kB / 483.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.031e-05/0.3432, allocations: 23.94 kB / 483.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/0.3432, allocations: 10.47 kB / 483.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.3433, allocations: 1.125 kB / 483.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.3433, allocations: 1.359 kB / 483.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004174/0.3437, allocations: 311.9 kB / 484.1 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3437, allocations: 1.188 kB / 484.1 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.344, allocations: 52.53 kB / 484.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003591/0.3444, allocations: 64.2 kB / 484.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.3444, allocations: 10.86 kB / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.3466, allocations: 2.92 MB / 487.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3467, allocations: 0 / 487.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.3479, allocations: 0.7048 MB / 487.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.3479, allocations: 94.16 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.348, allocations: 5.969 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.3481, allocations: 7.125 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.934e-05/0.3482, allocations: 29.41 kB / 488 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.3483, allocations: 10.25 kB / 488 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.397e-05/0.3484, allocations: 96.86 kB / 488.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3484, allocations: 0 / 488.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004216/0.3488, allocations: 62.89 kB / 488.1 MB, free: 13.38 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.001971/0.3508, allocations: 1.256 MB / 489.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.3519, allocations: 382.3 kB / 489.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3519, allocations: 0 / 489.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000697/0.3526, allocations: 306.8 kB / 490.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000707/0.3534, allocations: 103.9 kB / 490.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/0.3584, allocations: 2.98 MB / 493.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.3588, allocations: 0.7413 MB / 493.9 MB, free: 9.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003052/0.3591, allocations: 101.7 kB / 494 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.3592, allocations: 55.59 kB / 494 MB, free: 9.312 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3592, allocations: 0 / 494 MB, free: 9.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03485/0.3941, allocations: 7.885 MB / 0.4902 GB, free: 5.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.34, allocations: 12.45 kB / 0.4902 GB, free: 5.73 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 & /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)