Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternData_ExternData.Examples.JSONTest.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.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 182.9 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.01011/0.01011, 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.208/1.208, allocations: 222.9 MB / 244.2 MB, free: 7.191 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.0009538/0.0009539, allocations: 113.4 kB / 295.4 MB, free: 7.621 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009721/0.0009721, allocations: 48.14 kB / 356.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1863, allocations: 50.34 MB / 406.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002571/0.1889, allocations: 1.758 MB / 408.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.1906, allocations: 1.629 MB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.257e-05/0.1907, allocations: 0 / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002467/0.1909, allocations: 35.86 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002384/0.1912, allocations: 99.64 kB / 410.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.1914, allocations: 63.88 kB / 410.4 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.832e-05/0.1914, allocations: 79.77 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.802e-05/0.1915, allocations: 11.47 kB / 410.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.357e-05/0.1916, allocations: 35.86 kB / 410.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.1918, allocations: 39.78 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.1918, allocations: 0 / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.192, allocations: 195.8 kB / 410.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.951e-05/0.1921, allocations: 23.86 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.442e-05/0.1921, allocations: 31.8 kB / 410.8 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.1924, allocations: 227.5 kB / 411 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1924, allocations: 7.938 kB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1924, allocations: 0 / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.1924, allocations: 0 / 411 MB, free: 24.82 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004718/0.1929, allocations: 452.9 kB / 411.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1929, allocations: 8.031 kB / 411.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.193, allocations: 8.844 kB / 411.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.1932, allocations: 204.6 kB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.1932, allocations: 4.375 kB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.1932, allocations: 8.125 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.1934, allocations: 95.38 kB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.1934, allocations: 3.984 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1934, allocations: 0 / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1934, allocations: 0 / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.1935, allocations: 59.91 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000336/0.1939, allocations: 305.6 kB / 412.1 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.1941, allocations: 101.2 kB / 412.2 MB, free: 23.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.096e-05/0.1942, allocations: 57.91 kB / 412.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.1942, allocations: 4 kB / 412.3 MB, free: 23.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.1944, allocations: 138.8 kB / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.124e-06/0.1944, allocations: 0 / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003717/0.1948, allocations: 227.2 kB / 412.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.1949, allocations: 114.8 kB / 412.8 MB, free: 22.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.648e-05/0.1949, allocations: 137.2 kB / 412.9 MB, free: 22.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.195, allocations: 29.7 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.782e-05/0.195, allocations: 99.97 kB / 413 MB, free: 22.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.195, allocations: 19.72 kB / 413 MB, free: 22.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.1951, allocations: 25.7 kB / 413.1 MB, free: 22.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.861e-05/0.1951, allocations: 326.8 kB / 413.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.885e-05/0.1952, allocations: 35.98 kB / 413.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.637e-05/0.1953, allocations: 57.62 kB / 413.5 MB, free: 22.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.1954, allocations: 149 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1954, allocations: 0 / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002284/0.1956, allocations: 187.1 kB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.1957, allocations: 45.62 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1957, allocations: 0 / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1957, allocations: 4 kB / 413.9 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.492e-05/0.1958, allocations: 15.98 kB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1958, allocations: 0 / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.112e-05/0.1959, allocations: 7.938 kB / 413.9 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.1959, allocations: 7.938 kB / 413.9 MB, free: 21.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (7): * Single equations (assignments): 6 * 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 8.444e-05/0.196, allocations: 159.5 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.199e-05/0.196, allocations: 15.81 kB / 414.1 MB, free: 21.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.196, allocations: 12.38 kB / 414.1 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.196, allocations: 3.984 kB / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.196, allocations: 4 kB / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.196, allocations: 0 / 414.1 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1962, allocations: 201.5 kB / 414.3 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1962, allocations: 0 / 414.3 MB, free: 21.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-05/0.1962, allocations: 8 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1962, allocations: 3.938 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.1962, allocations: 4 kB / 414.3 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1962, allocations: 3.984 kB / 414.3 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1963, allocations: 4 kB / 414.3 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.1967, allocations: 0.8491 MB / 415.1 MB, free: 20.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.1968, allocations: 92.94 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.1968, allocations: 12 kB / 415.2 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.491e-05/0.1968, allocations: 4.328 kB / 415.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.1969, allocations: 11.98 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.1969, allocations: 8 kB / 415.3 MB, free: 20.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.667e-05/0.197, allocations: 103.3 kB / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.197, allocations: 0 / 415.4 MB, free: 19.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003657/0.1973, allocations: 79.98 kB / 415.5 MB, free: 19.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 5 * 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.0007114/0.1981, allocations: 401.1 kB / 415.8 MB, free: 19.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000232/0.1983, allocations: 191.3 kB / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1983, allocations: 0 / 416 MB, free: 19.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.1984, allocations: 135.4 kB / 416.2 MB, free: 19.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.1986, allocations: 19.92 kB / 416.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000404/0.199, allocations: 407.7 kB / 416.6 MB, free: 18.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001015/0.1992, allocations: 0.7004 MB / 417.3 MB, free: 18.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.381e-05/0.1992, allocations: 11.94 kB / 417.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.543e-05/0.1992, allocations: 19.42 kB / 417.3 MB, free: 18.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1992, allocations: 0 / 417.3 MB, free: 18.05 MB / 298.7 MB Notification: Performance of Templates: time 0.004103/0.2033, allocations: 2.491 MB / 419.8 MB, free: 15.57 MB / 298.7 MB make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile (rm -f ExternData_ExternData.Examples.JSONTest.pipe ; mkfifo ExternData_ExternData.Examples.JSONTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.JSONTest.pipe >> ../files/ExternData_ExternData.Examples.JSONTest.sim & ./ExternData_ExternData.Examples.JSONTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1)