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.001308/0.001308, 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.001405/0.001405, allocations: 191.7 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.331/1.331, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9308/0.9308, allocations: 135.6 MB / 425.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 73.8 kB / 0.5054 GB, free: 5.195 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1594, allocations: 81.02 MB / 0.5845 GB, free: 4.312 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003204/0.1627, allocations: 1.691 MB / 0.5861 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008879/0.1636, allocations: 0.53 MB / 0.5867 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.1637, allocations: 4 kB / 0.5867 GB, free: 2.066 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.1639, allocations: 23.86 kB / 0.5867 GB, free: 2.043 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.1641, allocations: 65.69 kB / 0.5868 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001458/0.1643, allocations: 55.94 kB / 0.5868 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001846/0.1645, allocations: 123.6 kB / 0.5869 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.1646, allocations: 57.44 kB / 0.587 GB, free: 1.742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.1648, allocations: 55.72 kB / 0.587 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.1649, allocations: 67.69 kB / 0.5871 GB, free: 1.621 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.1649, allocations: 8 kB / 0.5871 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.792e-05/0.165, allocations: 23.94 kB / 0.5871 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.909e-05/0.1651, allocations: 51.83 kB / 0.5872 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.1652, allocations: 55.61 kB / 0.5872 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.1654, allocations: 143.7 kB / 0.5874 GB, free: 1.344 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1654, allocations: 0 / 0.5874 GB, free: 1.344 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1654, allocations: 0 / 0.5874 GB, free: 1.344 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.1654, allocations: 0 / 0.5874 GB, free: 1.344 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.0006441/0.1661, allocations: 462.6 kB / 0.5878 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1661, allocations: 12.03 kB / 0.5878 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.789e-05/0.1662, allocations: 24.59 kB / 0.5878 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.1665, allocations: 233 kB / 0.5881 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.1665, allocations: 8.312 kB / 0.5881 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.122e-05/0.1665, allocations: 8.375 kB / 0.5881 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.1668, allocations: 109.9 kB / 0.5882 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.1668, allocations: 0 / 0.5882 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.1669, allocations: 4 kB / 0.5882 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1669, allocations: 0 / 0.5882 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.1671, allocations: 67.94 kB / 0.5883 GB, free: 352 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006327/0.1677, allocations: 384.4 kB / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.1679, allocations: 38.55 kB / 0.5887 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.168, allocations: 36.89 kB / 0.5887 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.168, allocations: 0 / 0.5887 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003072/0.1683, allocations: 97.02 kB / 0.5888 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1684, allocations: 0 / 0.5888 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004347/0.1688, allocations: 125.4 kB / 0.5889 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.1689, allocations: 77.11 kB / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002824/0.1692, allocations: 256.9 kB / 0.5892 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.1692, allocations: 25.7 kB / 0.5892 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.1693, allocations: 128 kB / 0.5894 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.1693, allocations: 11.91 kB / 0.5894 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.1694, allocations: 21.66 kB / 0.5894 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.1695, allocations: 326.8 kB / 0.5897 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.1697, allocations: 23.97 kB / 0.5897 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.1698, allocations: 47.41 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.17, allocations: 70.55 kB / 0.5899 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.17, allocations: 3.938 kB / 0.5899 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002642/0.1703, allocations: 105.4 kB / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1703, allocations: 7.984 kB / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1703, allocations: 0 / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1703, allocations: 3.938 kB / 0.59 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.1705, allocations: 15.98 kB / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1705, allocations: 4 kB / 0.59 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.945e-05/0.1706, allocations: 15.83 kB / 0.59 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1706, allocations: 8 kB / 0.59 GB, free: 14.38 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.0001207/0.1707, allocations: 125.9 kB / 0.5901 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.1708, allocations: 23.81 kB / 0.5902 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.1708, allocations: 13.25 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1708, allocations: 3.938 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.1708, allocations: 0 / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1708, allocations: 3.984 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.171, allocations: 217.6 kB / 0.5904 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1711, allocations: 0 / 0.5904 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.79e-05/0.1711, allocations: 11.98 kB / 0.5904 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1712, allocations: 0 / 0.5904 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.1712, allocations: 4 kB / 0.5904 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1712, allocations: 3.938 kB / 0.5904 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1712, allocations: 0 / 0.5904 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.1715, allocations: 121.1 kB / 0.5905 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.519e-05/0.1715, allocations: 100.9 kB / 0.5906 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.1716, allocations: 4 kB / 0.5906 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.322e-05/0.1717, allocations: 19.92 kB / 0.5906 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.1717, allocations: 0 / 0.5906 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.1717, allocations: 8 kB / 0.5906 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001806/0.1719, allocations: 188.5 kB / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1719, allocations: 0 / 0.5908 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002084/0.1722, allocations: 23.91 kB / 0.5908 GB, free: 13.43 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.0002335/0.1724, allocations: 117 kB / 0.591 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.1727, allocations: 63.81 kB / 0.591 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1727, allocations: 0 / 0.591 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.1728, allocations: 32.16 kB / 0.591 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.1731, allocations: 48.33 kB / 0.5911 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005529/0.1737, allocations: 328.2 kB / 0.5914 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.1741, allocations: 0.7158 MB / 0.5921 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.617e-05/0.1742, allocations: 16.55 kB / 0.5921 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.1742, allocations: 15.44 kB / 0.5921 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1742, allocations: 0 / 0.5921 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of Templates: time 0.00487/0.1791, allocations: 1.653 MB / 0.5937 GB, free: 10.43 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)