Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.006943/0.006943, allocations: 101 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.001445/0.001445, allocations: 195.5 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7778/0.7778, allocations: 132.2 MB / 422.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 64.7 kB / 0.5813 GB, free: 23.69 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1557, allocations: 80.21 MB / 0.6597 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002736/0.1585, allocations: 1.627 MB / 0.6612 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008213/0.1594, allocations: 0.5416 MB / 0.6618 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.311e-05/0.1594, allocations: 7.938 kB / 0.6618 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1596, allocations: 31.78 kB / 0.6618 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.1598, allocations: 66.3 kB / 0.6619 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001456/0.16, allocations: 67.84 kB / 0.6619 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.1602, allocations: 131.5 kB / 0.6621 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.1603, allocations: 53.41 kB / 0.6621 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1604, allocations: 55.77 kB / 0.6622 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.1605, allocations: 59.7 kB / 0.6622 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.1606, allocations: 8 kB / 0.6622 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.22e-05/0.1606, allocations: 27.97 kB / 0.6623 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.926e-05/0.1607, allocations: 39.84 kB / 0.6623 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.885e-05/0.1608, allocations: 59.59 kB / 0.6624 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.161, allocations: 159.3 kB / 0.6625 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.161, allocations: 0 / 0.6625 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.252e-06/0.161, allocations: 0 / 0.6625 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.161, allocations: 0 / 0.6625 GB, free: 7.352 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.0005698/0.1616, allocations: 470.7 kB / 0.663 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.877e-05/0.1616, allocations: 8.031 kB / 0.663 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.377e-05/0.1617, allocations: 16.75 kB / 0.663 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.162, allocations: 244.8 kB / 0.6632 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.162, allocations: 4.375 kB / 0.6632 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.162, allocations: 8.375 kB / 0.6632 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.1623, allocations: 106 kB / 0.6633 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1623, allocations: 0 / 0.6633 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.1623, allocations: 7.938 kB / 0.6633 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.1623, allocations: 0 / 0.6633 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.1625, allocations: 67.88 kB / 0.6634 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005177/0.163, allocations: 380.5 kB / 0.6638 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.1632, allocations: 46.48 kB / 0.6638 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.956e-05/0.1633, allocations: 32.89 kB / 0.6638 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.1633, allocations: 0 / 0.6638 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.1635, allocations: 93.08 kB / 0.6639 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.1635, allocations: 0 / 0.6639 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003871/0.1639, allocations: 129.3 kB / 0.664 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.164, allocations: 77.11 kB / 0.6641 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.1642, allocations: 253 kB / 0.6644 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1642, allocations: 25.7 kB / 0.6644 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.07e-05/0.1643, allocations: 136 kB / 0.6645 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.508e-05/0.1643, allocations: 7.906 kB / 0.6645 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.1644, allocations: 13.72 kB / 0.6645 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.1645, allocations: 334.8 kB / 0.6649 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.901e-05/0.1646, allocations: 19.98 kB / 0.6649 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.1647, allocations: 47.41 kB / 0.6649 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.1649, allocations: 74.48 kB / 0.665 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.1649, allocations: 0 / 0.665 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000245/0.1651, allocations: 105.4 kB / 0.6651 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.1652, allocations: 8.094 kB / 0.6651 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1652, allocations: 3.938 kB / 0.6651 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1652, allocations: 7.938 kB / 0.6651 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.779e-05/0.1653, allocations: 7.984 kB / 0.6651 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1653, allocations: 4 kB / 0.6651 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.804e-05/0.1654, allocations: 11.98 kB / 0.6651 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.1654, allocations: 0 / 0.6651 GB, free: 4.395 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 9.326e-05/0.1655, allocations: 141.6 kB / 0.6653 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.1655, allocations: 23.72 kB / 0.6653 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.081e-05/0.1656, allocations: 17.23 kB / 0.6653 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1656, allocations: 4.219 kB / 0.6653 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1656, allocations: 0 / 0.6653 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1656, allocations: 3.938 kB / 0.6653 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.1657, allocations: 221.6 kB / 0.6655 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1658, allocations: 0 / 0.6655 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.582e-05/0.1658, allocations: 11.98 kB / 0.6655 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1658, allocations: 0 / 0.6655 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.864e-06/0.1659, allocations: 0 / 0.6655 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1659, allocations: 7.938 kB / 0.6655 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1659, allocations: 0 / 0.6655 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002586/0.1661, allocations: 124.9 kB / 0.6657 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-05/0.1662, allocations: 88.92 kB / 0.6657 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.1662, allocations: 4 kB / 0.6658 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.042e-05/0.1663, allocations: 15.92 kB / 0.6658 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.1663, allocations: 7.938 kB / 0.6658 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.1664, allocations: 11.98 kB / 0.6658 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001527/0.1665, allocations: 180.5 kB / 0.666 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1665, allocations: 4 kB / 0.666 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002113/0.1668, allocations: 19.98 kB / 0.666 GB, free: 3.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.0001982/0.167, allocations: 122.3 kB / 0.6661 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002587/0.1672, allocations: 51.94 kB / 0.6661 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1672, allocations: 0 / 0.6661 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1673, allocations: 32.09 kB / 0.6662 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.1676, allocations: 53.77 kB / 0.6662 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000459/0.1681, allocations: 276 kB / 0.6665 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.1684, allocations: 0.7158 MB / 0.6672 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.993e-05/0.1684, allocations: 16.55 kB / 0.6672 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.1685, allocations: 19.44 kB / 0.6672 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1685, allocations: 0 / 0.6672 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of Templates: time 0.004425/0.1729, allocations: 1.768 MB / 0.669 GB, free: 364 kB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)