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.0009468/0.0009468, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007123/0.007123, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.366/1.366, allocations: 223.2 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9224/0.9224, allocations: 135.3 MB / 426.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003637, allocations: 8.234 kB / 0.5076 GB, free: 4.785 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1607, allocations: 82.31 MB / 0.588 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00191/0.1626, allocations: 1.347 MB / 0.5893 GB, free: 1.281 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000882/0.1635, allocations: 0.5223 MB / 0.5898 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.153e-05/0.1636, allocations: 4 kB / 0.5898 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.1638, allocations: 23.86 kB / 0.5898 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.1641, allocations: 59.73 kB / 0.5899 GB, free: 0.668 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001704/0.1642, allocations: 55.94 kB / 0.5899 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001825/0.1644, allocations: 131.5 kB / 0.5901 GB, free: 496 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1646, allocations: 49.41 kB / 0.5901 GB, free: 440 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.1647, allocations: 39.78 kB / 0.5901 GB, free: 400 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.1649, allocations: 59.69 kB / 0.5902 GB, free: 340 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.1649, allocations: 4 kB / 0.5902 GB, free: 336 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.422e-05/0.1649, allocations: 12 kB / 0.5902 GB, free: 324 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.392e-05/0.165, allocations: 39.83 kB / 0.5903 GB, free: 284 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.1651, allocations: 77.31 kB / 0.5903 GB, free: 200 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001837/0.1653, allocations: 135.6 kB / 0.5905 GB, free: 64 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1653, allocations: 0 / 0.5905 GB, free: 64 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1653, allocations: 0 / 0.5905 GB, free: 64 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1653, allocations: 4 kB / 0.5905 GB, free: 60 kB / 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.0006376/0.166, allocations: 454.7 kB / 0.5909 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.166, allocations: 8.031 kB / 0.5909 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.188e-05/0.1661, allocations: 16.75 kB / 0.5909 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.1663, allocations: 236.8 kB / 0.5911 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1663, allocations: 8.375 kB / 0.5911 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.1664, allocations: 4.375 kB / 0.5912 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.1667, allocations: 124.8 kB / 0.5913 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1667, allocations: 3.984 kB / 0.5913 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1667, allocations: 0 / 0.5913 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1667, allocations: 0 / 0.5913 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002567/0.167, allocations: 83.94 kB / 0.5914 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.1676, allocations: 384.5 kB / 0.5917 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.1678, allocations: 50.55 kB / 0.5918 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1679, allocations: 32.91 kB / 0.5918 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.1679, allocations: 3.938 kB / 0.5918 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.1682, allocations: 109.1 kB / 0.5919 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.1682, allocations: 3.938 kB / 0.5919 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004904/0.1687, allocations: 149.4 kB / 0.5921 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.1688, allocations: 81.11 kB / 0.5921 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.1691, allocations: 257 kB / 0.5924 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.1691, allocations: 29.69 kB / 0.5924 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.505e-05/0.1692, allocations: 128 kB / 0.5925 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.1692, allocations: 3.906 kB / 0.5925 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.1692, allocations: 25.66 kB / 0.5926 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1694, allocations: 326.8 kB / 0.5929 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1695, allocations: 27.98 kB / 0.5929 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.1697, allocations: 55.41 kB / 0.5929 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.1699, allocations: 90.48 kB / 0.593 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.17, allocations: 0 / 0.593 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003242/0.1703, allocations: 121.4 kB / 0.5932 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1703, allocations: 4 kB / 0.5932 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1703, allocations: 0 / 0.5932 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1703, allocations: 3.938 kB / 0.5932 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1705, allocations: 15.98 kB / 0.5932 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1705, allocations: 4 kB / 0.5932 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.394e-05/0.1706, allocations: 16.05 kB / 0.5932 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.1706, allocations: 4 kB / 0.5932 GB, free: 12.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.00012/0.1707, allocations: 125.8 kB / 0.5933 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.1708, allocations: 15.81 kB / 0.5933 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.809e-05/0.1708, allocations: 21.23 kB / 0.5934 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1708, allocations: 3.938 kB / 0.5934 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.1708, allocations: 4 kB / 0.5934 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.1708, allocations: 4 kB / 0.5934 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.171, allocations: 217.5 kB / 0.5936 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.171, allocations: 0 / 0.5936 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.571e-05/0.1711, allocations: 11.98 kB / 0.5936 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1711, allocations: 4 kB / 0.5936 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.1711, allocations: 3.938 kB / 0.5936 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1711, allocations: 3.938 kB / 0.5936 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1712, allocations: 0 / 0.5936 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.1715, allocations: 140.9 kB / 0.5937 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.664e-05/0.1716, allocations: 92.86 kB / 0.5938 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.1716, allocations: 15.98 kB / 0.5938 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.1717, allocations: 15.92 kB / 0.5938 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.1718, allocations: 4 kB / 0.5939 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/0.1718, allocations: 4 kB / 0.5939 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001848/0.172, allocations: 192.5 kB / 0.594 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.172, allocations: 0 / 0.594 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002336/0.1722, allocations: 19.94 kB / 0.5941 GB, free: 12.01 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.0002403/0.1725, allocations: 120 kB / 0.5942 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000301/0.1728, allocations: 75.88 kB / 0.5942 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1728, allocations: 0 / 0.5942 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.1729, allocations: 35.97 kB / 0.5943 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.1733, allocations: 43.02 kB / 0.5943 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005351/0.1738, allocations: 334 kB / 0.5946 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1741, allocations: 0.7199 MB / 0.5953 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.174e-05/0.1742, allocations: 20.53 kB / 0.5954 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.1743, allocations: 11.44 kB / 0.5954 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1743, allocations: 4 kB / 0.5954 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of Templates: time 0.004575/0.1788, allocations: 1.586 MB / 0.5969 GB, free: 9.051 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)