Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.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.0006774/0.0006775, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.003939/0.003939, allocations: 170.6 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.4 MB / 222.5 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 252 MB / 0.5105 GB, free: 4.734 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004365, allocations: 12.33 kB / 0.6249 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.382, allocations: 106.3 MB / 0.7287 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001726/0.3837, allocations: 1.351 MB / 0.73 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008329/0.3846, allocations: 0.5928 MB / 0.7306 GB, free: 9.422 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.424e-05/0.3847, allocations: 0 / 0.7306 GB, free: 9.422 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.3848, allocations: 31.84 kB / 0.7306 GB, free: 9.391 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002037/0.385, allocations: 51.7 kB / 0.7307 GB, free: 9.34 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.3852, allocations: 59.86 kB / 0.7308 GB, free: 9.281 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.3854, allocations: 123.5 kB / 0.7309 GB, free: 9.16 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.3855, allocations: 45.48 kB / 0.7309 GB, free: 9.113 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/0.3856, allocations: 47.77 kB / 0.731 GB, free: 9.066 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.032e-05/0.3857, allocations: 39.78 kB / 0.731 GB, free: 9.027 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.3857, allocations: 4 kB / 0.731 GB, free: 9.023 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.595e-05/0.3858, allocations: 23.92 kB / 0.731 GB, free: 9 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.555e-05/0.3858, allocations: 39.83 kB / 0.7311 GB, free: 8.961 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.308e-05/0.3859, allocations: 77.33 kB / 0.7311 GB, free: 8.879 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.3861, allocations: 137.4 kB / 0.7313 GB, free: 8.746 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3861, allocations: 0 / 0.7313 GB, free: 8.746 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3861, allocations: 0 / 0.7313 GB, free: 8.746 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.3861, allocations: 0 / 0.7313 GB, free: 8.746 MB / 0.545 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.0005047/0.3866, allocations: 450.7 kB / 0.7317 GB, free: 8.258 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.3866, allocations: 16.03 kB / 0.7317 GB, free: 8.242 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.92e-05/0.3867, allocations: 20.75 kB / 0.7317 GB, free: 8.223 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002185/0.3869, allocations: 232.8 kB / 0.732 GB, free: 7.953 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.3869, allocations: 8.375 kB / 0.732 GB, free: 7.945 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/0.387, allocations: 4.375 kB / 0.732 GB, free: 7.941 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.3872, allocations: 121.9 kB / 0.7321 GB, free: 7.816 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.3872, allocations: 4 kB / 0.7321 GB, free: 7.812 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.3873, allocations: 4 kB / 0.7321 GB, free: 7.809 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3873, allocations: 4 kB / 0.7321 GB, free: 7.805 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.3875, allocations: 71.94 kB / 0.7322 GB, free: 7.734 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005318/0.388, allocations: 400.4 kB / 0.7325 GB, free: 7.293 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.3882, allocations: 50.48 kB / 0.7326 GB, free: 7.234 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3883, allocations: 36.89 kB / 0.7326 GB, free: 7.195 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.3883, allocations: 0 / 0.7326 GB, free: 7.195 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.3886, allocations: 117 kB / 0.7327 GB, free: 7.062 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.3886, allocations: 0 / 0.7327 GB, free: 7.062 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004126/0.389, allocations: 141.4 kB / 0.7329 GB, free: 6.918 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.3891, allocations: 77.11 kB / 0.7329 GB, free: 6.824 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.3893, allocations: 253 kB / 0.7332 GB, free: 6.566 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.3893, allocations: 33.7 kB / 0.7332 GB, free: 6.527 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.158e-05/0.3894, allocations: 128 kB / 0.7333 GB, free: 6.398 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.3894, allocations: 15.83 kB / 0.7334 GB, free: 6.383 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.439e-05/0.3894, allocations: 9.719 kB / 0.7334 GB, free: 6.367 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3896, allocations: 326.8 kB / 0.7337 GB, free: 6.039 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.3897, allocations: 35.91 kB / 0.7337 GB, free: 6.004 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.3898, allocations: 63.34 kB / 0.7338 GB, free: 5.93 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.39, allocations: 78.56 kB / 0.7338 GB, free: 5.844 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.39, allocations: 0 / 0.7338 GB, free: 5.844 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002659/0.3903, allocations: 121.4 kB / 0.734 GB, free: 5.719 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.3903, allocations: 4 kB / 0.734 GB, free: 5.715 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3903, allocations: 4 kB / 0.734 GB, free: 5.711 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3903, allocations: 3.938 kB / 0.734 GB, free: 5.707 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.758e-05/0.3904, allocations: 20.08 kB / 0.734 GB, free: 5.688 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.3905, allocations: 3.938 kB / 0.734 GB, free: 5.684 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.509e-05/0.3905, allocations: 19.89 kB / 0.734 GB, free: 5.664 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.3906, allocations: 0 / 0.734 GB, free: 5.664 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.357e-05/0.3907, allocations: 129.8 kB / 0.7341 GB, free: 5.527 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.204e-05/0.3907, allocations: 19.81 kB / 0.7342 GB, free: 5.508 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.3907, allocations: 17.23 kB / 0.7342 GB, free: 5.492 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3907, allocations: 3.938 kB / 0.7342 GB, free: 5.488 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.3907, allocations: 0 / 0.7342 GB, free: 5.488 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.3907, allocations: 4 kB / 0.7342 GB, free: 5.484 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.3909, allocations: 213.6 kB / 0.7344 GB, free: 5.227 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3909, allocations: 0 / 0.7344 GB, free: 5.227 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.593e-05/0.391, allocations: 15.98 kB / 0.7344 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.391, allocations: 0 / 0.7344 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.391, allocations: 7.938 kB / 0.7344 GB, free: 5.203 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.391, allocations: 3.938 kB / 0.7344 GB, free: 5.199 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.391, allocations: 0 / 0.7344 GB, free: 5.199 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.3913, allocations: 145.1 kB / 0.7346 GB, free: 5.039 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.3913, allocations: 96.94 kB / 0.7346 GB, free: 4.926 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.3914, allocations: 0 / 0.7346 GB, free: 4.926 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.228e-05/0.3914, allocations: 23.92 kB / 0.7347 GB, free: 4.902 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.3915, allocations: 7.984 kB / 0.7347 GB, free: 4.895 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.3915, allocations: 4 kB / 0.7347 GB, free: 4.891 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001467/0.3917, allocations: 192.5 kB / 0.7349 GB, free: 4.707 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3917, allocations: 0 / 0.7349 GB, free: 4.707 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001996/0.3919, allocations: 23.91 kB / 0.7349 GB, free: 4.684 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001909/0.3921, allocations: 114.8 kB / 0.735 GB, free: 4.566 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002704/0.3923, allocations: 75.88 kB / 0.7351 GB, free: 4.492 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3924, allocations: 0 / 0.7351 GB, free: 4.492 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.3925, allocations: 40.16 kB / 0.7351 GB, free: 4.453 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.3927, allocations: 45.83 kB / 0.7352 GB, free: 4.414 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004417/0.3932, allocations: 326.1 kB / 0.7355 GB, free: 4.062 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.3934, allocations: 0.716 MB / 0.7362 GB, free: 3.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.431e-05/0.3935, allocations: 20.53 kB / 0.7362 GB, free: 3.301 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.328e-05/0.3935, allocations: 23.42 kB / 0.7362 GB, free: 3.277 MB / 0.545 GB Notification: Performance of SimCode: time 1.363e-06/0.3935, allocations: 0 / 0.7362 GB, free: 3.277 MB / 0.545 GB Notification: Performance of Templates: time 0.003677/0.3972, allocations: 1.589 MB / 0.7378 GB, free: 1.715 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) Environment - environmentSimulation: