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-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.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.0012/0.0012, allocations: 106.1 kB / 15.99 MB, free: 6.359 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.001266/0.001266, allocations: 193.8 kB / 16.91 MB, free: 6.195 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.231/1.231, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01262/0.01262, allocations: 2.957 MB / 293.7 MB, free: 12.04 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 64.12 kB / 354.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.172, allocations: 50.34 MB / 405.2 MB, free: 32.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002275/0.1743, allocations: 1.765 MB / 406.9 MB, free: 31.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.1759, allocations: 1.59 MB / 408.5 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.649e-05/0.1759, allocations: 4 kB / 408.5 MB, free: 29.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.1762, allocations: 35.84 kB / 408.6 MB, free: 29.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.1764, allocations: 95.72 kB / 408.7 MB, free: 29.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.1766, allocations: 83.73 kB / 408.7 MB, free: 29.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.688e-05/0.1767, allocations: 87.7 kB / 408.8 MB, free: 29.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.797e-05/0.1768, allocations: 12.23 kB / 408.8 MB, free: 29.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.446e-05/0.1769, allocations: 43.84 kB / 408.9 MB, free: 29.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.177, allocations: 35.78 kB / 408.9 MB, free: 29.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.177, allocations: 8 kB / 408.9 MB, free: 29.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.1772, allocations: 199.8 kB / 409.1 MB, free: 28.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.1773, allocations: 27.84 kB / 409.1 MB, free: 28.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.195e-05/0.1773, allocations: 43.78 kB / 409.2 MB, free: 28.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1775, allocations: 159.7 kB / 409.3 MB, free: 28.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1775, allocations: 0 / 409.3 MB, free: 28.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1775, allocations: 0 / 409.3 MB, free: 28.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1775, allocations: 0 / 409.3 MB, free: 28.62 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004071/0.178, allocations: 460.8 kB / 409.8 MB, free: 28.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.716e-05/0.178, allocations: 11.89 kB / 409.8 MB, free: 28.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.178, allocations: 8.844 kB / 409.8 MB, free: 28.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.1782, allocations: 196.1 kB / 410 MB, free: 27.87 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.1782, allocations: 4.375 kB / 410 MB, free: 27.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.1782, allocations: 8.125 kB / 410 MB, free: 27.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001626/0.1784, allocations: 95.38 kB / 410.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.1784, allocations: 3.938 kB / 410.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.1784, allocations: 4 kB / 410.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.1784, allocations: 0 / 410.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.1785, allocations: 59.89 kB / 410.2 MB, free: 27.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002702/0.1788, allocations: 305.6 kB / 410.5 MB, free: 27.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.179, allocations: 105.2 kB / 410.6 MB, free: 27.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.101e-05/0.1791, allocations: 53.75 kB / 410.6 MB, free: 27.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.1791, allocations: 0 / 410.6 MB, free: 27.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.1793, allocations: 146.7 kB / 410.8 MB, free: 26.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.1793, allocations: 0 / 410.8 MB, free: 26.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003851/0.1797, allocations: 223.2 kB / 411 MB, free: 26.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.1798, allocations: 110.8 kB / 411.1 MB, free: 26.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.715e-05/0.1799, allocations: 137.8 kB / 411.2 MB, free: 26.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.1799, allocations: 25.7 kB / 411.3 MB, free: 26.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.306e-05/0.1799, allocations: 104 kB / 411.4 MB, free: 26.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.1799, allocations: 23.86 kB / 411.4 MB, free: 26.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.884e-05/0.18, allocations: 25.7 kB / 411.4 MB, free: 26.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.55e-05/0.18, allocations: 322.8 kB / 411.7 MB, free: 25.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.245e-05/0.1801, allocations: 35.97 kB / 411.8 MB, free: 25.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.862e-05/0.1802, allocations: 49.7 kB / 411.8 MB, free: 25.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.1803, allocations: 168.9 kB / 412 MB, free: 25.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1803, allocations: 0 / 412 MB, free: 25.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002336/0.1806, allocations: 179.2 kB / 412.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.1806, allocations: 41.69 kB / 412.2 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1806, allocations: 7.938 kB / 412.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.1806, allocations: 0 / 412.2 MB, free: 25.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.548e-05/0.1807, allocations: 8 kB / 412.2 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.1807, allocations: 0 / 412.2 MB, free: 25.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.261e-05/0.1808, allocations: 15.92 kB / 412.2 MB, free: 25.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.1808, allocations: 7.938 kB / 412.2 MB, free: 25.42 MB / 302.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 (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 7.206e-05/0.1809, allocations: 159.5 kB / 412.4 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.1809, allocations: 12.14 kB / 412.4 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.209e-05/0.1809, allocations: 12.38 kB / 412.4 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1809, allocations: 3.984 kB / 412.4 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1809, allocations: 0 / 412.4 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1809, allocations: 0 / 412.4 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.352e-05/0.181, allocations: 197.5 kB / 412.6 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.181, allocations: 3.984 kB / 412.6 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.836e-05/0.1811, allocations: 15.94 kB / 412.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1811, allocations: 0 / 412.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1811, allocations: 8 kB / 412.6 MB, free: 24.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1811, allocations: 4 kB / 412.6 MB, free: 24.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1811, allocations: 0 / 412.6 MB, free: 24.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.1814, allocations: 247.5 kB / 412.9 MB, free: 24.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.1814, allocations: 92.94 kB / 413 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.1815, allocations: 4 kB / 413 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.749e-05/0.1815, allocations: 8 kB / 413 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.1816, allocations: 7.984 kB / 413 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.1816, allocations: 7.938 kB / 413 MB, free: 24.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.835e-05/0.1816, allocations: 118.3 kB / 413.1 MB, free: 24.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1817, allocations: 0 / 413.1 MB, free: 24.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002697/0.1819, allocations: 75.98 kB / 413.2 MB, free: 24.35 MB / 302.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 (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.0006993/0.1826, allocations: 399.3 kB / 413.6 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.1829, allocations: 195.2 kB / 413.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1829, allocations: 0 / 413.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.183, allocations: 139.4 kB / 413.9 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002129/0.1832, allocations: 15.98 kB / 413.9 MB, free: 23.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003384/0.1836, allocations: 272.9 kB / 414.2 MB, free: 23.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.031e-05/0.1837, allocations: 0.6924 MB / 414.9 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.072e-05/0.1837, allocations: 19.42 kB / 414.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1837, allocations: 0 / 414.9 MB, free: 22.65 MB / 302.1 MB Notification: Performance of Templates: time 0.003316/0.187, allocations: 2.589 MB / 417.5 MB, free: 20.07 MB / 302.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)