Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.774/1.774, allocations: 297.8 MB / 313.8 MB, free: 148 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 188.4 kB / 384.6 MB, free: 10.87 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.651/1.651, allocations: 223.2 MB / 0.6626 GB, free: 4.266 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008453/0.0008454, allocations: 90.38 kB / 0.7808 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004004, allocations: 13.66 kB / 0.9088 GB, free: 2.902 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7239/0.7244, allocations: 120.3 MB / 1.026 GB, free: 55.77 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.9046, allocations: 143.2 MB / 1.166 GB, free: 0.7422 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.9049, allocations: 81.97 kB / 1.166 GB, free: 0.6758 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01008/0.9149, allocations: 3.337 MB / 1.169 GB, free: 14.43 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.463e-06/0.915, allocations: 0 / 1.169 GB, free: 14.43 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.8e-05/0.915, allocations: 8.625 kB / 1.169 GB, free: 14.42 MB / 0.7448 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.0005573/0.9156, allocations: 451.9 kB / 1.17 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.9156, allocations: 12.78 kB / 1.17 GB, free: 13.95 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.02e-05/0.9157, allocations: 16.75 kB / 1.17 GB, free: 13.93 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.916, allocations: 245.6 kB / 1.17 GB, free: 13.67 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.916, allocations: 5.5 kB / 1.17 GB, free: 13.66 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.916, allocations: 8.375 kB / 1.17 GB, free: 13.66 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.9163, allocations: 106.1 kB / 1.17 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.9163, allocations: 1.328 kB / 1.17 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.9163, allocations: 9.594 kB / 1.17 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.9163, allocations: 0 / 1.17 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002634/0.9166, allocations: 83.77 kB / 1.17 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.9172, allocations: 395.8 kB / 1.171 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.9174, allocations: 54.42 kB / 1.171 GB, free: 13.06 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.9175, allocations: 35.45 kB / 1.171 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.9175, allocations: 1.781 kB / 1.171 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.9178, allocations: 105.8 kB / 1.171 GB, free: 12.93 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.9178, allocations: 2.906 kB / 1.171 GB, free: 12.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0004397/0.9182, allocations: 141.8 kB / 1.171 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.9183, allocations: 86.48 kB / 1.171 GB, free: 12.71 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.9186, allocations: 244.2 kB / 1.171 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.9186, allocations: 29.64 kB / 1.171 GB, free: 12.45 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.925e-05/0.9187, allocations: 131.4 kB / 1.172 GB, free: 12.33 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.9187, allocations: 8.5 kB / 1.172 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-06/0.9187, allocations: 0 / 1.172 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.9189, allocations: 329 kB / 1.172 GB, free: 12 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.919, allocations: 32.7 kB / 1.172 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.9191, allocations: 59.59 kB / 1.172 GB, free: 11.91 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.9193, allocations: 80 kB / 1.172 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.9194, allocations: 0.5625 kB / 1.172 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002838/0.9196, allocations: 121 kB / 1.172 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.9197, allocations: 4 kB / 1.172 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.9197, allocations: 0.6094 kB / 1.172 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.9197, allocations: 4 kB / 1.172 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.9198, allocations: 19.98 kB / 1.172 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.9198, allocations: 6.234 kB / 1.172 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.677e-05/0.9199, allocations: 24.59 kB / 1.172 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.92, allocations: 0 / 1.172 GB, free: 11.68 MB / 0.7448 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.0001232/0.9201, allocations: 125.7 kB / 1.172 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.9201, allocations: 16.56 kB / 1.172 GB, free: 11.54 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.483e-05/0.9202, allocations: 23.88 kB / 1.172 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.9202, allocations: 0 / 1.172 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.9202, allocations: 3.938 kB / 1.172 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.9202, allocations: 4.797 kB / 1.172 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002089/0.9204, allocations: 217.3 kB / 1.173 GB, free: 11.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.9204, allocations: 0.9375 kB / 1.173 GB, free: 11.27 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.9205, allocations: 20.2 kB / 1.173 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.9206, allocations: 0 / 1.173 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.9206, allocations: 0.6562 kB / 1.173 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.9206, allocations: 4 kB / 1.173 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.9206, allocations: 3.938 kB / 1.173 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003058/0.9209, allocations: 139.6 kB / 1.173 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.676e-05/0.921, allocations: 96.11 kB / 1.173 GB, free: 11 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.921, allocations: 0.5156 kB / 1.173 GB, free: 11 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.953e-05/0.9211, allocations: 15.98 kB / 1.173 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.458e-05/0.9212, allocations: 11.5 kB / 1.173 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.9212, allocations: 8.641 kB / 1.173 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002108/0.9214, allocations: 179.6 kB / 1.173 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9214, allocations: 5.969 kB / 1.173 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002672/0.9217, allocations: 31.84 kB / 1.173 GB, free: 10.78 MB / 0.7448 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.0002822/0.922, allocations: 119.1 kB / 1.173 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003583/0.9224, allocations: 73.95 kB / 1.173 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9224, allocations: 0 / 1.173 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.9225, allocations: 39.5 kB / 1.173 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.9229, allocations: 32.02 kB / 1.173 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006683/0.9236, allocations: 321 kB / 1.174 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.924, allocations: 0.7192 MB / 1.174 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 9.67e-05/0.9241, allocations: 25.7 kB / 1.174 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.054e-05/0.9241, allocations: 12.61 kB / 1.174 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of SimCode: time 3.9e-07/0.9241, allocations: 0 / 1.174 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of Templates: time 0.00521/0.9293, allocations: 1.623 MB / 1.176 GB, free: 8.426 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)