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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002469/0.002469, allocations: 216.4 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.624/1.624, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01807/0.01807, allocations: 3.273 MB / 315.7 MB, free: 15.61 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002459/0.002459, allocations: 67.89 kB / 440 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1106, allocations: 54.38 MB / 494.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.003361/0.114, allocations: 1.502 MB / 495.9 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002401/0.1164, allocations: 1.34 MB / 497.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.1165, allocations: 4 kB / 497.2 MB, free: 2.113 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.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.0003075/0.1168, allocations: 31.84 kB / 497.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.1169, allocations: 31.84 kB / 497.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1172, allocations: 86.28 kB / 497.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000142/0.1173, allocations: 51.86 kB / 497.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.636e-05/0.1174, allocations: 11.92 kB / 497.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.748e-05/0.1174, allocations: 31.86 kB / 497.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.1176, allocations: 15.92 kB / 497.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.1176, allocations: 0 / 497.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.1178, allocations: 91.91 kB / 497.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.688e-05/0.1178, allocations: 15.98 kB / 497.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.911e-05/0.1179, allocations: 23.8 kB / 497.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002478/0.1181, allocations: 111.7 kB / 497.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1181, allocations: 0 / 497.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1181, allocations: 8 kB / 497.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1181, allocations: 0 / 497.7 MB, free: 1.613 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.0005408/0.1187, allocations: 327.6 kB / 498 MB, free: 1.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.1187, allocations: 12.03 kB / 498 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.1188, allocations: 0.9375 kB / 498 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.119, allocations: 134.5 kB / 498.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.119, allocations: 384 / 498.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.119, allocations: 8.359 kB / 498.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001831/0.1192, allocations: 99.62 kB / 498.3 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1192, allocations: 3.938 kB / 498.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.1192, allocations: 7.984 kB / 498.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1193, allocations: 0 / 498.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.1194, allocations: 61.69 kB / 498.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.1195, allocations: 113.3 kB / 498.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.1196, allocations: 72.27 kB / 498.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.1197, allocations: 66.59 kB / 498.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.1198, allocations: 0 / 498.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002112/0.12, allocations: 142.7 kB / 498.7 MB, free: 440 kB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.482e-06/0.12, allocations: 0 / 498.7 MB, free: 440 kB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004326/0.1204, allocations: 254.8 kB / 499 MB, free: 160 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/0.1205, allocations: 89.11 kB / 499.1 MB, free: 52 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.1206, allocations: 129.7 kB / 499.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.1207, allocations: 25.7 kB / 499.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.258e-05/0.1207, allocations: 88.12 kB / 499.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.1208, allocations: 19.84 kB / 499.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.353e-05/0.1208, allocations: 17.72 kB / 499.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.121, allocations: 322.8 kB / 499.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.091e-05/0.1211, allocations: 57.69 kB / 499.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.02e-05/0.1211, allocations: 57.69 kB / 499.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.1213, allocations: 124.6 kB / 499.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1213, allocations: 0 / 499.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002902/0.1216, allocations: 212.9 kB / 0.4884 GB, free: 14.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.353e-05/0.1217, allocations: 41.62 kB / 0.4884 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1217, allocations: 0 / 0.4884 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.1217, allocations: 0 / 0.4884 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.417e-05/0.1218, allocations: 4 kB / 0.4884 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1218, allocations: 0 / 0.4884 GB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.378e-05/0.1219, allocations: 8 kB / 0.4884 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.1219, allocations: 4 kB / 0.4884 GB, free: 14.88 MB / 366.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.0001584/0.122, allocations: 151.5 kB / 0.4886 GB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.1221, allocations: 11.89 kB / 0.4886 GB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.1221, allocations: 12.36 kB / 0.4886 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.1221, allocations: 0 / 0.4886 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.1221, allocations: 4 kB / 0.4886 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1221, allocations: 0 / 0.4886 GB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.1222, allocations: 121.2 kB / 0.4887 GB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1222, allocations: 0 / 0.4887 GB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.523e-05/0.1223, allocations: 11.92 kB / 0.4887 GB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1223, allocations: 0 / 0.4887 GB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1223, allocations: 7.938 kB / 0.4888 GB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1223, allocations: 0 / 0.4888 GB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1223, allocations: 0 / 0.4888 GB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.1227, allocations: 256.4 kB / 0.489 GB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.307e-05/0.1227, allocations: 7.953 kB / 0.489 GB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.294e-05/0.1227, allocations: 7.938 kB / 0.489 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.659e-05/0.1228, allocations: 4 kB / 0.489 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.266e-05/0.1228, allocations: 4.188 kB / 0.489 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.1228, allocations: 3.984 kB / 0.489 GB, free: 14.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.352e-05/0.1229, allocations: 95.28 kB / 0.4891 GB, free: 14.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1229, allocations: 0 / 0.4891 GB, free: 14.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002635/0.1232, allocations: 39.92 kB / 0.4892 GB, free: 14.07 MB / 366.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.001012/0.1242, allocations: 283 kB / 0.4894 GB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.1245, allocations: 202.8 kB / 0.4896 GB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1245, allocations: 0 / 0.4896 GB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.1246, allocations: 125.1 kB / 0.4897 GB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.1249, allocations: 11.98 kB / 0.4897 GB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004563/0.1253, allocations: 223.1 kB / 0.49 GB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.485e-05/0.1254, allocations: 75.27 kB / 0.49 GB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.634e-05/0.1254, allocations: 7.984 kB / 0.49 GB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.286e-05/0.1255, allocations: 15.44 kB / 0.4901 GB, free: 13.11 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1255, allocations: 0 / 0.4901 GB, free: 13.11 MB / 366.1 MB Notification: Performance of Templates: time 0.005324/0.1308, allocations: 1.535 MB / 0.4916 GB, free: 11.58 MB / 366.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: 5.110378749668598] Failed to read output from testmodel.py, exit status != 0: 0.140434255823493 0.163796294 0.040909722 Calling exit ...