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/Complex 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) 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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.0009267/0.0009268, allocations: 168.8 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7351/0.7351, allocations: 130.7 MB / 138.7 MB, free: 3.496 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 221.5 MB / 391.8 MB, free: 14.24 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.0008599/0.0008598, allocations: 95.41 kB / 473.9 MB, free: 4.484 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.599e-05, allocations: 0 / 0.5485 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4784/0.4784, allocations: 81.57 MB / 0.6282 GB, free: 42.96 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.6327, allocations: 112.3 MB / 0.7378 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.6331, allocations: 75.95 kB / 0.7379 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009023/0.6421, allocations: 3.304 MB / 0.7411 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6421, allocations: 0 / 0.7411 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.478e-05/0.6421, allocations: 4 kB / 0.7411 GB, free: 11.12 MB / 0.5261 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.000519/0.6427, allocations: 438 kB / 0.7415 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.6427, allocations: 8.031 kB / 0.7415 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.686e-05/0.6428, allocations: 27.72 kB / 0.7416 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.6431, allocations: 227.7 kB / 0.7418 GB, free: 10.35 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.6431, allocations: 11.88 kB / 0.7418 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.6431, allocations: 4 kB / 0.7418 GB, free: 10.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001035/0.6432, allocations: 32 kB / 0.7418 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.6434, allocations: 79.39 kB / 0.7419 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.6434, allocations: 4 kB / 0.7419 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.171e-05/0.6435, allocations: 0 / 0.7419 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.6435, allocations: 0 / 0.7419 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005821/0.6441, allocations: 361.1 kB / 0.7422 GB, free: 9.824 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 5.054e-05/0.6441, allocations: 22.58 kB / 0.7423 GB, free: 9.793 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.6442, allocations: 8.922 kB / 0.7423 GB, free: 9.781 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.6442, allocations: 0 / 0.7423 GB, free: 9.781 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.6443, allocations: 96.98 kB / 0.7424 GB, free: 9.668 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.6443, allocations: 0 / 0.7424 GB, free: 9.668 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0001611/0.6445, allocations: 57.5 kB / 0.7424 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.6446, allocations: 77.11 kB / 0.7425 GB, free: 9.512 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.6448, allocations: 194.1 kB / 0.7427 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.6448, allocations: 29.7 kB / 0.7427 GB, free: 9.281 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.72e-05/0.6449, allocations: 131.9 kB / 0.7428 GB, free: 9.148 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.6449, allocations: 7.906 kB / 0.7428 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.6449, allocations: 4 kB / 0.7429 GB, free: 9.137 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.645, allocations: 322.8 kB / 0.7432 GB, free: 8.812 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.178e-05/0.6451, allocations: 8 kB / 0.7432 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.829e-05/0.6451, allocations: 39.36 kB / 0.7432 GB, free: 8.754 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.894e-05/0.6451, allocations: 9.188 kB / 0.7432 GB, free: 8.746 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.6451, allocations: 4.031 kB / 0.7432 GB, free: 8.742 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001051/0.6453, allocations: 69.44 kB / 0.7433 GB, free: 8.668 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.6453, allocations: 4 kB / 0.7433 GB, free: 8.664 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.6453, allocations: 3.953 kB / 0.7433 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.6453, allocations: 0 / 0.7433 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.6454, allocations: 15.98 kB / 0.7433 GB, free: 8.645 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.6454, allocations: 4 kB / 0.7433 GB, free: 8.641 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.361e-05/0.6455, allocations: 16.08 kB / 0.7433 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.6456, allocations: 8 kB / 0.7433 GB, free: 8.617 MB / 0.5261 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.666e-05/0.6456, allocations: 104.9 kB / 0.7434 GB, free: 8.508 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.6457, allocations: 15.81 kB / 0.7434 GB, free: 8.492 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.044e-05/0.6457, allocations: 21.48 kB / 0.7435 GB, free: 8.469 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.6457, allocations: 3.953 kB / 0.7435 GB, free: 8.465 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.6457, allocations: 4 kB / 0.7435 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.6458, allocations: 144 / 0.7435 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.6459, allocations: 194.2 kB / 0.7437 GB, free: 8.234 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.6459, allocations: 3.984 kB / 0.7437 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.08e-05/0.646, allocations: 11.98 kB / 0.7437 GB, free: 8.219 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.646, allocations: 4 kB / 0.7437 GB, free: 8.215 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.646, allocations: 3.984 kB / 0.7437 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.6461, allocations: 0 / 0.7437 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6461, allocations: 3.938 kB / 0.7437 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/0.6462, allocations: 92.89 kB / 0.7438 GB, free: 8.098 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/0.6463, allocations: 96.91 kB / 0.7439 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.6463, allocations: 4 kB / 0.7439 GB, free: 7.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.6464, allocations: 15.92 kB / 0.7439 GB, free: 7.965 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.6464, allocations: 4 kB / 0.7439 GB, free: 7.961 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.6465, allocations: 7.984 kB / 0.7439 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001267/0.6466, allocations: 156.3 kB / 0.744 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6466, allocations: 4 kB / 0.7441 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.000214/0.6468, allocations: 23.91 kB / 0.7441 GB, free: 7.773 MB / 0.5261 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.0002419/0.6471, allocations: 118.6 kB / 0.7442 GB, free: 7.652 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001015/0.6472, allocations: 24.06 kB / 0.7442 GB, free: 7.629 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.6472, allocations: 4.062 kB / 0.7442 GB, free: 7.625 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 2.98e-05/0.6472, allocations: 11.98 kB / 0.7442 GB, free: 7.613 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.6475, allocations: 44.58 kB / 0.7443 GB, free: 7.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003924/0.6479, allocations: 180.7 kB / 0.7444 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.6482, allocations: 0.7158 MB / 0.7451 GB, free: 6.633 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.053e-05/0.6483, allocations: 24.59 kB / 0.7452 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.6483, allocations: 23.36 kB / 0.7452 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of SimCode: time 2.41e-07/0.6483, allocations: 0 / 0.7452 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of Templates: time 0.003989/0.6523, allocations: 1.455 MB / 0.7466 GB, free: 5.145 MB / 0.5261 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)