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.001368/0.001368, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00113/0.001131, allocations: 195.2 kB / 16.26 MB, free: 6.621 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.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7287/0.7287, allocations: 132.2 MB / 422.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 60.09 kB / 0.5013 GB, free: 9.098 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1512, allocations: 80.22 MB / 0.5796 GB, free: 9.105 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00311/0.1543, allocations: 1.689 MB / 0.5813 GB, free: 7.406 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008541/0.1552, allocations: 0.5378 MB / 0.5818 GB, free: 6.863 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.961e-05/0.1553, allocations: 4 kB / 0.5818 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.1555, allocations: 23.84 kB / 0.5818 GB, free: 6.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002265/0.1557, allocations: 55.77 kB / 0.5819 GB, free: 6.781 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.1559, allocations: 51.94 kB / 0.5819 GB, free: 6.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.1562, allocations: 143.5 kB / 0.5821 GB, free: 6.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.1563, allocations: 45.47 kB / 0.5821 GB, free: 6.539 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.1564, allocations: 59.72 kB / 0.5822 GB, free: 6.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.1566, allocations: 63.69 kB / 0.5822 GB, free: 6.418 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.1566, allocations: 11.94 kB / 0.5822 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.77e-05/0.1567, allocations: 24 kB / 0.5822 GB, free: 6.383 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-05/0.1568, allocations: 43.83 kB / 0.5823 GB, free: 6.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.574e-05/0.1569, allocations: 55.61 kB / 0.5823 GB, free: 6.285 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.1571, allocations: 147.7 kB / 0.5825 GB, free: 6.141 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1571, allocations: 0 / 0.5825 GB, free: 6.141 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1571, allocations: 0 / 0.5825 GB, free: 6.141 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1572, allocations: 4 kB / 0.5825 GB, free: 6.137 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.0006754/0.1578, allocations: 466.6 kB / 0.5829 GB, free: 5.633 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1579, allocations: 8.031 kB / 0.5829 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.158, allocations: 20.66 kB / 0.583 GB, free: 5.605 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.1582, allocations: 237.5 kB / 0.5832 GB, free: 5.336 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.268e-06/0.1583, allocations: 4.375 kB / 0.5832 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.1583, allocations: 4.375 kB / 0.5832 GB, free: 5.328 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.1586, allocations: 114 kB / 0.5833 GB, free: 5.211 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1586, allocations: 0 / 0.5833 GB, free: 5.211 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.1586, allocations: 4 kB / 0.5833 GB, free: 5.207 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1586, allocations: 4 kB / 0.5833 GB, free: 5.203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.1589, allocations: 59.94 kB / 0.5834 GB, free: 5.145 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.1595, allocations: 388.4 kB / 0.5837 GB, free: 4.715 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.1596, allocations: 34.56 kB / 0.5838 GB, free: 4.672 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1597, allocations: 36.83 kB / 0.5838 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.1598, allocations: 0 / 0.5838 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003087/0.1601, allocations: 97.08 kB / 0.5839 GB, free: 4.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1601, allocations: 0 / 0.5839 GB, free: 4.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004468/0.1605, allocations: 121.4 kB / 0.584 GB, free: 4.395 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.1606, allocations: 89.03 kB / 0.5841 GB, free: 4.289 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.1609, allocations: 252.9 kB / 0.5843 GB, free: 4.035 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1609, allocations: 29.7 kB / 0.5844 GB, free: 4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.984e-05/0.161, allocations: 128 kB / 0.5845 GB, free: 3.871 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.161, allocations: 7.891 kB / 0.5845 GB, free: 3.863 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/0.161, allocations: 17.72 kB / 0.5845 GB, free: 3.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1612, allocations: 326.8 kB / 0.5848 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.1613, allocations: 27.98 kB / 0.5849 GB, free: 3.484 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1614, allocations: 47.59 kB / 0.5849 GB, free: 3.426 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.1616, allocations: 74.48 kB / 0.585 GB, free: 3.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1616, allocations: 0 / 0.585 GB, free: 3.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002701/0.1619, allocations: 105.3 kB / 0.5851 GB, free: 3.234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.1619, allocations: 8 kB / 0.5851 GB, free: 3.227 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.162, allocations: 3.984 kB / 0.5851 GB, free: 3.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.162, allocations: 4.031 kB / 0.5851 GB, free: 3.219 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.1621, allocations: 20.06 kB / 0.5851 GB, free: 3.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1621, allocations: 7.938 kB / 0.5851 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.849e-05/0.1622, allocations: 15.89 kB / 0.5851 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1622, allocations: 4 kB / 0.5851 GB, free: 3.172 MB / 494.1 MB 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.0001138/0.1623, allocations: 129.8 kB / 0.5853 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.1624, allocations: 15.81 kB / 0.5853 GB, free: 3.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.1624, allocations: 21.23 kB / 0.5853 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1624, allocations: 3.938 kB / 0.5853 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1624, allocations: 4 kB / 0.5853 GB, free: 2.988 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1624, allocations: 0 / 0.5853 GB, free: 2.988 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.1627, allocations: 213.6 kB / 0.5855 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1627, allocations: 0 / 0.5855 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.388e-05/0.1628, allocations: 15.92 kB / 0.5855 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1628, allocations: 0 / 0.5855 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.884e-06/0.1628, allocations: 0 / 0.5855 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.1628, allocations: 3.938 kB / 0.5855 GB, free: 2.711 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1628, allocations: 0 / 0.5855 GB, free: 2.711 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003476/0.1631, allocations: 128.9 kB / 0.5856 GB, free: 2.566 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.1632, allocations: 92.86 kB / 0.5857 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.1632, allocations: 0 / 0.5857 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.39e-05/0.1633, allocations: 15.92 kB / 0.5857 GB, free: 2.441 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.1634, allocations: 4 kB / 0.5858 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.1634, allocations: 7.984 kB / 0.5858 GB, free: 2.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.1636, allocations: 188.5 kB / 0.5859 GB, free: 2.242 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1636, allocations: 0 / 0.5859 GB, free: 2.242 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1638, allocations: 27.89 kB / 0.586 GB, free: 2.215 MB / 494.1 MB 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.0002205/0.1641, allocations: 107 kB / 0.5861 GB, free: 2.102 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.1644, allocations: 63.88 kB / 0.5861 GB, free: 2.039 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1644, allocations: 7.938 kB / 0.5861 GB, free: 2.031 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.1645, allocations: 23.97 kB / 0.5862 GB, free: 2.008 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.1648, allocations: 41.91 kB / 0.5862 GB, free: 1.973 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000521/0.1653, allocations: 324.3 kB / 0.5865 GB, free: 1.629 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.1657, allocations: 0.7276 MB / 0.5872 GB, free: 0.875 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.268e-05/0.1657, allocations: 12.55 kB / 0.5872 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.1658, allocations: 23.42 kB / 0.5873 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1658, allocations: 0 / 0.5873 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of Templates: time 0.004682/0.1705, allocations: 1.651 MB / 0.5889 GB, free: 15.22 MB / 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)