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.001061/0.001061, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0012/0.0012, allocations: 193.3 kB / 16.14 MB, free: 6.719 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.324/1.324, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9432/0.9432, allocations: 135.2 MB / 425.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 60.72 kB / 0.5047 GB, free: 5.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1585, allocations: 80.92 MB / 0.5837 GB, free: 5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003456/0.162, allocations: 1.697 MB / 0.5854 GB, free: 3.289 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1631, allocations: 0.53 MB / 0.5859 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.1632, allocations: 4 kB / 0.5859 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.1635, allocations: 27.86 kB / 0.5859 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.1637, allocations: 59.23 kB / 0.586 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.1639, allocations: 55.94 kB / 0.586 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.1641, allocations: 131.5 kB / 0.5861 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.1642, allocations: 45.47 kB / 0.5862 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.1644, allocations: 47.78 kB / 0.5862 GB, free: 2.387 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.1645, allocations: 63.69 kB / 0.5863 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.1645, allocations: 4 kB / 0.5863 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.844e-05/0.1646, allocations: 27.98 kB / 0.5863 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.578e-05/0.1647, allocations: 43.83 kB / 0.5864 GB, free: 2.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.203e-05/0.1648, allocations: 51.61 kB / 0.5864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001879/0.165, allocations: 139.7 kB / 0.5865 GB, free: 2.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.165, allocations: 4 kB / 0.5866 GB, free: 2.059 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.165, allocations: 0 / 0.5866 GB, free: 2.059 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.165, allocations: 0 / 0.5866 GB, free: 2.059 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.0006147/0.1656, allocations: 468.7 kB / 0.587 GB, free: 1.555 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1656, allocations: 15.97 kB / 0.587 GB, free: 1.539 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.1657, allocations: 20.66 kB / 0.587 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.166, allocations: 228.9 kB / 0.5873 GB, free: 1.258 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.166, allocations: 8.375 kB / 0.5873 GB, free: 1.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.166, allocations: 8.375 kB / 0.5873 GB, free: 1.242 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/0.1663, allocations: 117.9 kB / 0.5874 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.1663, allocations: 0 / 0.5874 GB, free: 1.121 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.1663, allocations: 4 kB / 0.5874 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.1663, allocations: 0 / 0.5874 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.1666, allocations: 63.94 kB / 0.5874 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.1671, allocations: 384.4 kB / 0.5878 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.1673, allocations: 38.55 kB / 0.5878 GB, free: 0.582 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1674, allocations: 28.89 kB / 0.5879 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.1674, allocations: 7.938 kB / 0.5879 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.1677, allocations: 93.09 kB / 0.588 GB, free: 444 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.1677, allocations: 3.938 kB / 0.588 GB, free: 440 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004183/0.1681, allocations: 125.4 kB / 0.5881 GB, free: 308 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.1682, allocations: 77.11 kB / 0.5882 GB, free: 212 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.1685, allocations: 260.9 kB / 0.5884 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1685, allocations: 25.7 kB / 0.5884 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.071e-05/0.1686, allocations: 128 kB / 0.5886 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.1686, allocations: 11.89 kB / 0.5886 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.1687, allocations: 17.72 kB / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1688, allocations: 326.8 kB / 0.5889 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1689, allocations: 23.97 kB / 0.5889 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.169, allocations: 51.41 kB / 0.589 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.1692, allocations: 66.5 kB / 0.589 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1693, allocations: 0 / 0.589 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002804/0.1695, allocations: 105.4 kB / 0.5891 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1696, allocations: 4 kB / 0.5891 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1696, allocations: 96 / 0.5891 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1696, allocations: 7.938 kB / 0.5892 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1697, allocations: 11.98 kB / 0.5892 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1697, allocations: 7.984 kB / 0.5892 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.159e-05/0.1698, allocations: 7.906 kB / 0.5892 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.1698, allocations: 7.984 kB / 0.5892 GB, free: 15.1 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.0001115/0.17, allocations: 121.8 kB / 0.5893 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.17, allocations: 23.8 kB / 0.5893 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.47e-05/0.17, allocations: 17.25 kB / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.17, allocations: 3.938 kB / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1701, allocations: 0 / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1701, allocations: 288 / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.1702, allocations: 229.5 kB / 0.5896 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1703, allocations: 0 / 0.5896 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.778e-05/0.1703, allocations: 11.98 kB / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1704, allocations: 3.984 kB / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1704, allocations: 3.938 kB / 0.5896 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1704, allocations: 3.938 kB / 0.5896 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1704, allocations: 0 / 0.5896 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.1707, allocations: 120.9 kB / 0.5897 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.597e-05/0.1708, allocations: 100.8 kB / 0.5898 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.1708, allocations: 0 / 0.5898 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.447e-05/0.1709, allocations: 19.92 kB / 0.5898 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.171, allocations: 4 kB / 0.5898 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.171, allocations: 8 kB / 0.5898 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001815/0.1712, allocations: 184.5 kB / 0.59 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 0 / 0.59 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002457/0.1714, allocations: 27.91 kB / 0.59 GB, free: 14.14 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.0002002/0.1716, allocations: 111.2 kB / 0.5901 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.1719, allocations: 59.88 kB / 0.5902 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1719, allocations: 0 / 0.5902 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.172, allocations: 27.97 kB / 0.5902 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.1724, allocations: 41.38 kB / 0.5903 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005131/0.1729, allocations: 322 kB / 0.5906 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.1732, allocations: 0.7238 MB / 0.5913 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.765e-05/0.1733, allocations: 12.55 kB / 0.5913 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.759e-05/0.1733, allocations: 15.44 kB / 0.5913 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1733, allocations: 3.938 kB / 0.5913 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of Templates: time 0.0045/0.1778, allocations: 1.609 MB / 0.5929 GB, free: 11.19 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)