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.0008796/0.0008797, allocations: 98.92 kB / 15.05 MB, free: 1.105 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.0009575/0.000958, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.855/0.855, allocations: 135.2 MB / 426.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003036, allocations: 8 kB / 0.5068 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1417, allocations: 82.31 MB / 0.5872 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002145/0.1438, allocations: 1.315 MB / 0.5885 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008111/0.1447, allocations: 0.4914 MB / 0.589 GB, free: 1.293 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.566e-05/0.1448, allocations: 0 / 0.589 GB, free: 1.293 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001547/0.1449, allocations: 27.78 kB / 0.589 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.1452, allocations: 59.84 kB / 0.589 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001458/0.1453, allocations: 51.94 kB / 0.5891 GB, free: 1.156 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.1455, allocations: 91.75 kB / 0.5892 GB, free: 1.066 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.1457, allocations: 49.41 kB / 0.5892 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.1458, allocations: 39.83 kB / 0.5893 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.469e-05/0.1459, allocations: 43.78 kB / 0.5893 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.1459, allocations: 4 kB / 0.5893 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.356e-05/0.146, allocations: 19.86 kB / 0.5893 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/0.146, allocations: 35.91 kB / 0.5894 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.83e-05/0.1461, allocations: 41.64 kB / 0.5894 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.1462, allocations: 112 kB / 0.5895 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.1462, allocations: 0 / 0.5895 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1462, allocations: 0 / 0.5895 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1462, allocations: 0 / 0.5895 GB, free: 0.7148 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.0005667/0.1468, allocations: 458.5 kB / 0.5899 GB, free: 224 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.1469, allocations: 8.031 kB / 0.59 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.1469, allocations: 15.81 kB / 0.59 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.1472, allocations: 235.6 kB / 0.5902 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.1472, allocations: 0 / 0.5902 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.1472, allocations: 8 kB / 0.5902 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.1475, allocations: 105.6 kB / 0.5903 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.1475, allocations: 8 kB / 0.5903 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1475, allocations: 0 / 0.5903 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1476, allocations: 3.984 kB / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.1478, allocations: 79.94 kB / 0.5904 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005423/0.1483, allocations: 388.4 kB / 0.5908 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.1485, allocations: 46.56 kB / 0.5908 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.1485, allocations: 3.984 kB / 0.5908 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.1488, allocations: 109 kB / 0.5909 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1488, allocations: 3.938 kB / 0.5909 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004163/0.1492, allocations: 145.6 kB / 0.5911 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.1492, allocations: 77.11 kB / 0.5911 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.1495, allocations: 253 kB / 0.5914 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.1495, allocations: 25.7 kB / 0.5914 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.1496, allocations: 135.9 kB / 0.5915 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.1496, allocations: 3.906 kB / 0.5915 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.1496, allocations: 0 / 0.5915 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.1497, allocations: 338.8 kB / 0.5918 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.1498, allocations: 27.98 kB / 0.5919 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.15, allocations: 59.39 kB / 0.5919 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.1501, allocations: 31.97 kB / 0.592 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1501, allocations: 0 / 0.592 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002603/0.1503, allocations: 117.4 kB / 0.5921 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.1504, allocations: 4 kB / 0.5921 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1504, allocations: 12.05 kB / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.457e-06/0.1504, allocations: 0 / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1505, allocations: 19.98 kB / 0.5921 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1505, allocations: 0 / 0.5921 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.6e-05/0.1506, allocations: 23.89 kB / 0.5921 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.1506, allocations: 3.938 kB / 0.5921 GB, free: 13.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.71e-05/0.1507, allocations: 133.8 kB / 0.5923 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.1508, allocations: 15.81 kB / 0.5923 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.1508, allocations: 21.23 kB / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1508, allocations: 3.953 kB / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1508, allocations: 4 kB / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1508, allocations: 0 / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.151, allocations: 213.6 kB / 0.5925 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.151, allocations: 0 / 0.5925 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.849e-05/0.1511, allocations: 15.98 kB / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1511, allocations: 4 kB / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.1511, allocations: 0 / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.1511, allocations: 3.984 kB / 0.5925 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1511, allocations: 7.953 kB / 0.5925 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.1514, allocations: 136.8 kB / 0.5927 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.803e-05/0.1514, allocations: 100.8 kB / 0.5928 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.1515, allocations: 0 / 0.5928 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.1516, allocations: 15.98 kB / 0.5928 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.1516, allocations: 7.938 kB / 0.5928 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.1516, allocations: 12 kB / 0.5928 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001558/0.1518, allocations: 188.5 kB / 0.593 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1518, allocations: 0 / 0.593 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002044/0.152, allocations: 23.84 kB / 0.593 GB, free: 12.79 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 (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.0001736/0.1522, allocations: 120.7 kB / 0.5931 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002638/0.1525, allocations: 67.88 kB / 0.5932 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1525, allocations: 0 / 0.5932 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.1526, allocations: 44.09 kB / 0.5932 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.1528, allocations: 32.41 kB / 0.5933 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004427/0.1533, allocations: 314.3 kB / 0.5936 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1536, allocations: 0.7329 MB / 0.5943 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.893e-05/0.1537, allocations: 12.55 kB / 0.5943 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.273e-05/0.1537, allocations: 19.42 kB / 0.5943 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1537, allocations: 0 / 0.5943 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.003686/0.1574, allocations: 1.544 MB / 0.5958 GB, free: 9.891 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: