Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.771/1.771, allocations: 285.4 MB / 298 MB, free: 5.953 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001094/0.001095, allocations: 184.2 kB / 366.4 MB, free: 2.113 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 205.1 MB / 0.6248 GB, free: 7.754 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007664/0.000766, allocations: 87.97 kB / 0.738 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.047e-05/4.139e-05, allocations: 3.984 kB / 0.8583 GB, free: 13.13 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7221/0.7222, allocations: 115.3 MB / 0.9709 GB, free: 77.89 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1951/0.9173, allocations: 139.9 MB / 1.108 GB, free: 11.9 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.9176, allocations: 76.92 kB / 1.108 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.009698/0.9273, allocations: 3.272 MB / 1.111 GB, free: 8.598 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9274, allocations: 1.781 kB / 1.111 GB, free: 8.598 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.795e-05/0.9274, allocations: 4 kB / 1.111 GB, free: 8.594 MB / 0.7136 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.0005241/0.928, allocations: 432 kB / 1.111 GB, free: 8.129 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.928, allocations: 12.03 kB / 1.111 GB, free: 8.117 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.14e-05/0.9281, allocations: 16.34 kB / 1.111 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.9284, allocations: 239.4 kB / 1.111 GB, free: 7.828 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.9284, allocations: 4.688 kB / 1.111 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.9285, allocations: 4 kB / 1.111 GB, free: 7.82 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.9287, allocations: 91.34 kB / 1.112 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.9287, allocations: 0 / 1.112 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.9287, allocations: 4 kB / 1.112 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.9287, allocations: 0 / 1.112 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.69e-05/0.9288, allocations: 38.12 kB / 1.112 GB, free: 7.688 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006162/0.9294, allocations: 392.2 kB / 1.112 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.199e-05/0.9295, allocations: 23.14 kB / 1.112 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.44e-05/0.9295, allocations: 14.98 kB / 1.112 GB, free: 7.211 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.9296, allocations: 0 / 1.112 GB, free: 7.211 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.9297, allocations: 97.41 kB / 1.112 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.9297, allocations: 0 / 1.112 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001724/0.9299, allocations: 62.81 kB / 1.112 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.93, allocations: 81.11 kB / 1.112 GB, free: 6.938 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.9303, allocations: 221.1 kB / 1.112 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.9303, allocations: 29.7 kB / 1.112 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.833e-05/0.9304, allocations: 124 kB / 1.113 GB, free: 6.555 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.9304, allocations: 11.89 kB / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.9304, allocations: 0 / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.9305, allocations: 338.8 kB / 1.113 GB, free: 6.203 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.539e-05/0.9306, allocations: 4 kB / 1.113 GB, free: 6.199 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.176e-05/0.9306, allocations: 39.41 kB / 1.113 GB, free: 6.148 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.508e-05/0.9307, allocations: 11.98 kB / 1.113 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.9307, allocations: 3.938 kB / 1.113 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001199/0.9308, allocations: 69.48 kB / 1.113 GB, free: 6.059 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.9308, allocations: 7.984 kB / 1.113 GB, free: 6.051 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.9308, allocations: 3.953 kB / 1.113 GB, free: 6.047 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.9309, allocations: 5.969 kB / 1.113 GB, free: 6.043 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.931, allocations: 19.98 kB / 1.113 GB, free: 6.023 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.931, allocations: 0 / 1.113 GB, free: 6.023 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.95e-05/0.9311, allocations: 20.08 kB / 1.113 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.9311, allocations: 2.812 kB / 1.113 GB, free: 6.004 MB / 0.7136 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 8.258e-05/0.9312, allocations: 105 kB / 1.113 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.9313, allocations: 15.81 kB / 1.113 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.086e-05/0.9313, allocations: 17.23 kB / 1.113 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.9314, allocations: 7.891 kB / 1.113 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.9314, allocations: 0 / 1.113 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.9314, allocations: 0 / 1.113 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.9316, allocations: 233.4 kB / 1.113 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.9316, allocations: 0 / 1.113 GB, free: 5.578 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.604e-05/0.9317, allocations: 15.98 kB / 1.113 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.9317, allocations: 0 / 1.113 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.9317, allocations: 0 / 1.113 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.9317, allocations: 0 / 1.113 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.9317, allocations: 3.953 kB / 1.114 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001393/0.9319, allocations: 92.94 kB / 1.114 GB, free: 5.449 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/0.9319, allocations: 96.91 kB / 1.114 GB, free: 5.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.932, allocations: 4 kB / 1.114 GB, free: 5.332 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.272e-05/0.9321, allocations: 14.89 kB / 1.114 GB, free: 5.32 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.9321, allocations: 11.94 kB / 1.114 GB, free: 5.309 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.291e-05/0.9321, allocations: 4.875 kB / 1.114 GB, free: 5.305 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001621/0.9323, allocations: 185.3 kB / 1.114 GB, free: 5.129 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9323, allocations: 0 / 1.114 GB, free: 5.129 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002159/0.9325, allocations: 24 kB / 1.114 GB, free: 5.105 MB / 0.7136 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.0002335/0.9328, allocations: 112.8 kB / 1.114 GB, free: 4.992 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001097/0.9329, allocations: 23.98 kB / 1.114 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.9329, allocations: 192 / 1.114 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.409e-05/0.9329, allocations: 19.94 kB / 1.114 GB, free: 4.949 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.9332, allocations: 40.33 kB / 1.114 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.9336, allocations: 192.3 kB / 1.114 GB, free: 4.695 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.9339, allocations: 0.7277 MB / 1.115 GB, free: 3.941 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.648e-05/0.934, allocations: 22.73 kB / 1.115 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.9341, allocations: 15.42 kB / 1.115 GB, free: 3.906 MB / 0.7136 GB Notification: Performance of SimCode: time 3.71e-07/0.9341, allocations: 0 / 1.115 GB, free: 3.906 MB / 0.7136 GB Notification: Performance of Templates: time 0.005218/0.9393, allocations: 1.615 MB / 1.117 GB, free: 2.348 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)