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/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/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001183/0.001183, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.2063/0.2063, allocations: 2.959 MB / 294 MB, free: 3.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 8 kB / 355.9 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1364, allocations: 51.34 MB / 407.2 MB, free: 340 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002504/0.139, allocations: 1.393 MB / 408.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002507/0.1415, allocations: 1.515 MB / 410.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.765e-05/0.1416, allocations: 0 / 410.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.1419, allocations: 35.84 kB / 410.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003268/0.1423, allocations: 95.66 kB / 410.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.1425, allocations: 63.92 kB / 410.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001185/0.1427, allocations: 71.77 kB / 410.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1428, allocations: 20.14 kB / 410.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.033e-05/0.1429, allocations: 31.86 kB / 410.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1431, allocations: 35.84 kB / 410.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.1431, allocations: 4 kB / 410.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002907/0.1434, allocations: 175.8 kB / 410.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.686e-05/0.1434, allocations: 19.92 kB / 410.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.325e-05/0.1435, allocations: 37.64 kB / 410.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002478/0.1438, allocations: 155.7 kB / 410.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1438, allocations: 0 / 410.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1438, allocations: 4 kB / 410.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1438, allocations: 0 / 410.8 MB, free: 12.66 MB / 350.1 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.0006444/0.1444, allocations: 448.7 kB / 411.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1445, allocations: 12.02 kB / 411.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.1446, allocations: 7.906 kB / 411.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.1448, allocations: 202.7 kB / 411.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.1448, allocations: 7.938 kB / 411.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.1449, allocations: 4 kB / 411.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.1451, allocations: 99.31 kB / 411.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1451, allocations: 0 / 411.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.1451, allocations: 4 kB / 411.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.1451, allocations: 0 / 411.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.1453, allocations: 55.97 kB / 411.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004576/0.1458, allocations: 305.7 kB / 412 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.146, allocations: 101.2 kB / 412.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1462, allocations: 57.75 kB / 412.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1462, allocations: 7.984 kB / 412.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002702/0.1465, allocations: 138.7 kB / 412.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.1465, allocations: 0 / 412.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004981/0.147, allocations: 243.3 kB / 412.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.1471, allocations: 110.8 kB / 412.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.1472, allocations: 148.8 kB / 412.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.1472, allocations: 25.7 kB / 412.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.1473, allocations: 92.14 kB / 412.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.1474, allocations: 31.55 kB / 412.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.1474, allocations: 0 / 412.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1475, allocations: 318.8 kB / 413.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.691e-05/0.1476, allocations: 43.91 kB / 413.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.582e-05/0.1477, allocations: 53.7 kB / 413.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.1478, allocations: 69.62 kB / 413.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1478, allocations: 0 / 413.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002907/0.1481, allocations: 195.2 kB / 413.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.1482, allocations: 43.41 kB / 413.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.1482, allocations: 0 / 413.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1482, allocations: 0 / 413.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.15e-05/0.1483, allocations: 8 kB / 413.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1483, allocations: 4 kB / 413.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.818e-05/0.1484, allocations: 15.83 kB / 413.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.1484, allocations: 11.95 kB / 413.6 MB, free: 9.562 MB / 350.1 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 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.1485, allocations: 155.5 kB / 413.8 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.1486, allocations: 11.91 kB / 413.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.1486, allocations: 12.38 kB / 413.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1486, allocations: 0 / 413.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1486, allocations: 0 / 413.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1486, allocations: 0 / 413.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000203/0.1488, allocations: 209.5 kB / 414 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.1489, allocations: 0 / 414 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.45e-05/0.1489, allocations: 19.92 kB / 414 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1489, allocations: 0 / 414 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.149, allocations: 4 kB / 414.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.149, allocations: 0 / 414.1 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.149, allocations: 4 kB / 414.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000364/0.1493, allocations: 255.5 kB / 414.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.927e-05/0.1494, allocations: 89 kB / 414.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.1494, allocations: 4 kB / 414.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.65e-05/0.1495, allocations: 8 kB / 414.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.277e-05/0.1496, allocations: 7.984 kB / 414.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.1496, allocations: 4 kB / 414.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.919e-05/0.1497, allocations: 115.2 kB / 414.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1497, allocations: 0 / 414.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.15, allocations: 75.98 kB / 414.6 MB, free: 8.496 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009355/0.151, allocations: 384.5 kB / 415 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004067/0.1514, allocations: 191.3 kB / 415.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1514, allocations: 0 / 415.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.1517, allocations: 139.3 kB / 415.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1519, allocations: 23.94 kB / 415.3 MB, free: 7.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005583/0.1525, allocations: 252.3 kB / 415.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.1529, allocations: 0.7043 MB / 416.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.149e-05/0.153, allocations: 7.984 kB / 416.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.695e-05/0.153, allocations: 23.36 kB / 416.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.153, allocations: 0 / 416.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of Templates: time 0.006329/0.1593, allocations: 2.385 MB / 418.7 MB, free: 4.418 MB / 350.1 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)