Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.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/IDEAS 3.0.0-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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001683, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7644/0.7644, allocations: 133.3 MB / 150.1 MB, free: 11.17 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 404.7 MB, free: 6.109 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 110.4 kB / 485.9 MB, free: 7.254 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 47.92 kB / 0.5636 GB, free: 69.96 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1604, allocations: 80.42 MB / 0.6421 GB, free: 5.469 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003639/0.164, allocations: 1.694 MB / 0.6438 GB, free: 3.758 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009873/0.1651, allocations: 0.5378 MB / 0.6443 GB, free: 3.215 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1652, allocations: 7.938 kB / 0.6443 GB, free: 3.207 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.1655, allocations: 23.86 kB / 0.6443 GB, free: 3.184 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.1657, allocations: 55.8 kB / 0.6444 GB, free: 3.129 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.1659, allocations: 63.86 kB / 0.6445 GB, free: 3.066 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.1662, allocations: 123.6 kB / 0.6446 GB, free: 2.945 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.1663, allocations: 41.48 kB / 0.6446 GB, free: 2.902 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.1665, allocations: 51.77 kB / 0.6447 GB, free: 2.852 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.1666, allocations: 63.69 kB / 0.6447 GB, free: 2.789 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.1666, allocations: 8 kB / 0.6447 GB, free: 2.781 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.952e-05/0.1667, allocations: 23.94 kB / 0.6448 GB, free: 2.758 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.076e-05/0.1668, allocations: 43.83 kB / 0.6448 GB, free: 2.715 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.876e-05/0.1669, allocations: 55.59 kB / 0.6448 GB, free: 2.66 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.1671, allocations: 135.7 kB / 0.645 GB, free: 2.527 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1671, allocations: 7.984 kB / 0.645 GB, free: 2.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1671, allocations: 4 kB / 0.645 GB, free: 2.516 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1671, allocations: 0 / 0.645 GB, free: 2.516 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006655/0.1678, allocations: 466.5 kB / 0.6454 GB, free: 2.012 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1678, allocations: 11.97 kB / 0.6454 GB, free: 2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.574e-05/0.1679, allocations: 16.75 kB / 0.6455 GB, free: 1.984 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.1682, allocations: 221 kB / 0.6457 GB, free: 1.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.1683, allocations: 8.375 kB / 0.6457 GB, free: 1.723 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.1683, allocations: 4.375 kB / 0.6457 GB, free: 1.719 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.1686, allocations: 118.8 kB / 0.6458 GB, free: 1.598 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.1686, allocations: 3.938 kB / 0.6458 GB, free: 1.594 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.1686, allocations: 0 / 0.6458 GB, free: 1.594 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1686, allocations: 0 / 0.6458 GB, free: 1.594 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002336/0.1689, allocations: 75.84 kB / 0.6459 GB, free: 1.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000585/0.1695, allocations: 388.4 kB / 0.6462 GB, free: 1.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.1696, allocations: 38.56 kB / 0.6463 GB, free: 1.043 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.1697, allocations: 28.89 kB / 0.6463 GB, free: 1.012 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.1698, allocations: 0 / 0.6463 GB, free: 1.012 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.17, allocations: 101.1 kB / 0.6464 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.1701, allocations: 0 / 0.6464 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004663/0.1705, allocations: 121.3 kB / 0.6465 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.1706, allocations: 85.11 kB / 0.6466 GB, free: 0.668 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.1709, allocations: 252.9 kB / 0.6468 GB, free: 424 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.53e-05/0.1709, allocations: 29.7 kB / 0.6469 GB, free: 388 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.301e-05/0.171, allocations: 128 kB / 0.647 GB, free: 256 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.171, allocations: 7.812 kB / 0.647 GB, free: 248 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.1711, allocations: 17.72 kB / 0.647 GB, free: 224 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1712, allocations: 330.8 kB / 0.6473 GB, free: 15.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.1713, allocations: 23.98 kB / 0.6474 GB, free: 15.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.1715, allocations: 51.41 kB / 0.6474 GB, free: 15.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.1717, allocations: 78.42 kB / 0.6475 GB, free: 15.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1717, allocations: 0 / 0.6475 GB, free: 15.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003105/0.172, allocations: 101.4 kB / 0.6476 GB, free: 15.61 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.172, allocations: 4 kB / 0.6476 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.1721, allocations: 0 / 0.6476 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1721, allocations: 12.03 kB / 0.6476 GB, free: 15.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.1722, allocations: 11.98 kB / 0.6476 GB, free: 15.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1722, allocations: 0 / 0.6476 GB, free: 15.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.83e-05/0.1723, allocations: 11.98 kB / 0.6476 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.1723, allocations: 4 kB / 0.6476 GB, free: 15.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001079/0.1724, allocations: 131.1 kB / 0.6477 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.1725, allocations: 15.81 kB / 0.6478 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/0.1725, allocations: 21.23 kB / 0.6478 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1725, allocations: 11.94 kB / 0.6478 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1725, allocations: 0 / 0.6478 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1726, allocations: 0 / 0.6478 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.1727, allocations: 209.6 kB / 0.648 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1727, allocations: 0 / 0.648 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.811e-05/0.1728, allocations: 11.98 kB / 0.648 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1728, allocations: 0 / 0.648 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.1728, allocations: 0 / 0.648 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.1729, allocations: 11.92 kB / 0.648 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1729, allocations: 3.938 kB / 0.648 GB, free: 15.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006272/0.1735, allocations: 0.7292 MB / 0.6487 GB, free: 14.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/0.1736, allocations: 96.84 kB / 0.6488 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.1736, allocations: 0 / 0.6488 GB, free: 14.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.1737, allocations: 11.98 kB / 0.6488 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.1737, allocations: 8 kB / 0.6488 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.1738, allocations: 4 kB / 0.6488 GB, free: 14.17 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.1739, allocations: 188.5 kB / 0.649 GB, free: 13.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1739, allocations: 0 / 0.649 GB, free: 13.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.1743, allocations: 20 kB / 0.649 GB, free: 13.96 MB / 458.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0002385/0.1745, allocations: 127 kB / 0.6492 GB, free: 13.83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002881/0.1748, allocations: 59.88 kB / 0.6492 GB, free: 13.77 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1748, allocations: 0 / 0.6492 GB, free: 13.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.1749, allocations: 28.16 kB / 0.6492 GB, free: 13.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.1752, allocations: 46.03 kB / 0.6493 GB, free: 13.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006212/0.1759, allocations: 428.7 kB / 0.6497 GB, free: 13.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.1762, allocations: 0.716 MB / 0.6504 GB, free: 12.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 7.122e-05/0.1763, allocations: 24.47 kB / 0.6504 GB, free: 12.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.595e-05/0.1763, allocations: 15.44 kB / 0.6504 GB, free: 12.46 MB / 458.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1763, allocations: 0 / 0.6504 GB, free: 12.46 MB / 458.7 MB Notification: Performance of Templates: time 0.004192/0.1805, allocations: 1.643 MB / 0.652 GB, free: 10.84 MB / 458.7 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)