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/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001402, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00221/0.00221, allocations: 194 kB / 16.25 MB, free: 6.633 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.452/1.452, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9483/0.9483, allocations: 135.1 MB / 425.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 60.31 kB / 0.5049 GB, free: 5.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1631, allocations: 80.93 MB / 0.5839 GB, free: 4.922 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003497/0.1667, allocations: 1.685 MB / 0.5855 GB, free: 3.223 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.1677, allocations: 0.5417 MB / 0.5861 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1679, allocations: 7.875 kB / 0.5861 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002568/0.1682, allocations: 23.86 kB / 0.5861 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.1685, allocations: 51.81 kB / 0.5861 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.1687, allocations: 59.88 kB / 0.5862 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.1689, allocations: 143.5 kB / 0.5863 GB, free: 2.395 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.1691, allocations: 37.48 kB / 0.5864 GB, free: 2.352 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.1693, allocations: 51.78 kB / 0.5864 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.1694, allocations: 63.69 kB / 0.5865 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1694, allocations: 12 kB / 0.5865 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.276e-05/0.1695, allocations: 27.94 kB / 0.5865 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.836e-05/0.1696, allocations: 47.83 kB / 0.5866 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.848e-05/0.1697, allocations: 59.61 kB / 0.5866 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.1699, allocations: 135.7 kB / 0.5868 GB, free: 1.961 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.17, allocations: 0 / 0.5868 GB, free: 1.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.17, allocations: 0 / 0.5868 GB, free: 1.961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.17, allocations: 4 kB / 0.5868 GB, free: 1.957 MB / 494.1 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.0007529/0.1707, allocations: 470.6 kB / 0.5872 GB, free: 1.449 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.1708, allocations: 12.03 kB / 0.5872 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.996e-05/0.1709, allocations: 24.59 kB / 0.5872 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.1712, allocations: 225 kB / 0.5875 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.1713, allocations: 8.375 kB / 0.5875 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.1713, allocations: 4.375 kB / 0.5875 GB, free: 1.145 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.1716, allocations: 114 kB / 0.5876 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.1717, allocations: 0 / 0.5876 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.1717, allocations: 7.984 kB / 0.5876 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1717, allocations: 0 / 0.5876 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.1719, allocations: 67.88 kB / 0.5876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/0.1727, allocations: 380.4 kB / 0.588 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.1728, allocations: 46.55 kB / 0.5881 GB, free: 488 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1729, allocations: 24.89 kB / 0.5881 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.173, allocations: 0 / 0.5881 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003476/0.1733, allocations: 105.1 kB / 0.5882 GB, free: 336 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.1733, allocations: 4 kB / 0.5882 GB, free: 332 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004576/0.1738, allocations: 117.3 kB / 0.5883 GB, free: 208 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.1739, allocations: 77.11 kB / 0.5884 GB, free: 112 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.1742, allocations: 257 kB / 0.5886 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.1742, allocations: 25.7 kB / 0.5886 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.198e-05/0.1743, allocations: 140 kB / 0.5888 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.1743, allocations: 7.891 kB / 0.5888 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.04e-05/0.1744, allocations: 17.72 kB / 0.5888 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1745, allocations: 330.8 kB / 0.5891 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.1747, allocations: 19.92 kB / 0.5891 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.1748, allocations: 55.34 kB / 0.5892 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.175, allocations: 74.45 kB / 0.5893 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.175, allocations: 0 / 0.5893 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002999/0.1753, allocations: 105.4 kB / 0.5894 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.1753, allocations: 4 kB / 0.5894 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1754, allocations: 0 / 0.5894 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1754, allocations: 7.938 kB / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.1755, allocations: 11.98 kB / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.1755, allocations: 0 / 0.5894 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.659e-05/0.1756, allocations: 19.98 kB / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.1756, allocations: 0 / 0.5894 GB, free: 14.99 MB / 0.4981 GB 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.0001187/0.1757, allocations: 133.8 kB / 0.5895 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.1758, allocations: 15.81 kB / 0.5895 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.1758, allocations: 17.23 kB / 0.5896 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1758, allocations: 3.938 kB / 0.5896 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1759, allocations: 0 / 0.5896 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1759, allocations: 4 kB / 0.5896 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.1761, allocations: 213.6 kB / 0.5898 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1761, allocations: 4 kB / 0.5898 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.45e-05/0.1762, allocations: 11.98 kB / 0.5898 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1762, allocations: 0 / 0.5898 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1762, allocations: 288 / 0.5898 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1762, allocations: 3.938 kB / 0.5898 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1762, allocations: 4 kB / 0.5898 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.1765, allocations: 124.9 kB / 0.5899 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.1766, allocations: 92.86 kB / 0.59 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.1766, allocations: 7.938 kB / 0.59 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-05/0.1767, allocations: 11.92 kB / 0.59 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.1767, allocations: 8 kB / 0.59 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1768, allocations: 7.984 kB / 0.59 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001631/0.1769, allocations: 184.5 kB / 0.5902 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1769, allocations: 0 / 0.5902 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002361/0.1772, allocations: 27.89 kB / 0.5902 GB, free: 14.04 MB / 0.4981 GB 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.0002109/0.1774, allocations: 118.5 kB / 0.5903 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.1777, allocations: 60.12 kB / 0.5904 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1777, allocations: 3.938 kB / 0.5904 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1778, allocations: 27.97 kB / 0.5904 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.1781, allocations: 48.78 kB / 0.5905 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005533/0.1787, allocations: 324.2 kB / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.179, allocations: 0.7236 MB / 0.5915 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.133e-05/0.1791, allocations: 16.55 kB / 0.5915 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.42e-05/0.1791, allocations: 11.44 kB / 0.5915 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1791, allocations: 4 kB / 0.5915 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of Templates: time 0.004526/0.1836, allocations: 1.643 MB / 0.5931 GB, free: 11.04 MB / 0.4981 GB 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)