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) 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/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") translateModel(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 112.6 kB / 16.37 MB, free: 6 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.001548/0.001548, allocations: 196 kB / 17.31 MB, free: 5.613 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01635/0.01635, allocations: 2.953 MB / 294.1 MB, free: 11.81 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 71.88 kB / 356.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2329, allocations: 50.33 MB / 406.5 MB, free: 32.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002296/0.2353, allocations: 1.49 MB / 407.9 MB, free: 31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2365, allocations: 1.257 MB / 409.2 MB, free: 29.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.804e-05/0.2366, allocations: 0 / 409.2 MB, free: 29.73 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:141:3-163:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.2369, allocations: 39.78 kB / 409.2 MB, free: 29.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.959e-05/0.2369, allocations: 31.84 kB / 409.3 MB, free: 29.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.2372, allocations: 71.8 kB / 409.3 MB, free: 29.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.601e-05/0.2373, allocations: 67.83 kB / 409.4 MB, free: 29.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.503e-05/0.2373, allocations: 7.984 kB / 409.4 MB, free: 29.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.013e-05/0.2374, allocations: 19.92 kB / 409.4 MB, free: 29.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.2375, allocations: 27.86 kB / 409.5 MB, free: 29.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.2375, allocations: 4 kB / 409.5 MB, free: 29.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.2377, allocations: 107.8 kB / 409.6 MB, free: 29.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.547e-05/0.2377, allocations: 8 kB / 409.6 MB, free: 29.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.925e-05/0.2378, allocations: 23.86 kB / 409.6 MB, free: 29.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.2379, allocations: 123.5 kB / 409.7 MB, free: 29.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2379, allocations: 0 / 409.7 MB, free: 29.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.238, allocations: 0 / 409.7 MB, free: 29.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.238, allocations: 4 kB / 409.7 MB, free: 29.21 MB / 302.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.0003391/0.2383, allocations: 389.1 kB / 410.1 MB, free: 28.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.805e-05/0.2383, allocations: 19.83 kB / 410.1 MB, free: 28.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.598e-05/0.2384, allocations: 4.938 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.2385, allocations: 186 kB / 410.3 MB, free: 28.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.2386, allocations: 384 / 410.3 MB, free: 28.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.2386, allocations: 8.359 kB / 410.3 MB, free: 28.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.2387, allocations: 62 kB / 410.4 MB, free: 28.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.2387, allocations: 0 / 410.4 MB, free: 28.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.2387, allocations: 0 / 410.4 MB, free: 28.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.2387, allocations: 0 / 410.4 MB, free: 28.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.586e-05/0.2388, allocations: 35.97 kB / 410.4 MB, free: 28.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.2389, allocations: 177.5 kB / 410.6 MB, free: 28.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.195e-05/0.239, allocations: 50.56 kB / 410.6 MB, free: 28.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.824e-05/0.239, allocations: 40.89 kB / 410.7 MB, free: 28.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.2391, allocations: 0 / 410.7 MB, free: 28.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/0.2392, allocations: 116.9 kB / 410.8 MB, free: 27.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 2.284e-06/0.2392, allocations: 4 kB / 410.8 MB, free: 27.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002725/0.2395, allocations: 191.4 kB / 411 MB, free: 27.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.2395, allocations: 85.11 kB / 411.1 MB, free: 27.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.414e-05/0.2396, allocations: 117.8 kB / 411.2 MB, free: 27.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.197e-06/0.2396, allocations: 25.7 kB / 411.2 MB, free: 27.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.86e-05/0.2396, allocations: 84.14 kB / 411.3 MB, free: 27.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.2396, allocations: 19.7 kB / 411.3 MB, free: 27.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.471e-05/0.2397, allocations: 21.72 kB / 411.3 MB, free: 27.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.846e-05/0.2397, allocations: 326.8 kB / 411.6 MB, free: 27.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.868e-05/0.2398, allocations: 27.98 kB / 411.7 MB, free: 27.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.178e-05/0.2398, allocations: 20 kB / 411.7 MB, free: 27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.19e-05/0.2399, allocations: 128.2 kB / 411.8 MB, free: 26.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2399, allocations: 0 / 411.8 MB, free: 26.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001508/0.2401, allocations: 159.7 kB / 412 MB, free: 26.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.2401, allocations: 44.44 kB / 412 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2401, allocations: 0 / 412 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.2401, allocations: 144 / 412 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.897e-05/0.2402, allocations: 7.938 kB / 412 MB, free: 26.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.2402, allocations: 4 kB / 412 MB, free: 26.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.292e-05/0.2402, allocations: 15.92 kB / 412 MB, free: 26.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.2403, allocations: 4 kB / 412.1 MB, free: 26.61 MB / 302.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 6.506e-05/0.2403, allocations: 148.2 kB / 412.2 MB, free: 26.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.2404, allocations: 15.84 kB / 412.2 MB, free: 26.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.578e-05/0.2404, allocations: 4.375 kB / 412.2 MB, free: 26.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2404, allocations: 0 / 412.2 MB, free: 26.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2404, allocations: 3.984 kB / 412.2 MB, free: 26.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.2404, allocations: 0 / 412.2 MB, free: 26.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.11e-05/0.2405, allocations: 181.6 kB / 412.4 MB, free: 26.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2405, allocations: 3.938 kB / 412.4 MB, free: 26.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.982e-05/0.2405, allocations: 11.94 kB / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2405, allocations: 3.984 kB / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.2405, allocations: 4 kB / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2405, allocations: 0 / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2405, allocations: 0 / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.2407, allocations: 214.6 kB / 412.6 MB, free: 25.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.861e-05/0.2408, allocations: 92.95 kB / 412.7 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.2408, allocations: 0 / 412.7 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.039e-05/0.2408, allocations: 4 kB / 412.7 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.527e-05/0.2409, allocations: 7.984 kB / 412.7 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.2409, allocations: 0 / 412.7 MB, free: 25.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.569e-05/0.2409, allocations: 99.27 kB / 412.8 MB, free: 25.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2409, allocations: 0 / 412.8 MB, free: 25.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.2412, allocations: 36 kB / 412.9 MB, free: 25.69 MB / 302.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.0006457/0.2418, allocations: 273.9 kB / 413.1 MB, free: 25.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001735/0.242, allocations: 167.4 kB / 413.3 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.242, allocations: 3.938 kB / 413.3 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.458e-05/0.2421, allocations: 119.4 kB / 413.4 MB, free: 25.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.2423, allocations: 14.8 kB / 413.4 MB, free: 25.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000296/0.2426, allocations: 189.3 kB / 413.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.517e-05/0.2427, allocations: 0.691 MB / 414.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.023e-05/0.2427, allocations: 7.984 kB / 414.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.799e-05/0.2427, allocations: 11.44 kB / 414.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2427, allocations: 0 / 414.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of Templates: time 0.003402/0.2461, allocations: 1.449 MB / 415.8 MB, free: 22.77 MB / 302.1 MB make -j1 -f ExternData_ExternData.Examples.MATTest.makefile (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 -s gbode -lv LOG_STATS > ExternData_ExternData.Examples.MATTest.pipe 2>&1)