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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7082/0.7082, allocations: 133.4 MB / 146.7 MB, free: 10.78 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 221.3 MB / 400.4 MB, free: 5.871 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009632/0.0009633, allocations: 95.81 kB / 483.3 MB, free: 5.867 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.287e-05, allocations: 2.094 kB / 0.56 GB, free: 87.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1813, allocations: 82.3 MB / 0.6404 GB, free: 7.844 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6532/0.8346, allocations: 113.2 MB / 0.7509 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.8349, allocations: 83.75 kB / 0.751 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.008739/0.8436, allocations: 3.328 MB / 0.7543 GB, free: 27.69 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8437, allocations: 0 / 0.7543 GB, free: 27.69 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.612e-05/0.8437, allocations: 3.844 kB / 0.7543 GB, free: 27.69 MB / 0.5105 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.000478/0.8442, allocations: 435.1 kB / 0.7547 GB, free: 27.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.8442, allocations: 7.688 kB / 0.7547 GB, free: 27.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.622e-05/0.8443, allocations: 26.22 kB / 0.7547 GB, free: 27.29 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000291/0.8446, allocations: 234.5 kB / 0.7549 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.8446, allocations: 0 / 0.7549 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.8447, allocations: 7.406 kB / 0.755 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.8449, allocations: 83.55 kB / 0.755 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.8449, allocations: 0 / 0.755 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.8449, allocations: 3.625 kB / 0.755 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.8449, allocations: 3.844 kB / 0.755 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.261e-05/0.845, allocations: 34.03 kB / 0.7551 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.8456, allocations: 395.7 kB / 0.7555 GB, free: 26.75 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 4.799e-05/0.8456, allocations: 26.11 kB / 0.7555 GB, free: 26.72 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.921e-05/0.8457, allocations: 15.06 kB / 0.7555 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.8457, allocations: 4 kB / 0.7555 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001249/0.8458, allocations: 78.67 kB / 0.7556 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.8458, allocations: 0 / 0.7556 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001593/0.846, allocations: 67.06 kB / 0.7556 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.8461, allocations: 77.11 kB / 0.7557 GB, free: 26.51 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.8463, allocations: 221.5 kB / 0.7559 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.8463, allocations: 32.14 kB / 0.7559 GB, free: 26.37 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.373e-05/0.8464, allocations: 132.6 kB / 0.7561 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.8464, allocations: 3.906 kB / 0.7561 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.8464, allocations: 3.938 kB / 0.7561 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.8466, allocations: 328.9 kB / 0.7564 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.471e-05/0.8466, allocations: 11.19 kB / 0.7564 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.093e-05/0.8466, allocations: 26.97 kB / 0.7564 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.277e-05/0.8467, allocations: 22.03 kB / 0.7565 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8467, allocations: 0 / 0.7565 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.756e-05/0.8468, allocations: 75.88 kB / 0.7565 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.8468, allocations: 7.766 kB / 0.7565 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.8468, allocations: 3.906 kB / 0.7565 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.8468, allocations: 0 / 0.7565 GB, free: 25.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.847, allocations: 19.94 kB / 0.7566 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.847, allocations: 0 / 0.7566 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.899e-05/0.8471, allocations: 19.55 kB / 0.7566 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.8471, allocations: 3.938 kB / 0.7566 GB, free: 25.86 MB / 0.5105 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/0.8472, allocations: 108.7 kB / 0.7567 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.8472, allocations: 21.55 kB / 0.7567 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.8472, allocations: 30.66 kB / 0.7567 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.8473, allocations: 0 / 0.7567 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.8473, allocations: 0 / 0.7567 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.8473, allocations: 0 / 0.7567 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.8474, allocations: 214 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.8474, allocations: 0 / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.73e-05/0.8475, allocations: 14.17 kB / 0.7569 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.8475, allocations: 2.203 kB / 0.757 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.8475, allocations: 3.562 kB / 0.757 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.8475, allocations: 7.953 kB / 0.757 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8476, allocations: 0 / 0.757 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001108/0.8477, allocations: 91.56 kB / 0.757 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.421e-05/0.8477, allocations: 98.89 kB / 0.7571 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.8478, allocations: 2.578 kB / 0.7571 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.462e-05/0.8479, allocations: 10.11 kB / 0.7572 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/0.8479, allocations: 14.45 kB / 0.7572 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.8479, allocations: 3.844 kB / 0.7572 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001468/0.8481, allocations: 182 kB / 0.7573 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8481, allocations: 0 / 0.7573 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002013/0.8483, allocations: 23.45 kB / 0.7574 GB, free: 25.26 MB / 0.5105 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002464/0.8486, allocations: 133 kB / 0.7575 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.8487, allocations: 30.17 kB / 0.7575 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.8487, allocations: 0 / 0.7575 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.081e-05/0.8487, allocations: 10.81 kB / 0.7575 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.849, allocations: 38.16 kB / 0.7576 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004005/0.8494, allocations: 185.2 kB / 0.7577 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.8497, allocations: 0.7309 MB / 0.7585 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.362e-05/0.8498, allocations: 16.2 kB / 0.7585 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.054e-05/0.8499, allocations: 19.23 kB / 0.7585 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of SimCode: time 3.31e-07/0.8499, allocations: 0 / 0.7585 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of Templates: time 0.004024/0.8539, allocations: 1.611 MB / 0.7601 GB, free: 23.46 MB / 0.5105 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)