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.001482/0.001482, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001555/0.001555, allocations: 193.6 kB / 16.25 MB, free: 6.625 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.4/1.4, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1638/0.1638, allocations: 2.761 MB / 292.8 MB, free: 3.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 59.91 kB / 353.9 MB, free: 4.922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1041, allocations: 50.23 MB / 404.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00831/0.1125, allocations: 7.542 MB / 411.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.2e-05/0.1126, allocations: 27.88 kB / 411.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.1126, allocations: 7.938 kB / 411.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.1128, allocations: 71.64 kB / 411.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.484e-05/0.1129, allocations: 19.84 kB / 411.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.1131, allocations: 39.75 kB / 411.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.34e-05/0.1132, allocations: 39.69 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.755e-05/0.1132, allocations: 11.97 kB / 411.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.664e-05/0.1133, allocations: 15.94 kB / 411.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.516e-05/0.1133, allocations: 11.94 kB / 411.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1133, allocations: 0 / 411.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.1135, allocations: 43.98 kB / 412 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.1135, allocations: 3.938 kB / 412 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.1136, allocations: 15.88 kB / 412 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.1137, allocations: 55.83 kB / 412 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1137, allocations: 0 / 412 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1138, allocations: 0 / 412 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1138, allocations: 0 / 412 MB, free: 10.7 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.0003765/0.1141, allocations: 355.3 kB / 412.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1142, allocations: 12.03 kB / 412.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.1142, allocations: 4.844 kB / 412.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.1143, allocations: 160.4 kB / 412.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1144, allocations: 8.359 kB / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.1144, allocations: 384 / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.1145, allocations: 53.83 kB / 412.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1145, allocations: 4 kB / 412.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.1145, allocations: 0 / 412.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1145, allocations: 7.984 kB / 412.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.859e-05/0.1146, allocations: 27.94 kB / 412.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001706/0.1148, allocations: 177.6 kB / 412.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.99e-05/0.1148, allocations: 50.52 kB / 412.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.752e-05/0.1149, allocations: 44.88 kB / 412.9 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.1149, allocations: 3.938 kB / 412.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.1149, allocations: 30.56 kB / 412.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.115, allocations: 4 kB / 413 MB, free: 9.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002288/0.1152, allocations: 136.4 kB / 413.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.1152, allocations: 51.41 kB / 413.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.174e-05/0.1153, allocations: 93.84 kB / 413.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.1153, allocations: 29.7 kB / 413.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.898e-05/0.1153, allocations: 80.14 kB / 413.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.4e-05/0.1154, allocations: 39.36 kB / 413.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.1154, allocations: 17.72 kB / 413.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1156, allocations: 322.9 kB / 413.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.129e-05/0.1156, allocations: 24 kB / 413.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.816e-05/0.1156, allocations: 35.86 kB / 413.8 MB, free: 8.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.415e-05/0.1157, allocations: 63.09 kB / 413.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1157, allocations: 0 / 413.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.907e-05/0.1158, allocations: 105.5 kB / 413.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1158, allocations: 4 kB / 413.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1159, allocations: 0 / 413.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1159, allocations: 0 / 413.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.1159, allocations: 0 / 413.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1159, allocations: 8.062 kB / 413.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.5e-05/0.1159, allocations: 3.938 kB / 413.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.1159, allocations: 0 / 413.9 MB, free: 8.566 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 7.984e-05/0.116, allocations: 109.8 kB / 414.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-06/0.116, allocations: 7.844 kB / 414.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.1162, allocations: 117.5 kB / 414.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.1162, allocations: 3.984 kB / 414.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1162, allocations: 4 kB / 414.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1162, allocations: 0 / 414.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.1163, allocations: 161.7 kB / 414.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.1163, allocations: 7.922 kB / 414.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5e-06/0.1164, allocations: 7.938 kB / 414.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1164, allocations: 0 / 414.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.1164, allocations: 0 / 414.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1164, allocations: 0 / 414.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1164, allocations: 4.031 kB / 414.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001247/0.1165, allocations: 123.5 kB / 414.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.1166, allocations: 81.05 kB / 414.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1166, allocations: 4 kB / 414.6 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.964e-05/0.1166, allocations: 4 kB / 414.6 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.657e-05/0.1166, allocations: 3.938 kB / 414.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1166, allocations: 0 / 414.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.06e-05/0.1167, allocations: 75.28 kB / 414.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1167, allocations: 4.031 kB / 414.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000189/0.1169, allocations: 16 kB / 414.7 MB, free: 7.75 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.0003445/0.1172, allocations: 134.8 kB / 414.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001511/0.1174, allocations: 75.91 kB / 414.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1174, allocations: 0 / 414.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.236e-05/0.1174, allocations: 32 kB / 414.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.1179, allocations: 36.08 kB / 414.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004372/0.1183, allocations: 247.4 kB / 415.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.1186, allocations: 0.6885 MB / 415.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.344e-05/0.1186, allocations: 4 kB / 415.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.127e-05/0.1187, allocations: 7.438 kB / 415.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1187, allocations: 3.938 kB / 415.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of Templates: time 0.004015/0.1227, allocations: 1.554 MB / 417.4 MB, free: 4.953 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)