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.001036/0.001036, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001087/0.001087, allocations: 197.7 kB / 16.14 MB, free: 6.672 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.28/1.28, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1099/0.1099, allocations: 2.756 MB / 292.7 MB, free: 3.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 63.91 kB / 353.8 MB, free: 4.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07894/0.08008, allocations: 50.23 MB / 404 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.0078/0.08791, allocations: 8.368 MB / 412.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006939/0.09488, allocations: 9.424 MB / 421.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.09502, allocations: 4 kB / 421.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004572/0.09551, allocations: 143.3 kB / 422 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002521/0.09578, allocations: 91.41 kB / 422.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1429/0.2387, allocations: 1.33 MB / 423.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003792/0.2391, allocations: 299 kB / 423.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.031e-05/0.2391, allocations: 12.19 kB / 423.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003976/0.2431, allocations: 117.3 kB / 423.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.2433, allocations: 91.59 kB / 423.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.2433, allocations: 5.25 kB / 423.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001523/0.2449, allocations: 498.4 kB / 424.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.389e-05/0.2449, allocations: 32.98 kB / 424.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.239e-05/0.245, allocations: 87.31 kB / 424.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009128/0.2459, allocations: 496.1 kB / 425 MB, free: 36.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.246, allocations: 3.438 kB / 425 MB, free: 36.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.246, allocations: 2.812 kB / 425 MB, free: 36.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.246, allocations: 2.844 kB / 425 MB, free: 36.74 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.0007187/0.2467, allocations: 0.5457 MB / 425.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2467, allocations: 9.594 kB / 425.6 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.2468, allocations: 51.02 kB / 425.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003097/0.2471, allocations: 58.88 kB / 425.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.2473, allocations: 205.1 kB / 425.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.2473, allocations: 6.938 kB / 425.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.2473, allocations: 14.28 kB / 425.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004545/0.2478, allocations: 248.6 kB / 426.1 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.2478, allocations: 6.75 kB / 426.1 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.2478, allocations: 3.25 kB / 426.2 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.2479, allocations: 10.11 kB / 426.2 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004295/0.2483, allocations: 201.3 kB / 426.4 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006201/0.2489, allocations: 0.6799 MB / 427 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005191/0.2495, allocations: 250.1 kB / 427.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.2497, allocations: 154.7 kB / 427.4 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001871/0.2499, allocations: 329 kB / 427.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.2499, allocations: 31.12 kB / 427.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.543e-06/0.2499, allocations: 0 / 427.8 MB, free: 35.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002407/0.2523, allocations: 1.238 MB / 429 MB, free: 34.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.693e-05/0.2523, allocations: 54.59 kB / 429.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.2524, allocations: 123.5 kB / 429.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.2524, allocations: 32.61 kB / 429.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.2525, allocations: 107 kB / 429.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.181e-05/0.2525, allocations: 153.5 kB / 429.5 MB, free: 34.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.871e-05/0.2526, allocations: 55.77 kB / 429.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.087e-05/0.2527, allocations: 336 kB / 429.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.2529, allocations: 128.7 kB / 430 MB, free: 34.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.2531, allocations: 183.6 kB / 430.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.2535, allocations: 340.8 kB / 430.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2536, allocations: 0 / 430.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001032/0.2546, allocations: 498.2 kB / 431 MB, free: 33.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.2546, allocations: 6.281 kB / 431 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.2546, allocations: 7.281 kB / 431 MB, free: 33.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007649/0.2554, allocations: 155 kB / 431.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.2555, allocations: 30.16 kB / 431.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004924/0.256, allocations: 0.6742 MB / 431.9 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.2562, allocations: 13.72 kB / 431.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.2562, allocations: 12.23 kB / 431.9 MB, free: 33.41 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.656e-05/0.2563, allocations: 131.4 kB / 432 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.2564, allocations: 18.44 kB / 432 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008713/0.2572, allocations: 0.7156 MB / 432.7 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.2573, allocations: 9.531 kB / 432.8 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.2573, allocations: 0 / 432.8 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2573, allocations: 3.375 kB / 432.8 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002931/0.2576, allocations: 392.6 kB / 433.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2576, allocations: 3.219 kB / 433.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.2578, allocations: 48.83 kB / 433.2 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002116/0.2581, allocations: 81.92 kB / 433.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.2581, allocations: 3.812 kB / 433.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.2592, allocations: 2.594 MB / 435.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2592, allocations: 0 / 435.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009445/0.2601, allocations: 0.835 MB / 436.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.2602, allocations: 96.53 kB / 436.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.2602, allocations: 3.875 kB / 436.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.2604, allocations: 6.656 kB / 436.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.2604, allocations: 23.61 kB / 436.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.2605, allocations: 14.25 kB / 436.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.292e-05/0.2605, allocations: 96.55 kB / 436.9 MB, free: 30.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2605, allocations: 0 / 436.9 MB, free: 30.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003254/0.2608, allocations: 75.05 kB / 437 MB, free: 30.06 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.001152/0.262, allocations: 1.239 MB / 438.3 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006966/0.2627, allocations: 371.6 kB / 438.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2627, allocations: 0 / 438.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005532/0.2633, allocations: 316.2 kB / 438.9 MB, free: 29.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.2639, allocations: 105.2 kB / 439 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003515/0.2674, allocations: 2.995 MB / 442 MB, free: 27.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.2675, allocations: 0.738 MB / 442.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.2677, allocations: 39.27 kB / 442.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.495e-05/0.2678, allocations: 62.31 kB / 442.9 MB, free: 26.42 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2678, allocations: 0 / 442.9 MB, free: 26.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01748/0.2853, allocations: 7.288 MB / 450.1 MB, free: 25.73 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001353/0.2854, allocations: 280.7 kB / 450.4 MB, free: 25.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/2.114, allocations: 0 / 450.4 MB, free: 25.35 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)