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.001003/0.001003, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006932/0.006932, allocations: 171.4 kB / 16.27 MB, free: 6.652 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.259/1.259, allocations: 223.2 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1243/0.1243, allocations: 2.788 MB / 294.2 MB, free: 4.332 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002895, allocations: 11.98 kB / 356.3 MB, free: 3.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09494, allocations: 51.25 MB / 407.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.008375/0.1034, allocations: 7.932 MB / 415.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2181/0.3215, allocations: 9.253 MB / 424.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002003/0.3217, allocations: 3.906 kB / 424.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006035/0.3223, allocations: 146.7 kB / 424.9 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/0.3227, allocations: 87.5 kB / 425 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006464/0.3291, allocations: 1.342 MB / 426.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007221/0.3299, allocations: 300.6 kB / 426.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.999e-05/0.3299, allocations: 11.59 kB / 426.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004711/0.3347, allocations: 117 kB / 426.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002036/0.3349, allocations: 89.81 kB / 426.8 MB, free: 33.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.3349, allocations: 6.406 kB / 426.8 MB, free: 33.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001984/0.3369, allocations: 0.4897 MB / 427.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.337, allocations: 25.67 kB / 427.4 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.3371, allocations: 113.4 kB / 427.5 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009818/0.3381, allocations: 492.3 kB / 428 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3381, allocations: 0.625 kB / 428 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3381, allocations: 4 kB / 428 MB, free: 33.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.3381, allocations: 0 / 428 MB, free: 33.73 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.0007609/0.3389, allocations: 0.5269 MB / 428.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.3389, allocations: 6.688 kB / 428.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.339, allocations: 54.41 kB / 428.5 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.3393, allocations: 60.72 kB / 428.6 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.3395, allocations: 210.2 kB / 428.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.3395, allocations: 5.562 kB / 428.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.3396, allocations: 16.03 kB / 428.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.34, allocations: 247.6 kB / 429.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3401, allocations: 0 / 429.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.3401, allocations: 3.5 kB / 429.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.3401, allocations: 6.125 kB / 429.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004478/0.3406, allocations: 216.8 kB / 429.3 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007245/0.3413, allocations: 0.6868 MB / 430 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.3419, allocations: 258.3 kB / 430.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/0.3421, allocations: 157.9 kB / 430.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002237/0.3424, allocations: 327.8 kB / 430.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.3424, allocations: 33.56 kB / 430.7 MB, free: 32.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.433e-06/0.3424, allocations: 7.219 kB / 430.7 MB, free: 32.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002691/0.3451, allocations: 1.246 MB / 432 MB, free: 31.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.3451, allocations: 54.62 kB / 432 MB, free: 31.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.96e-05/0.3452, allocations: 125.2 kB / 432.2 MB, free: 31.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.3452, allocations: 31.14 kB / 432.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.3453, allocations: 101.4 kB / 432.3 MB, free: 31.53 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.517e-05/0.3454, allocations: 155.8 kB / 432.4 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.3454, allocations: 37.33 kB / 432.5 MB, free: 31.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.373e-05/0.3455, allocations: 331.8 kB / 432.8 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.3457, allocations: 132.8 kB / 432.9 MB, free: 31.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.346, allocations: 187.6 kB / 433.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.3465, allocations: 358.9 kB / 433.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3465, allocations: 3.281 kB / 433.5 MB, free: 30.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001066/0.3475, allocations: 0.4911 MB / 434 MB, free: 30.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3476, allocations: 6.531 kB / 434 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3476, allocations: 3.562 kB / 434 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007657/0.3484, allocations: 166.9 kB / 434.1 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.3485, allocations: 37.89 kB / 434.2 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005266/0.349, allocations: 0.6648 MB / 434.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.3492, allocations: 19.27 kB / 434.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.3492, allocations: 10.47 kB / 434.9 MB, free: 30.34 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.0001161/0.3493, allocations: 139.7 kB / 435 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.3494, allocations: 14.5 kB / 435 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.3504, allocations: 0.7313 MB / 435.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.3504, allocations: 10.67 kB / 435.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3504, allocations: 0 / 435.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3504, allocations: 3.875 kB / 435.8 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.3508, allocations: 400.7 kB / 436.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3508, allocations: 0 / 436.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.351, allocations: 46.84 kB / 436.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002476/0.3513, allocations: 85.73 kB / 436.3 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.3513, allocations: 7.188 kB / 436.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.3526, allocations: 2.593 MB / 438.9 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3526, allocations: 4.219 kB / 438.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.3537, allocations: 0.8556 MB / 439.7 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.668e-05/0.3538, allocations: 90.92 kB / 439.8 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.3538, allocations: 0 / 439.8 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.354, allocations: 15.94 kB / 439.9 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.494e-05/0.354, allocations: 19.83 kB / 439.9 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.354, allocations: 5.906 kB / 439.9 MB, free: 27.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.061e-05/0.3541, allocations: 96.03 kB / 440 MB, free: 26.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3541, allocations: 4 kB / 440 MB, free: 26.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.3544, allocations: 61.72 kB / 440 MB, free: 26.96 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.001358/0.3558, allocations: 1.264 MB / 441.3 MB, free: 26.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007348/0.3565, allocations: 376.1 kB / 441.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3566, allocations: 4 kB / 441.7 MB, free: 26.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004712/0.357, allocations: 309.3 kB / 442 MB, free: 26.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000627/0.3577, allocations: 100.9 kB / 442.1 MB, free: 26.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.3614, allocations: 3.12 MB / 445.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.3616, allocations: 0.7395 MB / 445.9 MB, free: 23.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3617, allocations: 34.8 kB / 446 MB, free: 23.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.399e-05/0.3618, allocations: 54.8 kB / 446 MB, free: 23.77 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3618, allocations: 4 kB / 446 MB, free: 23.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.3797, allocations: 7.051 MB / 453.1 MB, free: 23.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.3799, allocations: 280.1 kB / 453.3 MB, free: 22.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.903/2.283, allocations: 0 / 453.3 MB, free: 22.82 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)