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.001251/0.001251, allocations: 103.9 kB / 16.27 MB, free: 5.98 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.001236/0.001236, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.33/1.33, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01343/0.01343, allocations: 2.958 MB / 294 MB, free: 11.86 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 71.89 kB / 355.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2038, allocations: 50.34 MB / 405.7 MB, free: 32.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002164/0.206, allocations: 1.494 MB / 407.2 MB, free: 31.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.2072, allocations: 1.261 MB / 408.4 MB, free: 29.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.693e-05/0.2073, allocations: 0 / 408.4 MB, free: 29.87 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.0002097/0.2075, allocations: 35.77 kB / 408.5 MB, free: 29.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.976e-05/0.2076, allocations: 31.84 kB / 408.5 MB, free: 29.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.2078, allocations: 80.55 kB / 408.6 MB, free: 29.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.899e-05/0.2079, allocations: 51.86 kB / 408.6 MB, free: 29.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.578e-05/0.2079, allocations: 11.98 kB / 408.6 MB, free: 29.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.968e-05/0.208, allocations: 27.86 kB / 408.7 MB, free: 29.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.2081, allocations: 19.92 kB / 408.7 MB, free: 29.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.2081, allocations: 4 kB / 408.7 MB, free: 29.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.2082, allocations: 103.8 kB / 408.8 MB, free: 29.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.081e-05/0.2083, allocations: 11.94 kB / 408.8 MB, free: 29.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.852e-05/0.2083, allocations: 27.86 kB / 408.8 MB, free: 29.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.2085, allocations: 109.8 kB / 408.9 MB, free: 29.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.2085, allocations: 4 kB / 408.9 MB, free: 29.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2085, allocations: 0 / 408.9 MB, free: 29.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.2085, allocations: 4 kB / 408.9 MB, free: 29.36 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.0002755/0.2088, allocations: 400.9 kB / 409.3 MB, free: 28.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.531e-05/0.2088, allocations: 15.89 kB / 409.3 MB, free: 28.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.09e-05/0.2088, allocations: 0.9375 kB / 409.3 MB, free: 28.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.2089, allocations: 188.2 kB / 409.5 MB, free: 28.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.209, allocations: 384 / 409.5 MB, free: 28.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.209, allocations: 4.375 kB / 409.5 MB, free: 28.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/0.2091, allocations: 69.97 kB / 409.6 MB, free: 28.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.81e-06/0.2091, allocations: 0 / 409.6 MB, free: 28.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.2091, allocations: 4 kB / 409.6 MB, free: 28.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-06/0.2091, allocations: 0 / 409.6 MB, free: 28.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.896e-05/0.2092, allocations: 31.98 kB / 409.6 MB, free: 28.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001033/0.2093, allocations: 169.6 kB / 409.8 MB, free: 28.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.379e-05/0.2093, allocations: 54.5 kB / 409.9 MB, free: 28.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.855e-05/0.2094, allocations: 40.89 kB / 409.9 MB, free: 28.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.2094, allocations: 0 / 409.9 MB, free: 28.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001387/0.2096, allocations: 116.9 kB / 410 MB, free: 28.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.2096, allocations: 0 / 410 MB, free: 28.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002558/0.2098, allocations: 187.4 kB / 410.2 MB, free: 27.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.2099, allocations: 89.03 kB / 410.3 MB, free: 27.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.306e-05/0.2099, allocations: 121.8 kB / 410.4 MB, free: 27.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/0.21, allocations: 25.7 kB / 410.4 MB, free: 27.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.925e-05/0.21, allocations: 80.14 kB / 410.5 MB, free: 27.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.563e-05/0.21, allocations: 27.64 kB / 410.5 MB, free: 27.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.21, allocations: 25.72 kB / 410.6 MB, free: 27.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.032e-05/0.2101, allocations: 322.8 kB / 410.9 MB, free: 27.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.84e-05/0.2101, allocations: 24 kB / 410.9 MB, free: 27.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.128e-05/0.2102, allocations: 23.98 kB / 410.9 MB, free: 27.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.515e-05/0.2103, allocations: 124.2 kB / 411 MB, free: 27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2103, allocations: 0 / 411 MB, free: 27 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000152/0.2104, allocations: 163.2 kB / 411.2 MB, free: 26.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.2105, allocations: 33.7 kB / 411.2 MB, free: 26.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.2105, allocations: 0 / 411.2 MB, free: 26.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.2105, allocations: 8.453 kB / 411.2 MB, free: 26.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.802e-05/0.2105, allocations: 4 kB / 411.2 MB, free: 26.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.2105, allocations: 3.938 kB / 411.2 MB, free: 26.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.139e-05/0.2106, allocations: 7.938 kB / 411.3 MB, free: 26.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.2106, allocations: 12 kB / 411.3 MB, free: 26.75 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.551e-05/0.2107, allocations: 151.5 kB / 411.4 MB, free: 26.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.95e-05/0.2107, allocations: 15.84 kB / 411.4 MB, free: 26.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.533e-05/0.2107, allocations: 4.375 kB / 411.4 MB, free: 26.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.2107, allocations: 4 kB / 411.4 MB, free: 26.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.2107, allocations: 0 / 411.4 MB, free: 26.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.2108, allocations: 0 / 411.4 MB, free: 26.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.491e-05/0.2108, allocations: 181.6 kB / 411.6 MB, free: 26.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2108, allocations: 0 / 411.6 MB, free: 26.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.888e-05/0.2109, allocations: 7.938 kB / 411.6 MB, free: 26.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.2109, allocations: 0 / 411.6 MB, free: 26.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2109, allocations: 7.984 kB / 411.6 MB, free: 26.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.093e-06/0.2109, allocations: 0 / 411.6 MB, free: 26.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2109, allocations: 0 / 411.6 MB, free: 26.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.2111, allocations: 214.6 kB / 411.8 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.933e-05/0.2111, allocations: 88.95 kB / 411.9 MB, free: 25.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.2111, allocations: 11.94 kB / 411.9 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.033e-05/0.2112, allocations: 0 / 411.9 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.459e-05/0.2112, allocations: 7.984 kB / 411.9 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.2112, allocations: 0 / 411.9 MB, free: 25.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.505e-05/0.2113, allocations: 99.27 kB / 412 MB, free: 25.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2113, allocations: 0 / 412 MB, free: 25.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002177/0.2115, allocations: 40 kB / 412.1 MB, free: 25.82 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.0005339/0.212, allocations: 274.5 kB / 412.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000175/0.2122, allocations: 167.3 kB / 412.5 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2122, allocations: 0 / 412.5 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.273e-05/0.2123, allocations: 123.3 kB / 412.6 MB, free: 25.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.2125, allocations: 11.94 kB / 412.6 MB, free: 25.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002759/0.2128, allocations: 207.1 kB / 412.8 MB, free: 25.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.661e-05/0.2129, allocations: 0.6846 MB / 413.5 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.795e-05/0.2129, allocations: 7.438 kB / 413.5 MB, free: 24.35 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2129, allocations: 0 / 413.5 MB, free: 24.35 MB / 302.1 MB Notification: Performance of Templates: time 0.0024/0.2153, allocations: 1.461 MB / 415 MB, free: 22.89 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 -lv LOG_STATS > ExternData_ExternData.Examples.MATTest.pipe 2>&1)