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.00956/0.00956, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001858/0.001858, allocations: 199 kB / 16.68 MB, free: 5.965 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.566/1.566, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1471/0.1471, allocations: 2.765 MB / 293.3 MB, free: 3.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 67.91 kB / 405.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3538, allocations: 50.22 MB / 456.1 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007473/0.3613, allocations: 7.537 MB / 463.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.655e-05/0.3614, allocations: 25.3 kB / 463.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.036e-05/0.3614, allocations: 3.125 kB / 463.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.3617, allocations: 75.77 kB / 463.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.667e-05/0.3618, allocations: 22.48 kB / 463.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002062/0.362, allocations: 49.38 kB / 463.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.573e-05/0.3621, allocations: 40.34 kB / 463.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.9e-05/0.3621, allocations: 3.797 kB / 463.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.939e-05/0.3622, allocations: 17.94 kB / 463.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.817e-05/0.3622, allocations: 10.44 kB / 463.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.3622, allocations: 4 kB / 463.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002058/0.3625, allocations: 47.86 kB / 463.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.3625, allocations: 3.938 kB / 463.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.357e-05/0.3625, allocations: 16.97 kB / 464 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.3627, allocations: 58.5 kB / 464 MB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3627, allocations: 0 / 464 MB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3627, allocations: 0 / 464 MB, free: 15.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3627, allocations: 0 / 464 MB, free: 15.43 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003336/0.3631, allocations: 338.3 kB / 464.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3631, allocations: 13.06 kB / 464.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.668e-05/0.3632, allocations: 8.547 kB / 464.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.737e-05/0.3633, allocations: 169 kB / 464.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.3633, allocations: 384 / 464.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.3633, allocations: 4.312 kB / 464.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.3634, allocations: 64.23 kB / 464.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.3635, allocations: 0 / 464.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3635, allocations: 0 / 464.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.3635, allocations: 5.719 kB / 464.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.092e-05/0.3635, allocations: 25.97 kB / 464.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.3637, allocations: 171.4 kB / 464.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.232e-05/0.3638, allocations: 61.14 kB / 464.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.166e-05/0.3638, allocations: 41.73 kB / 464.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.3639, allocations: 4.594 kB / 464.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.3639, allocations: 33.31 kB / 464.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.3639, allocations: 0 / 464.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001972/0.3641, allocations: 129.4 kB / 465.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.3641, allocations: 59.44 kB / 465.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.373e-05/0.3642, allocations: 93.8 kB / 465.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.983e-06/0.3642, allocations: 26.36 kB / 465.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.115e-05/0.3642, allocations: 80.14 kB / 465.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.045e-05/0.3642, allocations: 53.3 kB / 465.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.3643, allocations: 25.84 kB / 465.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.065e-05/0.3643, allocations: 312.8 kB / 465.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.871e-05/0.3644, allocations: 25.81 kB / 465.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.438e-05/0.3644, allocations: 30.38 kB / 465.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.567e-05/0.3645, allocations: 66.09 kB / 465.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3645, allocations: 0 / 465.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.921e-05/0.3646, allocations: 103 kB / 465.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.3646, allocations: 6.125 kB / 465.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3646, allocations: 0 / 465.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3646, allocations: 0.5156 kB / 465.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3647, allocations: 0 / 465.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3647, allocations: 0 / 465.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.892e-05/0.3647, allocations: 11.67 kB / 465.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.3647, allocations: 4.062 kB / 465.9 MB, free: 13.6 MB / 350.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.419e-05/0.3648, allocations: 109.4 kB / 466 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-06/0.3648, allocations: 8.5 kB / 466.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.3648, allocations: 4.609 kB / 466.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.3648, allocations: 8.438 kB / 466.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3648, allocations: 0.6094 kB / 466.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3648, allocations: 0 / 466.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.379e-05/0.3649, allocations: 172.9 kB / 466.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3649, allocations: 7.125 kB / 466.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.784e-06/0.3649, allocations: 4.641 kB / 466.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.3649, allocations: 0 / 466.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-06/0.365, allocations: 0 / 466.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.365, allocations: 4.688 kB / 466.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.365, allocations: 0 / 466.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.3651, allocations: 114.3 kB / 466.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/0.3651, allocations: 93.44 kB / 466.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.016e-05/0.3651, allocations: 3.797 kB / 466.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.959e-05/0.3652, allocations: 4.031 kB / 466.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.3652, allocations: 4.594 kB / 466.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-06/0.3652, allocations: 0 / 466.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.158e-05/0.3652, allocations: 75.28 kB / 466.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3652, allocations: 3.188 kB / 466.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001906/0.3654, allocations: 13.44 kB / 466.6 MB, free: 12.98 MB / 350.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.0002662/0.3657, allocations: 123.3 kB / 466.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001199/0.3658, allocations: 71.19 kB / 466.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3658, allocations: 0 / 466.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.854e-05/0.3658, allocations: 38.33 kB / 466.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3662, allocations: 47.53 kB / 466.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003333/0.3666, allocations: 219.8 kB / 467 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.3667, allocations: 0.6857 MB / 467.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.97e-05/0.3667, allocations: 3.984 kB / 467.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.017e-06/0.3667, allocations: 14.41 kB / 467.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3667, allocations: 0 / 467.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of Templates: time 0.004961/0.3717, allocations: 1.545 MB / 469.3 MB, free: 11.79 MB / 350.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)