Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 98.91 kB / 16.35 MB, free: 5.879 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.001681/0.001681, allocations: 199.2 kB / 17.3 MB, free: 5.52 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01337/0.01337, allocations: 2.785 MB / 293.9 MB, free: 11.99 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 67.89 kB / 355.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.239, allocations: 50.23 MB / 406.1 MB, free: 32.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007133/0.2462, allocations: 7.527 MB / 413.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 3.997e-05/0.2463, allocations: 27.88 kB / 413.6 MB, free: 25.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.2463, allocations: 4 kB / 413.6 MB, free: 25.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.2466, allocations: 71.58 kB / 413.7 MB, free: 25.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 2.468e-05/0.2466, allocations: 19.86 kB / 413.7 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.2468, allocations: 43.67 kB / 413.8 MB, free: 24.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.681e-05/0.2469, allocations: 43.62 kB / 413.8 MB, free: 24.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.072e-05/0.247, allocations: 8 kB / 413.8 MB, free: 24.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.64e-05/0.247, allocations: 19.86 kB / 413.8 MB, free: 24.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.992e-05/0.2471, allocations: 11.94 kB / 413.8 MB, free: 24.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.2471, allocations: 0 / 413.8 MB, free: 24.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.2473, allocations: 51.92 kB / 413.9 MB, free: 24.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.2473, allocations: 3.938 kB / 413.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.567e-05/0.2474, allocations: 15.94 kB / 413.9 MB, free: 24.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.2476, allocations: 53.66 kB / 414 MB, free: 24.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2476, allocations: 0 / 414 MB, free: 24.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2476, allocations: 0 / 414 MB, free: 24.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.2476, allocations: 0 / 414 MB, free: 24.78 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003354/0.248, allocations: 343.4 kB / 414.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.248, allocations: 8.031 kB / 414.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.332e-05/0.248, allocations: 8.844 kB / 414.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.878e-05/0.2481, allocations: 172.3 kB / 414.5 MB, free: 24.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.2481, allocations: 384 / 414.5 MB, free: 24.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.872e-06/0.2481, allocations: 384 / 414.5 MB, free: 24.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.2483, allocations: 57.81 kB / 414.5 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.2483, allocations: 0 / 414.5 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.2483, allocations: 0 / 414.5 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.2483, allocations: 15.98 kB / 414.6 MB, free: 24.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.752e-05/0.2484, allocations: 20 kB / 414.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.2485, allocations: 169.6 kB / 414.7 MB, free: 23.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.834e-05/0.2486, allocations: 62.52 kB / 414.8 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.781e-05/0.2486, allocations: 36.88 kB / 414.8 MB, free: 23.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.2487, allocations: 3.938 kB / 414.8 MB, free: 23.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.2487, allocations: 38.56 kB / 414.9 MB, free: 23.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.2487, allocations: 3.984 kB / 414.9 MB, free: 23.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002021/0.2489, allocations: 123.7 kB / 415 MB, free: 23.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.249, allocations: 51.41 kB / 415.1 MB, free: 23.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.829e-05/0.249, allocations: 97.89 kB / 415.1 MB, free: 23.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.504e-06/0.249, allocations: 25.7 kB / 415.2 MB, free: 23.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.363e-05/0.249, allocations: 84.12 kB / 415.3 MB, free: 23.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.2491, allocations: 55.44 kB / 415.3 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.2491, allocations: 17.72 kB / 415.3 MB, free: 23.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.2492, allocations: 326.8 kB / 415.6 MB, free: 22.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.422e-05/0.2492, allocations: 20 kB / 415.7 MB, free: 22.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.088e-05/0.2492, allocations: 23.98 kB / 415.7 MB, free: 22.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.654e-05/0.2493, allocations: 73.72 kB / 415.8 MB, free: 22.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2493, allocations: 0 / 415.8 MB, free: 22.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.128e-05/0.2494, allocations: 100.1 kB / 415.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2494, allocations: 8 kB / 415.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2494, allocations: 0 / 415.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2495, allocations: 3.938 kB / 415.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.2495, allocations: 0 / 415.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2495, allocations: 3.938 kB / 415.9 MB, free: 22.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.98e-05/0.2495, allocations: 0 / 415.9 MB, free: 22.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.2495, allocations: 4 kB / 415.9 MB, free: 22.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.382e-05/0.2496, allocations: 113.9 kB / 416 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.2496, allocations: 11.84 kB / 416 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.295e-05/0.2497, allocations: 8.078 kB / 416 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2497, allocations: 0 / 416 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2497, allocations: 0 / 416 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2497, allocations: 0 / 416 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.695e-05/0.2498, allocations: 177.5 kB / 416.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2498, allocations: 0 / 416.2 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.613e-06/0.2498, allocations: 3.938 kB / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2498, allocations: 4 kB / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2498, allocations: 0 / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2498, allocations: 0 / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2498, allocations: 0 / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.2499, allocations: 117.1 kB / 416.3 MB, free: 22.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.902e-05/0.25, allocations: 92.89 kB / 416.4 MB, free: 22.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.25, allocations: 0 / 416.4 MB, free: 22.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.069e-05/0.25, allocations: 3.938 kB / 416.4 MB, free: 22.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.25, allocations: 11.97 kB / 416.4 MB, free: 22.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.25, allocations: 4 kB / 416.4 MB, free: 22.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 1.514e-05/0.2501, allocations: 79.31 kB / 416.5 MB, free: 21.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2501, allocations: 0 / 416.5 MB, free: 21.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.2503, allocations: 15.98 kB / 416.5 MB, free: 21.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003079/0.2506, allocations: 132.9 kB / 416.6 MB, free: 21.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.2507, allocations: 67.97 kB / 416.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2507, allocations: 0 / 416.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.721e-05/0.2508, allocations: 36 kB / 416.7 MB, free: 21.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.2511, allocations: 40.06 kB / 416.8 MB, free: 21.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.2514, allocations: 223.3 kB / 417 MB, free: 21.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.2516, allocations: 0.6885 MB / 417.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.227e-05/0.2516, allocations: 3.938 kB / 417.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.746e-06/0.2516, allocations: 7.438 kB / 417.7 MB, free: 20.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2516, allocations: 4 kB / 417.7 MB, free: 20.67 MB / 302.1 MB Notification: Performance of Templates: time 0.003942/0.2556, allocations: 1.544 MB / 419.2 MB, free: 19.15 MB / 302.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestState -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1)