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.005558/0.005558, allocations: 102.3 kB / 15.73 MB, free: 6.059 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.001131/0.001131, allocations: 191 kB / 16.67 MB, free: 5.969 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.235/1.235, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01113/0.01113, allocations: 2.779 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 63.88 kB / 405.9 MB, free: 29.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07929/0.08043, allocations: 50.23 MB / 456.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007458/0.08792, allocations: 7.529 MB / 463.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 3.475e-05/0.08799, allocations: 39.81 kB / 463.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.377e-05/0.08802, allocations: 0 / 463.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.08826, allocations: 71.64 kB / 463.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 2.37e-05/0.0883, allocations: 27.78 kB / 463.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001535/0.08848, allocations: 43.62 kB / 463.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.744e-05/0.08858, allocations: 47.61 kB / 463.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.629e-05/0.08863, allocations: 4 kB / 463.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.316e-05/0.08866, allocations: 11.94 kB / 463.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.791e-05/0.08871, allocations: 15.92 kB / 463.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.08873, allocations: 4 kB / 463.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.08898, allocations: 40 kB / 463.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.125e-05/0.089, allocations: 0 / 463.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.08904, allocations: 27.81 kB / 464 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.08921, allocations: 55.81 kB / 464 MB, free: 2.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.08922, allocations: 0 / 464 MB, free: 2.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.08923, allocations: 3.938 kB / 464 MB, free: 2.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.08924, allocations: 0 / 464 MB, free: 2.965 MB / 334.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.0003319/0.08958, allocations: 343.4 kB / 464.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.08962, allocations: 8.031 kB / 464.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.08966, allocations: 8.938 kB / 464.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.774e-05/0.08975, allocations: 164.4 kB / 464.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-06/0.08976, allocations: 384 / 464.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.08978, allocations: 384 / 464.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.0899, allocations: 61.75 kB / 464.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.08991, allocations: 3.938 kB / 464.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-06/0.08992, allocations: 0 / 464.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.08994, allocations: 4 kB / 464.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.768e-05/0.08998, allocations: 27.98 kB / 464.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.09014, allocations: 169.6 kB / 464.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.488e-05/0.09021, allocations: 54.56 kB / 464.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.935e-05/0.09026, allocations: 40.88 kB / 464.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.09029, allocations: 3.938 kB / 464.9 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.09031, allocations: 34.56 kB / 464.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.555e-06/0.09032, allocations: 0 / 464.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001919/0.09052, allocations: 137.1 kB / 465.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.09056, allocations: 55.44 kB / 465.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.74e-05/0.0906, allocations: 89.86 kB / 465.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.09061, allocations: 29.7 kB / 465.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.098e-05/0.09064, allocations: 80.14 kB / 465.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.09069, allocations: 47.28 kB / 465.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.09073, allocations: 21.7 kB / 465.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.09083, allocations: 318.8 kB / 465.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.692e-05/0.09087, allocations: 19.98 kB / 465.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.369e-05/0.09089, allocations: 31.94 kB / 465.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.842e-05/0.09097, allocations: 72.77 kB / 465.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.09097, allocations: 0 / 465.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001008/0.09108, allocations: 97.47 kB / 465.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.0911, allocations: 11.98 kB / 465.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.09111, allocations: 0 / 465.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.09113, allocations: 0 / 465.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.09113, allocations: 0 / 465.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.09114, allocations: 4 kB / 465.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.488e-05/0.09117, allocations: 3.938 kB / 465.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.09118, allocations: 4.062 kB / 465.9 MB, free: 0.8359 MB / 334.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.079e-05/0.09124, allocations: 113.8 kB / 466 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.09126, allocations: 11.84 kB / 466 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.0913, allocations: 4.094 kB / 466.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.0913, allocations: 3.984 kB / 466.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.09131, allocations: 0 / 466.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.09132, allocations: 0 / 466.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.522e-05/0.09142, allocations: 165.7 kB / 466.2 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.09142, allocations: 0 / 466.2 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.764e-06/0.09143, allocations: 7.938 kB / 466.2 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.09144, allocations: 0 / 466.2 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.09145, allocations: 3.938 kB / 466.2 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.09145, allocations: 0 / 466.2 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.09146, allocations: 3.984 kB / 466.2 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.09157, allocations: 124.6 kB / 466.4 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.162e-05/0.09161, allocations: 88.95 kB / 466.4 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-06/0.09163, allocations: 4 kB / 466.4 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.823e-05/0.09165, allocations: 4.031 kB / 466.4 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-06/0.09166, allocations: 0 / 466.4 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-06/0.09167, allocations: 0 / 466.4 MB, free: 228 kB / 334.1 MB Notification: Performance of sorting global known variables: time 2.428e-05/0.0917, allocations: 79.28 kB / 466.5 MB, free: 148 kB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.0917, allocations: 0 / 466.5 MB, free: 148 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001765/0.09188, allocations: 15.94 kB / 466.5 MB, free: 132 kB / 334.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.0002588/0.09215, allocations: 145.5 kB / 466.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001183/0.09228, allocations: 67.88 kB / 466.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.09229, allocations: 0 / 466.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.253e-05/0.09232, allocations: 39.98 kB / 466.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.09266, allocations: 36.08 kB / 466.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003946/0.09306, allocations: 219.5 kB / 467 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.09334, allocations: 0.6924 MB / 467.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.675e-05/0.09336, allocations: 0 / 467.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.121e-05/0.09338, allocations: 7.438 kB / 467.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09338, allocations: 0 / 467.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of Templates: time 0.003727/0.09712, allocations: 1.554 MB / 469.3 MB, free: 13.35 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)