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.001436/0.001436, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 198 kB / 16.53 MB, free: 6.668 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1368/0.1368, allocations: 2.761 MB / 293.1 MB, free: 3.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 63.91 kB / 354.4 MB, free: 4.402 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09745, allocations: 50.23 MB / 404.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.008941/0.1064, allocations: 7.535 MB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 6.657e-05/0.1065, allocations: 31.81 kB / 412.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.1066, allocations: 0 / 412.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.1069, allocations: 71.64 kB / 412.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.712e-05/0.1069, allocations: 27.78 kB / 412.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002117/0.1071, allocations: 43.69 kB / 412.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.862e-05/0.1072, allocations: 39.69 kB / 412.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.1073, allocations: 7.984 kB / 412.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.86e-05/0.1073, allocations: 15.92 kB / 412.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.607e-05/0.1074, allocations: 11.94 kB / 412.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.1074, allocations: 4 kB / 412.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000244/0.1076, allocations: 40 kB / 412.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.1077, allocations: 3.938 kB / 412.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.981e-05/0.1077, allocations: 15.88 kB / 412.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.1079, allocations: 63.75 kB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.108, allocations: 0 / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.108, allocations: 0 / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.108, allocations: 0 / 412.5 MB, free: 10.18 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.0005171/0.1085, allocations: 339.4 kB / 412.9 MB, free: 9.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.1086, allocations: 12.03 kB / 412.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.1086, allocations: 12.83 kB / 412.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.1088, allocations: 160.4 kB / 413 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.1088, allocations: 384 / 413 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1088, allocations: 4.375 kB / 413 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.109, allocations: 57.81 kB / 413.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.109, allocations: 3.938 kB / 413.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1091, allocations: 0 / 413.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.1091, allocations: 0 / 413.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.283e-05/0.1091, allocations: 27.98 kB / 413.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002274/0.1094, allocations: 173.6 kB / 413.3 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.517e-05/0.1095, allocations: 50.56 kB / 413.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.256e-05/0.1095, allocations: 40.89 kB / 413.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.835e-05/0.1096, allocations: 11.81 kB / 413.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.1096, allocations: 34.55 kB / 413.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.725e-06/0.1096, allocations: 0 / 413.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003179/0.1099, allocations: 133.7 kB / 413.6 MB, free: 8.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.11, allocations: 55.44 kB / 413.6 MB, free: 8.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.883e-05/0.1101, allocations: 93.86 kB / 413.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.1101, allocations: 25.7 kB / 413.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.1101, allocations: 80.14 kB / 413.8 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.542e-05/0.1102, allocations: 43.34 kB / 413.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.812e-05/0.1103, allocations: 21.72 kB / 413.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1104, allocations: 314.8 kB / 414.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.147e-05/0.1105, allocations: 24 kB / 414.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.577e-05/0.1105, allocations: 35.92 kB / 414.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.1106, allocations: 70.73 kB / 414.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1106, allocations: 0 / 414.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000149/0.1108, allocations: 101.5 kB / 414.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.1108, allocations: 4 kB / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1108, allocations: 0 / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.1109, allocations: 0 / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1109, allocations: 0 / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.1109, allocations: 0 / 414.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.642e-05/0.1109, allocations: 11.92 kB / 414.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.111, allocations: 4.062 kB / 414.4 MB, free: 8.055 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 0.0001117/0.1111, allocations: 109.8 kB / 414.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/0.1111, allocations: 7.844 kB / 414.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.191e-05/0.1112, allocations: 8.078 kB / 414.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1112, allocations: 4 kB / 414.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1112, allocations: 0 / 414.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1112, allocations: 0 / 414.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.1114, allocations: 169.6 kB / 414.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1114, allocations: 0 / 414.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.742e-06/0.1114, allocations: 7.938 kB / 414.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.334e-05/0.1114, allocations: 3.938 kB / 414.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.1114, allocations: 15.94 kB / 414.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1114, allocations: 0 / 414.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1114, allocations: 0 / 414.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.1116, allocations: 118.7 kB / 414.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.1117, allocations: 84.95 kB / 415 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.1117, allocations: 3.984 kB / 415 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.59e-05/0.1117, allocations: 4.031 kB / 415 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.999e-05/0.1118, allocations: 4 kB / 415 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.1118, allocations: 0 / 415 MB, free: 7.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.1118, allocations: 79.22 kB / 415 MB, free: 7.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1118, allocations: 0 / 415 MB, free: 7.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000245/0.1121, allocations: 16 kB / 415.1 MB, free: 7.34 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.0004708/0.1126, allocations: 127.4 kB / 415.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001902/0.1128, allocations: 71.86 kB / 415.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1128, allocations: 0 / 415.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.1128, allocations: 39.98 kB / 415.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.1133, allocations: 32.09 kB / 415.3 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.1138, allocations: 223.5 kB / 415.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.1141, allocations: 0.6846 MB / 416.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.401e-05/0.1141, allocations: 4 kB / 416.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.1142, allocations: 7.438 kB / 416.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1142, allocations: 0 / 416.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of Templates: time 0.004663/0.1188, allocations: 1.565 MB / 417.8 MB, free: 4.57 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)