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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 191.7 kB / 22.23 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01243/0.01243, allocations: 2.806 MB / 309.1 MB, free: 5.789 MB / 238.1 MB " [Timeout remaining time 180] 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=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 63.91 kB / 430.7 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09869, allocations: 53 MB / 483.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.01359/0.1123, allocations: 7.608 MB / 491.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.307e-05/0.1124, allocations: 31.88 kB / 491.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.386e-05/0.1124, allocations: 0 / 491.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003261/0.1127, allocations: 79.59 kB / 491.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.342e-05/0.1128, allocations: 23.78 kB / 491.4 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.1129, allocations: 43.67 kB / 491.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.961e-05/0.113, allocations: 39.69 kB / 491.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.211e-05/0.1131, allocations: 4 kB / 491.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.206e-05/0.1131, allocations: 15.92 kB / 491.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.1132, allocations: 11.94 kB / 491.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.1132, allocations: 7.938 kB / 491.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002635/0.1135, allocations: 39.98 kB / 491.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.773e-05/0.1135, allocations: 3.938 kB / 491.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.134e-05/0.1135, allocations: 15.94 kB / 491.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.1137, allocations: 59.7 kB / 491.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1138, allocations: 0 / 491.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1138, allocations: 4 kB / 491.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1138, allocations: 0 / 491.6 MB, free: 7.055 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.0003925/0.1141, allocations: 262.3 kB / 491.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.1142, allocations: 8.031 kB / 491.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.1142, allocations: 8.891 kB / 491.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.1144, allocations: 110.5 kB / 492 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.1144, allocations: 384 / 492 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.1144, allocations: 4.375 kB / 492 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.1145, allocations: 57.81 kB / 492.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1145, allocations: 0 / 492.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.1145, allocations: 0 / 492.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.1146, allocations: 11.92 kB / 492.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.282e-05/0.1146, allocations: 20 kB / 492.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.1148, allocations: 160.6 kB / 492.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.853e-05/0.1149, allocations: 42.52 kB / 492.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.674e-05/0.115, allocations: 32.88 kB / 492.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.115, allocations: 3.938 kB / 492.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.115, allocations: 34.56 kB / 492.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.115, allocations: 0 / 492.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000293/0.1153, allocations: 141.2 kB / 492.5 MB, free: 6.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.1154, allocations: 55.44 kB / 492.6 MB, free: 5.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.066e-05/0.1155, allocations: 97.8 kB / 492.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.1155, allocations: 25.7 kB / 492.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.1155, allocations: 80.14 kB / 492.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.802e-05/0.1156, allocations: 47.58 kB / 492.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/0.1157, allocations: 21.7 kB / 492.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1158, allocations: 318.8 kB / 493.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.02e-05/0.1159, allocations: 23.98 kB / 493.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.806e-05/0.1159, allocations: 31.94 kB / 493.2 MB, free: 5.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.116, allocations: 68.83 kB / 493.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1161, allocations: 0 / 493.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002092/0.1163, allocations: 109.5 kB / 493.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1163, allocations: 4 kB / 493.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1163, allocations: 0 / 493.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1163, allocations: 0 / 493.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1163, allocations: 0 / 493.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1163, allocations: 0 / 493.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.177e-05/0.1163, allocations: 7.938 kB / 493.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.1164, allocations: 4.062 kB / 493.4 MB, free: 5.117 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.0001076/0.1165, allocations: 113.8 kB / 493.5 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.006e-05/0.1165, allocations: 7.891 kB / 493.5 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.1165, allocations: 3.969 kB / 493.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.1165, allocations: 3.984 kB / 493.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1165, allocations: 0 / 493.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1165, allocations: 4 kB / 493.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.1167, allocations: 140.7 kB / 493.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1167, allocations: 0 / 493.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.1167, allocations: 7.938 kB / 493.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1167, allocations: 0 / 493.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.1167, allocations: 0 / 493.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.1167, allocations: 7.984 kB / 493.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1167, allocations: 0 / 493.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.1169, allocations: 132.4 kB / 493.8 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.836e-05/0.1169, allocations: 19.77 kB / 493.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.117, allocations: 0 / 493.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.29e-05/0.117, allocations: 4.031 kB / 493.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.104e-05/0.117, allocations: 0 / 493.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.117, allocations: 0 / 493.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.038e-05/0.117, allocations: 75.28 kB / 493.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.117, allocations: 0 / 493.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003837/0.1174, allocations: 15.94 kB / 493.9 MB, free: 4.523 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.0003327/0.1178, allocations: 126.7 kB / 494 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.1179, allocations: 59.98 kB / 494.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1179, allocations: 0 / 494.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.252e-05/0.118, allocations: 31.98 kB / 494.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.1185, allocations: 36.02 kB / 494.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.119, allocations: 240.4 kB / 494.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.1195, allocations: 0.6924 MB / 495.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.981e-05/0.1195, allocations: 0 / 495.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.549e-05/0.1195, allocations: 11.44 kB / 495.1 MB, free: 3.281 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1195, allocations: 0 / 495.1 MB, free: 3.281 MB / 350.1 MB Notification: Performance of Templates: time 0.006676/0.1262, allocations: 1.626 MB / 496.7 MB, free: 1.68 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.563886328600347] Failed to read output from testmodel.py, exit status != 0: 0.13524845894426107 0.159511492 0.04118415 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f41d9d717b0>