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.008312/0.008312, allocations: 172 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7425/0.7425, allocations: 135.2 MB / 151.1 MB, free: 13.8 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.549/1.549, allocations: 223.2 MB / 406.9 MB, free: 3.211 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009334/0.0009332, allocations: 96.02 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003182/0.0003182, allocations: 8 kB / 0.5691 GB, free: 14.17 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4363/0.4367, allocations: 82.3 MB / 0.6495 GB, free: 36.16 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2026/0.6393, allocations: 113.3 MB / 0.7601 GB, free: 2.75 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.6396, allocations: 79.95 kB / 0.7601 GB, free: 2.672 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009972/0.6496, allocations: 3.336 MB / 0.7634 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.395e-06/0.6496, allocations: 0 / 0.7634 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.499e-05/0.6497, allocations: 4 kB / 0.7634 GB, free: 15.32 MB / 0.5417 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.0006159/0.6503, allocations: 466.6 kB / 0.7639 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.6503, allocations: 8.031 kB / 0.7639 GB, free: 14.81 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.6504, allocations: 15.81 kB / 0.7639 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.6507, allocations: 243.5 kB / 0.7641 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.6508, allocations: 4 kB / 0.7641 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.6508, allocations: 4 kB / 0.7641 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.6511, allocations: 113.6 kB / 0.7642 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.6511, allocations: 0 / 0.7642 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.6511, allocations: 0 / 0.7642 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.6511, allocations: 4 kB / 0.7642 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.6514, allocations: 83.88 kB / 0.7643 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006998/0.6521, allocations: 392.4 kB / 0.7647 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001563/0.6523, allocations: 46.55 kB / 0.7647 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.6523, allocations: 0 / 0.7647 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.6525, allocations: 114.2 kB / 0.7648 GB, free: 13.69 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.6525, allocations: 0 / 0.7648 GB, free: 13.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004541/0.653, allocations: 141.4 kB / 0.765 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.6531, allocations: 85.09 kB / 0.7651 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.6533, allocations: 216.2 kB / 0.7653 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.6534, allocations: 33.7 kB / 0.7653 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.063e-05/0.6535, allocations: 128 kB / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.6535, allocations: 7.844 kB / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.6535, allocations: 0 / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.6537, allocations: 326.8 kB / 0.7657 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.6538, allocations: 31.97 kB / 0.7658 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.6539, allocations: 59.41 kB / 0.7658 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.654, allocations: 39.94 kB / 0.7659 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.6541, allocations: 0 / 0.7659 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002787/0.6543, allocations: 117.4 kB / 0.766 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.6544, allocations: 4 kB / 0.766 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.6544, allocations: 3.953 kB / 0.766 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.6544, allocations: 7.938 kB / 0.766 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.6545, allocations: 19.98 kB / 0.766 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.6546, allocations: 0 / 0.766 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.497e-05/0.6547, allocations: 23.95 kB / 0.766 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.6547, allocations: 0 / 0.766 GB, free: 12.4 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.6548, allocations: 126.1 kB / 0.7661 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.6548, allocations: 15.81 kB / 0.7662 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.338e-05/0.6549, allocations: 25.22 kB / 0.7662 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.6549, allocations: 3.953 kB / 0.7662 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.6549, allocations: 0 / 0.7662 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.6549, allocations: 4 kB / 0.7662 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.6551, allocations: 221.6 kB / 0.7664 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.6551, allocations: 0 / 0.7664 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.516e-05/0.6552, allocations: 15.98 kB / 0.7664 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.6552, allocations: 0 / 0.7664 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.6552, allocations: 0 / 0.7664 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.6552, allocations: 0 / 0.7664 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6552, allocations: 7.891 kB / 0.7664 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000305/0.6556, allocations: 136.9 kB / 0.7666 GB, free: 11.78 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.857e-05/0.6556, allocations: 96.91 kB / 0.7667 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.6557, allocations: 0 / 0.7667 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.62e-05/0.6558, allocations: 27.98 kB / 0.7667 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.6558, allocations: 7.938 kB / 0.7667 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.6559, allocations: 4 kB / 0.7667 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001649/0.656, allocations: 180.5 kB / 0.7669 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/0.656, allocations: 3.938 kB / 0.7669 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002053/0.6563, allocations: 31.84 kB / 0.7669 GB, free: 11.42 MB / 0.5417 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 (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.000231/0.6565, allocations: 113.8 kB / 0.767 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003012/0.6568, allocations: 79.94 kB / 0.7671 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.6568, allocations: 0 / 0.7671 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.6569, allocations: 35.97 kB / 0.7671 GB, free: 11.19 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.6572, allocations: 28.41 kB / 0.7671 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005564/0.6578, allocations: 330.4 kB / 0.7675 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.6581, allocations: 0.7199 MB / 0.7682 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.233e-05/0.6582, allocations: 20.66 kB / 0.7682 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.119e-05/0.6582, allocations: 19.44 kB / 0.7682 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of SimCode: time 3.6e-07/0.6582, allocations: 0 / 0.7682 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of Templates: time 0.004297/0.6625, allocations: 1.603 MB / 0.7698 GB, free: 8.445 MB / 0.5417 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)