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: translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001287/0.001288, allocations: 192.2 kB / 16.25 MB, free: 6.637 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.315/1.315, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1221/0.1221, allocations: 2.765 MB / 292.8 MB, free: 3.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001942, allocations: 59.91 kB / 353.9 MB, free: 4.922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1284, allocations: 50.23 MB / 404.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.008074/0.1365, allocations: 8.363 MB / 412.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006882/0.1434, allocations: 9.389 MB / 421.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.1436, allocations: 3.938 kB / 421.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005588/0.1442, allocations: 143.3 kB / 422 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.1445, allocations: 87.42 kB / 422.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2005/0.345, allocations: 1.334 MB / 423.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005319/0.3455, allocations: 261.8 kB / 423.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.432e-05/0.3456, allocations: 15.66 kB / 423.7 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004788/0.3504, allocations: 119.6 kB / 423.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.3507, allocations: 88.58 kB / 423.9 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.3507, allocations: 10.94 kB / 423.9 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002294/0.353, allocations: 475.6 kB / 424.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.703e-05/0.3531, allocations: 33.2 kB / 424.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.3533, allocations: 87.14 kB / 424.5 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.3543, allocations: 0.4927 MB / 425 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3543, allocations: 0 / 425 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3543, allocations: 0 / 425 MB, free: 36.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.3544, allocations: 4.656 kB / 425 MB, free: 36.64 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.0008153/0.3552, allocations: 0.5529 MB / 425.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3552, allocations: 9.75 kB / 425.6 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000332/0.3556, allocations: 55.39 kB / 425.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.3558, allocations: 202.7 kB / 425.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.3558, allocations: 9.875 kB / 425.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.3559, allocations: 9.688 kB / 425.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/0.3564, allocations: 246.3 kB / 426.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3564, allocations: 0.875 kB / 426.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.3564, allocations: 4.484 kB / 426.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.3564, allocations: 14.16 kB / 426.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.3569, allocations: 200.9 kB / 426.3 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000755/0.3576, allocations: 0.6847 MB / 427 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005621/0.3582, allocations: 248.6 kB / 427.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.3585, allocations: 158.8 kB / 427.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002304/0.3587, allocations: 326.5 kB / 427.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.3587, allocations: 36.88 kB / 427.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.493e-06/0.3587, allocations: 0 / 427.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002529/0.3613, allocations: 1.224 MB / 429 MB, free: 34.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.3613, allocations: 54.59 kB / 429 MB, free: 34.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.3614, allocations: 132.8 kB / 429.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3614, allocations: 29.33 kB / 429.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.678e-05/0.3615, allocations: 102.5 kB / 429.3 MB, free: 34.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.164e-05/0.3616, allocations: 160.3 kB / 429.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/0.3616, allocations: 62.77 kB / 429.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.024e-05/0.3617, allocations: 332 kB / 429.8 MB, free: 34.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.3619, allocations: 123.3 kB / 429.9 MB, free: 34.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.3622, allocations: 187.8 kB / 430.1 MB, free: 34.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.3626, allocations: 343.5 kB / 430.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.3626, allocations: 4 kB / 430.5 MB, free: 33.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001009/0.3636, allocations: 494.8 kB / 430.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.3637, allocations: 5.438 kB / 431 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3637, allocations: 0 / 431 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000766/0.3645, allocations: 157.3 kB / 431.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.3646, allocations: 35 kB / 431.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000558/0.3652, allocations: 0.6685 MB / 431.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.3653, allocations: 12.16 kB / 431.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.3654, allocations: 13.83 kB / 431.8 MB, free: 33.36 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.0001187/0.3655, allocations: 138.7 kB / 432 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.3655, allocations: 20.22 kB / 432 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009403/0.3665, allocations: 0.7193 MB / 432.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.3665, allocations: 13.03 kB / 432.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3665, allocations: 0 / 432.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.3665, allocations: 0 / 432.7 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/0.3669, allocations: 393.9 kB / 433.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3669, allocations: 0 / 433.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002583/0.3671, allocations: 42.77 kB / 433.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000229/0.3674, allocations: 85.41 kB / 433.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.3674, allocations: 6.438 kB / 433.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.3687, allocations: 2.784 MB / 436 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3687, allocations: 3.375 kB / 436 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009871/0.3697, allocations: 0.8336 MB / 436.9 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.3698, allocations: 94.44 kB / 437 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/0.3698, allocations: 8.469 kB / 437 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.37, allocations: 12.69 kB / 437 MB, free: 29.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.37, allocations: 21.03 kB / 437 MB, free: 29.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.3701, allocations: 8.75 kB / 437 MB, free: 29.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.036e-05/0.3701, allocations: 98.95 kB / 437.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3701, allocations: 3.938 kB / 437.1 MB, free: 29.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000358/0.3705, allocations: 70.52 kB / 437.2 MB, free: 29.81 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.000333/0.3708, allocations: 169.2 kB / 437.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008182/0.3716, allocations: 377.8 kB / 437.7 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3717, allocations: 4.312 kB / 437.7 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.3723, allocations: 320.2 kB / 438 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006427/0.3729, allocations: 95.52 kB / 438.1 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009983/0.3739, allocations: 0.7524 MB / 438.9 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.3741, allocations: 0.7355 MB / 439.6 MB, free: 28.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.3743, allocations: 41.19 kB / 439.6 MB, free: 28.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.69e-05/0.3743, allocations: 19.16 kB / 439.7 MB, free: 28.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3743, allocations: 0 / 439.7 MB, free: 28.48 MB / 350.1 MB Notification: Performance of Templates: time 0.008321/0.3827, allocations: 5.087 MB / 444.7 MB, free: 28.15 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile (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 & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)