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.007565/0.007564, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7523/0.7523, allocations: 132.3 MB / 148.1 MB, free: 276 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 223.2 MB / 403.2 MB, free: 6.734 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.0009084/0.0009083, allocations: 98.44 kB / 485.5 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003148, allocations: 8 kB / 0.5641 GB, free: 2.121 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3447, allocations: 81.57 MB / 0.6437 GB, free: 39.38 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1429/0.4876, allocations: 113 MB / 0.7541 GB, free: 6.941 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.488, allocations: 79.95 kB / 0.7542 GB, free: 6.863 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009563/0.4976, allocations: 3.336 MB / 0.7574 GB, free: 3.523 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4976, allocations: 4 kB / 0.7574 GB, free: 3.52 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.591e-05/0.4976, allocations: 4 kB / 0.7574 GB, free: 3.516 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.000662/0.4983, allocations: 462.5 kB / 0.7579 GB, free: 3.016 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.4983, allocations: 12.03 kB / 0.7579 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.05e-05/0.4984, allocations: 19.81 kB / 0.7579 GB, free: 2.984 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.4987, allocations: 243.6 kB / 0.7582 GB, free: 2.703 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.4987, allocations: 4 kB / 0.7582 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.4988, allocations: 7.984 kB / 0.7582 GB, free: 2.691 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.4991, allocations: 113.6 kB / 0.7583 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.4991, allocations: 0 / 0.7583 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.4991, allocations: 0 / 0.7583 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.4991, allocations: 0 / 0.7583 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002439/0.4994, allocations: 83.94 kB / 0.7584 GB, free: 2.492 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.5, allocations: 388.4 kB / 0.7587 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.5002, allocations: 50.55 kB / 0.7588 GB, free: 2.004 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.5002, allocations: 8.016 kB / 0.7588 GB, free: 1.996 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.5005, allocations: 102.2 kB / 0.7589 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.5005, allocations: 0 / 0.7589 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0004681/0.501, allocations: 149.4 kB / 0.759 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.501, allocations: 77.11 kB / 0.7591 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.5013, allocations: 220.2 kB / 0.7593 GB, free: 1.414 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.5013, allocations: 25.7 kB / 0.7593 GB, free: 1.383 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.5014, allocations: 128 kB / 0.7594 GB, free: 1.254 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.5014, allocations: 11.84 kB / 0.7595 GB, free: 1.242 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.5015, allocations: 0 / 0.7595 GB, free: 1.242 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5016, allocations: 326.8 kB / 0.7598 GB, free: 0.9141 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.5017, allocations: 35.97 kB / 0.7598 GB, free: 0.8789 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.5019, allocations: 59.34 kB / 0.7599 GB, free: 0.8086 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.502, allocations: 36 kB / 0.7599 GB, free: 0.7734 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.502, allocations: 0 / 0.7599 GB, free: 0.7734 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003252/0.5023, allocations: 121.4 kB / 0.76 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.5024, allocations: 17.86 kB / 0.76 GB, free: 0.6328 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.5024, allocations: 3.984 kB / 0.76 GB, free: 0.6289 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.5024, allocations: 0 / 0.76 GB, free: 0.6289 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.5025, allocations: 20.08 kB / 0.7601 GB, free: 0.6094 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.5025, allocations: 4 kB / 0.7601 GB, free: 0.6055 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.639e-05/0.5026, allocations: 15.89 kB / 0.7601 GB, free: 0.5898 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.5027, allocations: 4 kB / 0.7601 GB, free: 0.5859 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 () * 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.0001198/0.5028, allocations: 125.8 kB / 0.7602 GB, free: 464 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.5028, allocations: 15.81 kB / 0.7602 GB, free: 448 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.053e-05/0.5029, allocations: 29.47 kB / 0.7602 GB, free: 420 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-06/0.5029, allocations: 0 / 0.7602 GB, free: 420 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.5029, allocations: 3.984 kB / 0.7602 GB, free: 416 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.5029, allocations: 0 / 0.7602 GB, free: 416 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.5031, allocations: 217.6 kB / 0.7604 GB, free: 148 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5031, allocations: 3.938 kB / 0.7605 GB, free: 144 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.785e-05/0.5032, allocations: 15.98 kB / 0.7605 GB, free: 128 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.5032, allocations: 0 / 0.7605 GB, free: 128 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.5032, allocations: 0 / 0.7605 GB, free: 128 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.5032, allocations: 7.953 kB / 0.7605 GB, free: 120 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5032, allocations: 0 / 0.7605 GB, free: 120 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003202/0.5035, allocations: 136.9 kB / 0.7606 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.058e-05/0.5036, allocations: 96.91 kB / 0.7607 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.5037, allocations: 4 kB / 0.7607 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.842e-05/0.5038, allocations: 15.98 kB / 0.7607 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.5038, allocations: 11.94 kB / 0.7607 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.5039, allocations: 4 kB / 0.7607 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001679/0.504, allocations: 184.5 kB / 0.7609 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.11e-07/0.504, allocations: 4 kB / 0.7609 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002212/0.5043, allocations: 27.84 kB / 0.7609 GB, free: 15.61 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.0002515/0.5045, allocations: 127.3 kB / 0.7611 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002914/0.5048, allocations: 67.95 kB / 0.7611 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.5048, allocations: 0 / 0.7611 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.505, allocations: 44.09 kB / 0.7612 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.5052, allocations: 40.98 kB / 0.7612 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005482/0.5058, allocations: 318.4 kB / 0.7615 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.5061, allocations: 0.7238 MB / 0.7622 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.199e-05/0.5062, allocations: 20.69 kB / 0.7622 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.5063, allocations: 15.44 kB / 0.7623 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/0.5063, allocations: 0 / 0.7623 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.004322/0.5106, allocations: 1.598 MB / 0.7638 GB, free: 12.62 MB / 0.5417 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)