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.001066/0.001066, allocations: 106 kB / 16.35 MB, free: 5.824 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.001016/0.001016, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01184/0.01184, allocations: 2.964 MB / 294.1 MB, free: 11.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 63.91 kB / 356.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2156, allocations: 50.34 MB / 406.4 MB, free: 32.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002361/0.218, allocations: 1.493 MB / 407.9 MB, free: 30.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2192, allocations: 1.253 MB / 409.2 MB, free: 29.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.2193, 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.0002672/0.2196, allocations: 35.83 kB / 409.2 MB, free: 29.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.164e-05/0.2197, allocations: 35.7 kB / 409.3 MB, free: 29.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.2199, allocations: 79.77 kB / 409.3 MB, free: 29.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.22, allocations: 67.78 kB / 409.4 MB, free: 29.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.751e-05/0.22, allocations: 4 kB / 409.4 MB, free: 29.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.164e-05/0.2201, allocations: 27.91 kB / 409.4 MB, free: 29.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.2203, allocations: 26.95 kB / 409.5 MB, free: 29.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.2203, allocations: 4 kB / 409.5 MB, free: 29.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.2204, allocations: 91.92 kB / 409.5 MB, free: 29.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.2205, allocations: 27.91 kB / 409.6 MB, free: 29.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.171e-05/0.2205, allocations: 15.88 kB / 409.6 MB, free: 29.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.2207, allocations: 119.5 kB / 409.7 MB, free: 29.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2207, allocations: 0 / 409.7 MB, free: 29.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2207, allocations: 0 / 409.7 MB, free: 29.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2207, allocations: 0 / 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.0003724/0.2211, allocations: 401 kB / 410.1 MB, free: 28.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.2212, allocations: 11.89 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.684e-05/0.2212, allocations: 4.938 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.2214, allocations: 194 kB / 410.3 MB, free: 28.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.2214, allocations: 384 / 410.3 MB, free: 28.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.2214, allocations: 4.375 kB / 410.3 MB, free: 28.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.2215, allocations: 69.92 kB / 410.4 MB, free: 28.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2215, allocations: 0 / 410.4 MB, free: 28.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.2216, allocations: 0 / 410.4 MB, free: 28.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2216, allocations: 0 / 410.4 MB, free: 28.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.641e-05/0.2216, allocations: 31.98 kB / 410.4 MB, free: 28.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001286/0.2218, allocations: 169.6 kB / 410.6 MB, free: 28.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.791e-05/0.2218, allocations: 50.62 kB / 410.6 MB, free: 28.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.961e-05/0.2219, allocations: 44.83 kB / 410.7 MB, free: 28.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.789e-06/0.2219, allocations: 0 / 410.7 MB, free: 28.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001284/0.2221, allocations: 120.9 kB / 410.8 MB, free: 27.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2221, allocations: 0 / 410.8 MB, free: 27.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002819/0.2224, allocations: 179.4 kB / 411 MB, free: 27.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.2224, allocations: 89.11 kB / 411 MB, free: 27.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.648e-05/0.2225, allocations: 125.8 kB / 411.2 MB, free: 27.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.2225, allocations: 25.7 kB / 411.2 MB, free: 27.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.191e-05/0.2225, allocations: 84.3 kB / 411.3 MB, free: 27.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.2225, allocations: 23.64 kB / 411.3 MB, free: 27.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.2226, allocations: 25.7 kB / 411.3 MB, free: 27.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.791e-05/0.2226, allocations: 314.8 kB / 411.6 MB, free: 27.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.076e-05/0.2227, allocations: 35.92 kB / 411.7 MB, free: 27.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.364e-05/0.2227, allocations: 31.98 kB / 411.7 MB, free: 26.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.372e-05/0.2228, allocations: 116.2 kB / 411.8 MB, free: 26.85 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2228, allocations: 0 / 411.8 MB, free: 26.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001568/0.223, allocations: 167.1 kB / 412 MB, free: 26.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.223, allocations: 37.7 kB / 412 MB, free: 26.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.223, allocations: 0 / 412 MB, free: 26.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.223, allocations: 0 / 412 MB, free: 26.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.705e-05/0.2231, allocations: 8 kB / 412 MB, free: 26.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.2231, allocations: 4.219 kB / 412 MB, free: 26.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.206e-05/0.2232, allocations: 7.938 kB / 412 MB, free: 26.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2232, allocations: 4 kB / 412 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 7.321e-05/0.2233, allocations: 151.5 kB / 412.2 MB, free: 26.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.895e-05/0.2233, allocations: 15.84 kB / 412.2 MB, free: 26.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.814e-05/0.2233, allocations: 4.375 kB / 412.2 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2233, allocations: 0 / 412.2 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.2233, allocations: 0 / 412.2 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2233, allocations: 480 / 412.2 MB, free: 26.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.677e-05/0.2234, allocations: 181.6 kB / 412.4 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2235, allocations: 0 / 412.4 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.998e-05/0.2235, allocations: 11.94 kB / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.2235, allocations: 0 / 412.4 MB, free: 26.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.2235, allocations: 7.938 kB / 412.4 MB, free: 26.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.2235, allocations: 3.938 kB / 412.4 MB, free: 26.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2235, allocations: 3.984 kB / 412.4 MB, free: 26.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002098/0.2237, allocations: 210.7 kB / 412.6 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.968e-05/0.2238, allocations: 88.95 kB / 412.7 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.2238, allocations: 0 / 412.7 MB, free: 25.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.058e-05/0.2238, allocations: 11.94 kB / 412.7 MB, free: 25.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.2239, allocations: 4 kB / 412.7 MB, free: 25.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.2239, allocations: 11.97 kB / 412.7 MB, free: 25.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.591e-05/0.2239, allocations: 91.28 kB / 412.8 MB, free: 25.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2239, allocations: 0 / 412.8 MB, free: 25.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.2242, allocations: 39.98 kB / 412.9 MB, free: 25.67 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.0005486/0.2247, allocations: 265.6 kB / 413.1 MB, free: 25.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001686/0.2249, allocations: 167.3 kB / 413.3 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2249, allocations: 4 kB / 413.3 MB, free: 25.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.078e-05/0.225, allocations: 119.4 kB / 413.4 MB, free: 25.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001657/0.2251, allocations: 13.58 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.0002523/0.2254, 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.451e-05/0.2255, allocations: 0.6924 MB / 414.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.943e-05/0.2255, allocations: 0 / 414.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.81e-05/0.2256, allocations: 11.44 kB / 414.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2256, allocations: 7.938 kB / 414.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of Templates: time 0.003458/0.229, allocations: 1.452 MB / 415.8 MB, free: 22.76 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 cvode -lv LOG_STATS > ExternData_ExternData.Examples.MATTest.pipe 2>&1)