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.004454/0.004454, allocations: 101.5 kB / 15.73 MB, free: 6.039 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.001101/0.001101, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8026/0.8026, allocations: 135.1 MB / 425.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 61.31 kB / 0.5856 GB, free: 21.69 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1577, allocations: 80.92 MB / 0.6646 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002834/0.1605, allocations: 1.643 MB / 0.6662 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009222/0.1615, allocations: 0.5455 MB / 0.6667 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.339e-05/0.1616, allocations: 4 kB / 0.6668 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.1618, allocations: 23.73 kB / 0.6668 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002979/0.1621, allocations: 59.73 kB / 0.6668 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001481/0.1623, allocations: 71.84 kB / 0.6669 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.1625, allocations: 139.5 kB / 0.667 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.1626, allocations: 45.47 kB / 0.6671 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.1628, allocations: 51.84 kB / 0.6671 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.1629, allocations: 63.69 kB / 0.6672 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.1629, allocations: 8 kB / 0.6672 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.031e-05/0.163, allocations: 27.92 kB / 0.6672 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.887e-05/0.1631, allocations: 51.83 kB / 0.6673 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.887e-05/0.1631, allocations: 51.61 kB / 0.6673 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.1633, allocations: 147.4 kB / 0.6675 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1634, allocations: 0 / 0.6675 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1634, allocations: 0 / 0.6675 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.1634, allocations: 0 / 0.6675 GB, free: 2.984 MB / 0.4981 GB 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.0006535/0.164, allocations: 474.6 kB / 0.6679 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1641, allocations: 9.109 kB / 0.6679 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/0.1641, allocations: 24.75 kB / 0.6679 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.1644, allocations: 232.9 kB / 0.6682 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1645, allocations: 4.375 kB / 0.6682 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.1645, allocations: 12.3 kB / 0.6682 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.1648, allocations: 113.9 kB / 0.6683 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1648, allocations: 0 / 0.6683 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.1648, allocations: 4 kB / 0.6683 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.1648, allocations: 4 kB / 0.6683 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002204/0.165, allocations: 67.92 kB / 0.6684 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005681/0.1656, allocations: 372.5 kB / 0.6687 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.1658, allocations: 46.55 kB / 0.6688 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.873e-05/0.1659, allocations: 24.89 kB / 0.6688 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.1659, allocations: 0 / 0.6688 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.1661, allocations: 108.9 kB / 0.6689 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1661, allocations: 7.938 kB / 0.6689 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004104/0.1665, allocations: 113.4 kB / 0.669 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.1666, allocations: 81.11 kB / 0.6691 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.1669, allocations: 253 kB / 0.6693 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.1669, allocations: 29.7 kB / 0.6694 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.167, allocations: 132 kB / 0.6695 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.167, allocations: 7.906 kB / 0.6695 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/0.167, allocations: 17.72 kB / 0.6695 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1672, allocations: 330.8 kB / 0.6698 GB, free: 344 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.1673, allocations: 23.92 kB / 0.6698 GB, free: 320 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.1674, allocations: 51.41 kB / 0.6699 GB, free: 256 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.1676, allocations: 66.52 kB / 0.67 GB, free: 180 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1676, allocations: 0 / 0.67 GB, free: 180 kB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002651/0.1679, allocations: 105.4 kB / 0.6701 GB, free: 68 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1679, allocations: 4 kB / 0.6701 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1679, allocations: 7.938 kB / 0.6701 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1679, allocations: 3.938 kB / 0.6701 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1681, allocations: 11.98 kB / 0.6701 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1681, allocations: 0 / 0.6701 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.145e-05/0.1682, allocations: 11.98 kB / 0.6701 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.1682, allocations: 4.094 kB / 0.6701 GB, free: 24 kB / 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.0001232/0.1683, allocations: 133.8 kB / 0.6702 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.1683, allocations: 19.72 kB / 0.6702 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.936e-05/0.1684, allocations: 21.23 kB / 0.6703 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1684, allocations: 7.875 kB / 0.6703 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.1684, allocations: 0 / 0.6703 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1684, allocations: 0 / 0.6703 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.1686, allocations: 217.6 kB / 0.6705 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1686, allocations: 0 / 0.6705 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.716e-05/0.1687, allocations: 15.98 kB / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1687, allocations: 0 / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.1687, allocations: 8 kB / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.1687, allocations: 3.938 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1687, allocations: 0 / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.169, allocations: 125.1 kB / 0.6706 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.101e-05/0.169, allocations: 92.92 kB / 0.6707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.1691, allocations: 48 / 0.6707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.918e-05/0.1692, allocations: 15.91 kB / 0.6707 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/0.1692, allocations: 8 kB / 0.6707 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.1692, allocations: 7.984 kB / 0.6707 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001768/0.1694, allocations: 184.5 kB / 0.6709 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1694, allocations: 0 / 0.6709 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002232/0.1697, allocations: 23.94 kB / 0.6709 GB, free: 15.06 MB / 0.5137 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.0002336/0.1699, allocations: 117.9 kB / 0.6711 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002873/0.1702, allocations: 59.88 kB / 0.6711 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1702, allocations: 192 / 0.6711 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1703, allocations: 35.97 kB / 0.6711 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1706, allocations: 32.41 kB / 0.6712 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005275/0.1711, allocations: 283.9 kB / 0.6715 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1714, allocations: 0.7235 MB / 0.6722 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.303e-05/0.1715, allocations: 20.53 kB / 0.6722 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.1716, allocations: 15.44 kB / 0.6722 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of SimCode: time 1.91e-07/0.1716, allocations: 0 / 0.6722 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of Templates: time 0.004598/0.1762, allocations: 1.77 MB / 0.6739 GB, free: 11.98 MB / 0.5137 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)