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.0008604/0.0008605, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0008921/0.0008921, allocations: 194.8 kB / 16.14 MB, free: 6.711 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.184/1.184, allocations: 205.1 MB / 222 MB, free: 5.008 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.314/1.314, allocations: 251.6 MB / 0.5088 GB, free: 3.359 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.001158/0.001158, allocations: 67.91 kB / 0.6216 GB, free: 1.992 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4021/0.4033, allocations: 104.7 MB / 0.7238 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00278/0.4061, allocations: 1.702 MB / 0.7255 GB, free: 11.46 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008437/0.407, allocations: 0.5928 MB / 0.726 GB, free: 10.86 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.4071, allocations: 7.938 kB / 0.726 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.4073, allocations: 19.92 kB / 0.7261 GB, free: 10.83 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.4076, allocations: 58.88 kB / 0.7261 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.4077, allocations: 55.94 kB / 0.7262 GB, free: 10.72 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001649/0.4079, allocations: 127.5 kB / 0.7263 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.4081, allocations: 41.47 kB / 0.7263 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.4082, allocations: 63.7 kB / 0.7264 GB, free: 10.49 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.4083, allocations: 59.7 kB / 0.7265 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.4083, allocations: 4 kB / 0.7265 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.4084, allocations: 20 kB / 0.7265 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/0.4085, allocations: 39.89 kB / 0.7265 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.4086, allocations: 63.47 kB / 0.7266 GB, free: 10.31 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.4087, allocations: 137.5 kB / 0.7267 GB, free: 10.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4087, allocations: 0 / 0.7267 GB, free: 10.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.12e-07/0.4087, allocations: 0 / 0.7267 GB, free: 10.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.4088, allocations: 0 / 0.7267 GB, free: 10.18 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.0005509/0.4093, allocations: 466.6 kB / 0.7272 GB, free: 9.672 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.4094, allocations: 8.031 kB / 0.7272 GB, free: 9.664 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.4094, allocations: 20.73 kB / 0.7272 GB, free: 9.645 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.4096, allocations: 240.8 kB / 0.7274 GB, free: 9.371 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-06/0.4097, allocations: 384 / 0.7274 GB, free: 9.371 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.4097, allocations: 4.375 kB / 0.7274 GB, free: 9.367 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.4099, allocations: 125.9 kB / 0.7275 GB, free: 9.238 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.4099, allocations: 0 / 0.7275 GB, free: 9.238 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.41, allocations: 0 / 0.7275 GB, free: 9.238 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.41, allocations: 4 kB / 0.7275 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.4102, allocations: 63.94 kB / 0.7276 GB, free: 9.172 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005115/0.4107, allocations: 384.5 kB / 0.728 GB, free: 8.746 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.4109, allocations: 46.48 kB / 0.728 GB, free: 8.691 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.703e-05/0.411, allocations: 32.83 kB / 0.728 GB, free: 8.656 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.411, allocations: 7.984 kB / 0.728 GB, free: 8.648 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.4112, allocations: 97.08 kB / 0.7281 GB, free: 8.535 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4112, allocations: 0 / 0.7281 GB, free: 8.535 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003898/0.4116, allocations: 121.3 kB / 0.7283 GB, free: 8.41 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.4117, allocations: 77.11 kB / 0.7283 GB, free: 8.316 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.4119, allocations: 264.9 kB / 0.7286 GB, free: 8.047 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.4119, allocations: 25.7 kB / 0.7286 GB, free: 8.016 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.435e-05/0.412, allocations: 128 kB / 0.7287 GB, free: 7.887 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.412, allocations: 11.84 kB / 0.7287 GB, free: 7.875 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/0.412, allocations: 13.72 kB / 0.7288 GB, free: 7.855 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.398e-05/0.4121, allocations: 326.8 kB / 0.7291 GB, free: 7.527 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.4122, allocations: 27.97 kB / 0.7291 GB, free: 7.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.4124, allocations: 51.41 kB / 0.7291 GB, free: 7.438 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.4126, allocations: 70.48 kB / 0.7292 GB, free: 7.359 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4126, allocations: 0 / 0.7292 GB, free: 7.359 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002568/0.4128, allocations: 101.4 kB / 0.7293 GB, free: 7.254 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.4128, allocations: 11.98 kB / 0.7293 GB, free: 7.242 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.4129, allocations: 0 / 0.7293 GB, free: 7.242 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.4129, allocations: 3.938 kB / 0.7293 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.413, allocations: 11.98 kB / 0.7293 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.413, allocations: 4.094 kB / 0.7293 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.493e-05/0.4131, allocations: 15.98 kB / 0.7294 GB, free: 7.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.4131, allocations: 0 / 0.7294 GB, free: 7.207 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.444e-05/0.4132, allocations: 125.8 kB / 0.7295 GB, free: 7.074 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.91e-05/0.4132, allocations: 15.81 kB / 0.7295 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.338e-05/0.4133, allocations: 21.25 kB / 0.7295 GB, free: 7.039 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4133, allocations: 7.875 kB / 0.7295 GB, free: 7.031 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.4133, allocations: 3.984 kB / 0.7295 GB, free: 7.027 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4133, allocations: 4 kB / 0.7295 GB, free: 7.023 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.4135, allocations: 209.6 kB / 0.7297 GB, free: 6.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4135, allocations: 7.938 kB / 0.7297 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.58e-05/0.4136, allocations: 7.984 kB / 0.7297 GB, free: 6.754 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4136, allocations: 4 kB / 0.7297 GB, free: 6.75 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.4136, allocations: 0 / 0.7297 GB, free: 6.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4136, allocations: 3.938 kB / 0.7297 GB, free: 6.746 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.4136, allocations: 0 / 0.7297 GB, free: 6.746 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.4139, allocations: 124.8 kB / 0.7299 GB, free: 6.605 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.182e-05/0.4139, allocations: 92.91 kB / 0.73 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.414, allocations: 0 / 0.73 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.318e-05/0.4141, allocations: 20.25 kB / 0.73 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.451e-05/0.4141, allocations: 0 / 0.73 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.4142, allocations: 11.92 kB / 0.73 GB, free: 6.465 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001664/0.4143, allocations: 184.5 kB / 0.7302 GB, free: 6.289 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4143, allocations: 4 kB / 0.7302 GB, free: 6.285 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002173/0.4146, allocations: 20 kB / 0.7302 GB, free: 6.266 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.0002281/0.4148, allocations: 131.8 kB / 0.7303 GB, free: 6.133 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.4151, allocations: 59.94 kB / 0.7304 GB, free: 6.074 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4151, allocations: 0 / 0.7304 GB, free: 6.074 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.4152, allocations: 27.97 kB / 0.7304 GB, free: 6.047 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.4155, allocations: 40.34 kB / 0.7304 GB, free: 6.008 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004954/0.416, allocations: 318.1 kB / 0.7307 GB, free: 5.668 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.4162, allocations: 0.7238 MB / 0.7314 GB, free: 4.918 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.045e-05/0.4163, allocations: 16.53 kB / 0.7315 GB, free: 4.902 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.4164, allocations: 15.44 kB / 0.7315 GB, free: 4.887 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.4164, allocations: 0 / 0.7315 GB, free: 4.887 MB / 0.545 GB Notification: Performance of Templates: time 0.004182/0.4206, allocations: 1.612 MB / 0.733 GB, free: 3.301 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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)