Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.MATTest.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.001622/0.001622, allocations: 110 kB / 18.93 MB, free: 2.945 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.002465/0.002465, allocations: 188.8 kB / 22.23 MB, free: 5.16 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.605/1.605, 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/ExternData 3.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.0/package.mo): time 0.01797/0.01797, allocations: 3.216 MB / 309.5 MB, free: 5.363 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.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(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") translateModel(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 75.88 kB / 431.5 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09986/0.1021, allocations: 53.18 MB / 484.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002798/0.1049, allocations: 1.508 MB / 486.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.1069, allocations: 1.363 MB / 487.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.107, allocations: 4 kB / 487.5 MB, free: 11.43 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.0/package.mo:123:3-145:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003942/0.1074, allocations: 35.84 kB / 487.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.1075, allocations: 35.78 kB / 487.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.1078, allocations: 83.72 kB / 487.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.1079, allocations: 47.92 kB / 487.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.1079, allocations: 7.984 kB / 487.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.761e-05/0.108, allocations: 27.86 kB / 487.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.1082, allocations: 27.86 kB / 487.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.1082, allocations: 4 kB / 487.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.1084, allocations: 103.8 kB / 487.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.022e-05/0.1084, allocations: 15.98 kB / 487.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.1085, allocations: 19.88 kB / 487.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.1087, allocations: 115.7 kB / 488 MB, free: 10.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1087, allocations: 4 kB / 488 MB, free: 10.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1087, allocations: 0 / 488 MB, free: 10.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1087, allocations: 0 / 488 MB, free: 10.91 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005004/0.1092, allocations: 319.7 kB / 488.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1092, allocations: 12.03 kB / 488.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.1093, allocations: 8.891 kB / 488.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.1095, allocations: 134.3 kB / 488.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1095, allocations: 4.375 kB / 488.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.1095, allocations: 8.297 kB / 488.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.1097, allocations: 65.98 kB / 488.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1097, allocations: 0 / 488.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.1097, allocations: 0 / 488.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.678e-06/0.1097, allocations: 4 kB / 488.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.65e-05/0.1098, allocations: 27.98 kB / 488.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000211/0.11, allocations: 148.7 kB / 488.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.568e-05/0.11, allocations: 46.5 kB / 488.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.803e-05/0.1101, allocations: 28.89 kB / 488.8 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.1101, allocations: 0 / 488.8 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001622/0.1103, allocations: 113 kB / 488.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.1103, allocations: 0 / 488.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003659/0.1107, allocations: 195.4 kB / 489.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/0.1107, allocations: 85.11 kB / 489.2 MB, free: 9.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.1108, allocations: 117.8 kB / 489.3 MB, free: 9.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.1109, allocations: 25.7 kB / 489.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.761e-05/0.1109, allocations: 92.12 kB / 489.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.1109, allocations: 15.8 kB / 489.4 MB, free: 9.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.219e-05/0.111, allocations: 21.72 kB / 489.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1111, allocations: 322.8 kB / 489.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.1112, allocations: 35.98 kB / 489.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.585e-05/0.1112, allocations: 27.98 kB / 489.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.1114, allocations: 120.6 kB / 490 MB, free: 8.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.1114, allocations: 0 / 490 MB, free: 8.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002299/0.1116, allocations: 167.1 kB / 490.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.1117, allocations: 41.69 kB / 490.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.1117, allocations: 0 / 490.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.1117, allocations: 0 / 490.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.572e-05/0.1117, allocations: 4 kB / 490.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1117, allocations: 0 / 490.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.964e-05/0.1118, allocations: 8 kB / 490.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1118, allocations: 4 kB / 490.2 MB, free: 8.52 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: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0001374/0.1119, allocations: 155.5 kB / 490.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.112, allocations: 11.89 kB / 490.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.423e-05/0.112, allocations: 12.36 kB / 490.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.112, allocations: 3.938 kB / 490.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.112, allocations: 0 / 490.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.112, allocations: 4 kB / 490.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.1121, allocations: 144.7 kB / 490.5 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1121, allocations: 4 kB / 490.5 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.304e-05/0.1122, allocations: 7.922 kB / 490.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1122, allocations: 4 kB / 490.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.1122, allocations: 0 / 490.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1122, allocations: 0 / 490.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1122, allocations: 0 / 490.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.1125, allocations: 214.7 kB / 490.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.31e-05/0.1125, allocations: 7.938 kB / 490.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.1125, allocations: 4 kB / 490.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.915e-05/0.1126, allocations: 11.98 kB / 490.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.1126, allocations: 8.125 kB / 490.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1126, allocations: 4 kB / 490.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.707e-05/0.1127, allocations: 95.27 kB / 490.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1127, allocations: 288 / 490.9 MB, free: 7.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002436/0.1129, allocations: 43.88 kB / 490.9 MB, free: 7.711 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: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0008821/0.1138, allocations: 259.5 kB / 491.2 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.1141, allocations: 139.4 kB / 491.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1141, allocations: 0 / 491.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1142, allocations: 95.31 kB / 491.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/0.1143, allocations: 12 kB / 491.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000367/0.1147, allocations: 173.5 kB / 491.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1151, allocations: 0.7039 MB / 492.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.616e-05/0.1151, allocations: 7.984 kB / 492.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.1151, allocations: 15.44 kB / 492.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1151, allocations: 0 / 492.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of Templates: time 0.004528/0.1197, allocations: 1.48 MB / 493.8 MB, free: 4.82 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f ExternData_ExternData.Examples.MATTest.makefile [Timeout 660] (rm -f ExternData_ExternData.Examples.MATTest.pipe ; mkfifo ExternData_ExternData.Examples.MATTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.MATTest.pipe >> ../files/ExternData_ExternData.Examples.MATTest.sim & ./ExternData_ExternData.Examples.MATTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.MATTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.92718100734055] Failed to read output from testmodel.py, exit status != 0: 0.1271693892776966 0.14200870000000002 0.030286203 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f04423f97b0>