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.001101/0.001101, allocations: 107.2 kB / 15.99 MB, free: 6.348 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.001083/0.001084, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.437/1.437, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01215/0.01215, allocations: 2.759 MB / 293.5 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 63.91 kB / 354.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2748, allocations: 50.23 MB / 404.8 MB, free: 33.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007743/0.2827, allocations: 7.542 MB / 412.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 3.2e-05/0.2827, allocations: 39.81 kB / 412.4 MB, free: 25.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.586e-05/0.2828, allocations: 0 / 412.4 MB, free: 25.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.283, allocations: 71.64 kB / 412.4 MB, free: 25.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 1.898e-05/0.2831, allocations: 15.8 kB / 412.4 MB, free: 25.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.2832, allocations: 51.73 kB / 412.5 MB, free: 25.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.258e-05/0.2833, allocations: 35.69 kB / 412.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.161e-05/0.2834, allocations: 4 kB / 412.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.888e-05/0.2834, allocations: 15.92 kB / 412.5 MB, free: 25.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.504e-05/0.2834, allocations: 11.94 kB / 412.6 MB, free: 25.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.2835, allocations: 0 / 412.6 MB, free: 25.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.2836, allocations: 43.94 kB / 412.6 MB, free: 25.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.2837, allocations: 3.938 kB / 412.6 MB, free: 25.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.388e-05/0.2837, allocations: 15.94 kB / 412.6 MB, free: 25.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.2838, allocations: 39.94 kB / 412.7 MB, free: 25.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2838, allocations: 4 kB / 412.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2838, allocations: 3.938 kB / 412.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2838, allocations: 0 / 412.7 MB, free: 25.22 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.0002846/0.2841, allocations: 343.4 kB / 413 MB, free: 24.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2842, allocations: 8.031 kB / 413 MB, free: 24.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.638e-05/0.2842, allocations: 8.844 kB / 413 MB, free: 24.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.287e-05/0.2843, allocations: 172.3 kB / 413.2 MB, free: 24.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.2843, allocations: 384 / 413.2 MB, free: 24.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.2843, allocations: 4.359 kB / 413.2 MB, free: 24.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.2844, allocations: 64.06 kB / 413.3 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2845, allocations: 0 / 413.3 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.2845, allocations: 0 / 413.3 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.2845, allocations: 8 kB / 413.3 MB, free: 24.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.032e-05/0.2845, allocations: 19.98 kB / 413.3 MB, free: 24.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.2846, allocations: 173.6 kB / 413.5 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.301e-05/0.2847, allocations: 58.5 kB / 413.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.726e-05/0.2847, allocations: 40.88 kB / 413.5 MB, free: 24.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.2848, allocations: 7.938 kB / 413.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.2848, allocations: 34.56 kB / 413.6 MB, free: 24.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.2848, allocations: 0 / 413.6 MB, free: 24.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001763/0.285, allocations: 121.6 kB / 413.7 MB, free: 24.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.285, allocations: 51.41 kB / 413.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.268e-05/0.285, allocations: 89.86 kB / 413.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.214e-06/0.2851, allocations: 29.64 kB / 413.9 MB, free: 23.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.575e-05/0.2851, allocations: 88.17 kB / 414 MB, free: 23.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.2851, allocations: 51.56 kB / 414 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.41e-05/0.2852, allocations: 21.64 kB / 414 MB, free: 23.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.238e-05/0.2852, allocations: 314.8 kB / 414.3 MB, free: 23.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.247e-05/0.2852, allocations: 27.98 kB / 414.4 MB, free: 23.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.811e-05/0.2853, allocations: 23.94 kB / 414.4 MB, free: 23.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.945e-05/0.2853, allocations: 76.06 kB / 414.5 MB, free: 23.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2853, allocations: 0 / 414.5 MB, free: 23.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 7.822e-05/0.2854, allocations: 93.47 kB / 414.6 MB, free: 23.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.2854, allocations: 12.05 kB / 414.6 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2854, allocations: 4 kB / 414.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.2855, allocations: 0 / 414.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.2855, allocations: 3.938 kB / 414.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.2855, allocations: 0 / 414.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.315e-05/0.2855, allocations: 0 / 414.6 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.2855, allocations: 0 / 414.6 MB, free: 23.09 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 5.646e-05/0.2856, allocations: 113.8 kB / 414.7 MB, free: 22.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-06/0.2856, allocations: 7.844 kB / 414.7 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.2857, allocations: 113.6 kB / 414.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.117e-06/0.2857, allocations: 4 kB / 414.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2857, allocations: 3.984 kB / 414.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2857, allocations: 0 / 414.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.526e-05/0.2858, allocations: 165.6 kB / 415 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2858, allocations: 0 / 415 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-06/0.2858, allocations: 3.969 kB / 415 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-06/0.2858, allocations: 4 kB / 415 MB, free: 22.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-06/0.2858, allocations: 8 kB / 415 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.2858, allocations: 0 / 415 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2859, allocations: 0 / 415 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.476e-05/0.2859, allocations: 124.3 kB / 415.1 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.45e-05/0.286, allocations: 92.97 kB / 415.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.837e-06/0.286, allocations: 0 / 415.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.751e-05/0.286, allocations: 0 / 415.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.097e-05/0.286, allocations: 4.031 kB / 415.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-06/0.286, allocations: 0 / 415.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 1.383e-05/0.2861, allocations: 79.28 kB / 415.3 MB, free: 22.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2861, allocations: 0 / 415.3 MB, free: 22.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001806/0.2862, allocations: 15.94 kB / 415.3 MB, free: 22.27 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.0002248/0.2865, allocations: 131.1 kB / 415.4 MB, free: 22.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.2866, allocations: 63.92 kB / 415.5 MB, free: 22.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2866, allocations: 0 / 415.5 MB, free: 22.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.592e-05/0.2866, allocations: 39.98 kB / 415.5 MB, free: 22.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.287, allocations: 45.59 kB / 415.6 MB, free: 21.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.2873, allocations: 285 kB / 415.9 MB, free: 21.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.2874, allocations: 0.6846 MB / 416.5 MB, free: 20.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.604e-06/0.2875, allocations: 7.438 kB / 416.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2875, allocations: 0 / 416.5 MB, free: 20.96 MB / 302.1 MB Notification: Performance of Templates: time 0.001821/0.2893, allocations: 0.8122 MB / 417.4 MB, free: 20.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 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1)