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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 ExternData with version 3.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3-master/package.mo): time 0.01131/0.01131, allocations: 2.944 MB / 19.67 MB, free: 2.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 244.2 MB, free: 7.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009859/0.000986, allocations: 106.5 kB / 295.4 MB, free: 7.617 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009365/0.0009366, allocations: 48.14 kB / 356.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1819, allocations: 50.34 MB / 406.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002045/0.184, allocations: 1.557 MB / 408.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.1851, allocations: 1.257 MB / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.401e-05/0.1852, allocations: 0 / 409.6 MB, free: 26.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002071/0.1854, allocations: 31.86 kB / 409.6 MB, free: 26.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.573e-05/0.1854, allocations: 23.91 kB / 409.7 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.1856, allocations: 63.86 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.131e-05/0.1857, allocations: 47.86 kB / 409.8 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.003e-05/0.1857, allocations: 3.984 kB / 409.8 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.249e-05/0.1858, allocations: 23.88 kB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.1859, allocations: 27.91 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.1859, allocations: 4 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.186, allocations: 95.86 kB / 409.9 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.853e-05/0.1861, allocations: 11.92 kB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.561e-05/0.1861, allocations: 23.88 kB / 410 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.1863, allocations: 109.9 kB / 410.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1863, allocations: 0 / 410.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.1863, allocations: 0 / 410.1 MB, free: 25.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.706e-06/0.1863, allocations: 0 / 410.1 MB, free: 25.77 MB / 298.7 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.0003135/0.1866, allocations: 409 kB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.733e-05/0.1867, allocations: 12.03 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.1867, allocations: 0.9375 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1868, allocations: 184.2 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.1868, allocations: 4.375 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.1869, allocations: 384 / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.187, allocations: 69.98 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.187, allocations: 0 / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-06/0.187, allocations: 0 / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.187, allocations: 0 / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.542e-05/0.1871, allocations: 35.97 kB / 410.8 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000111/0.1872, allocations: 177.6 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.782e-05/0.1872, allocations: 54.5 kB / 411 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.498e-05/0.1873, allocations: 37.02 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-06/0.1873, allocations: 0 / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001349/0.1874, allocations: 121 kB / 411.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.1875, allocations: 4 kB / 411.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002405/0.1877, allocations: 191.3 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.1877, allocations: 81.11 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.534e-05/0.1878, allocations: 125.8 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.1878, allocations: 25.7 kB / 411.6 MB, free: 24.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.661e-05/0.1878, allocations: 88.14 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.1879, allocations: 11.72 kB / 411.7 MB, free: 23.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.298e-05/0.1879, allocations: 29.64 kB / 411.7 MB, free: 23.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.366e-05/0.1879, allocations: 322.8 kB / 412 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.696e-05/0.188, allocations: 27.98 kB / 412 MB, free: 23.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.002e-05/0.188, allocations: 27.98 kB / 412.1 MB, free: 23.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.361e-05/0.1881, allocations: 120.2 kB / 412.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1881, allocations: 0 / 412.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001392/0.1883, allocations: 163.2 kB / 412.3 MB, free: 23.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.1883, allocations: 37.7 kB / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.1883, allocations: 0 / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.1883, allocations: 0 / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.789e-05/0.1884, allocations: 7.984 kB / 412.4 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1884, allocations: 8.406 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.944e-05/0.1884, allocations: 7.938 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.1884, allocations: 4 kB / 412.4 MB, free: 23.15 MB / 298.7 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.168e-05/0.1885, allocations: 151.5 kB / 412.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.66e-05/0.1885, allocations: 11.84 kB / 412.6 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.534e-05/0.1885, allocations: 12.31 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1886, allocations: 0 / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1886, allocations: 0 / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1886, allocations: 0 / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.766e-05/0.1886, allocations: 185.6 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1886, allocations: 0 / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.79e-05/0.1887, allocations: 7.938 kB / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1887, allocations: 0 / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.1887, allocations: 4 kB / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1887, allocations: 0 / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1887, allocations: 0 / 412.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003253/0.189, allocations: 0.8051 MB / 413.6 MB, free: 21.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.645e-05/0.1891, allocations: 85.11 kB / 413.6 MB, free: 21.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.1891, allocations: 4 kB / 413.7 MB, free: 21.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.943e-05/0.1891, allocations: 4 kB / 413.7 MB, free: 21.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.1892, allocations: 3.938 kB / 413.7 MB, free: 21.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.1892, allocations: 7.984 kB / 413.7 MB, free: 21.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.303e-05/0.1892, allocations: 95.28 kB / 413.8 MB, free: 21.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1892, allocations: 0 / 413.8 MB, free: 21.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003001/0.1895, allocations: 43.92 kB / 413.8 MB, free: 21.59 MB / 298.7 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.0004952/0.19, allocations: 273.9 kB / 414.1 MB, free: 21.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001558/0.1902, allocations: 163.4 kB / 414.2 MB, free: 21.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1902, allocations: 0 / 414.2 MB, free: 21.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.015e-05/0.1903, allocations: 119.4 kB / 414.3 MB, free: 21.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.1904, allocations: 8 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000308/0.1908, allocations: 333.9 kB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.117e-05/0.1909, allocations: 0.6926 MB / 415.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.132e-05/0.1909, allocations: 4 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.1909, allocations: 15.38 kB / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1909, allocations: 0 / 415.4 MB, free: 19.97 MB / 298.7 MB Notification: Performance of Templates: time 0.002877/0.1938, allocations: 1.42 MB / 416.8 MB, free: 18.55 MB / 298.7 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)