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.0008827/0.0008824, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0008761/0.0008762, allocations: 191.5 kB / 16.25 MB, free: 6.625 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.2/1.2, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.297/1.297, allocations: 251.6 MB / 0.5089 GB, free: 3.312 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.001197/0.001197, allocations: 67.91 kB / 0.6217 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4218/0.423, allocations: 104.7 MB / 0.724 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002668/0.4257, allocations: 1.706 MB / 0.7256 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009408/0.4266, allocations: 0.5811 MB / 0.7262 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.208e-05/0.4267, allocations: 0 / 0.7262 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.4269, allocations: 31.84 kB / 0.7262 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.4271, allocations: 63.69 kB / 0.7263 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001338/0.4273, allocations: 51.94 kB / 0.7264 GB, free: 10.66 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.4274, allocations: 131.5 kB / 0.7265 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.4276, allocations: 49.42 kB / 0.7265 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.4277, allocations: 59.7 kB / 0.7266 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.4278, allocations: 55.77 kB / 0.7266 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.619e-05/0.4278, allocations: 8 kB / 0.7266 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.579e-05/0.4279, allocations: 27.98 kB / 0.7267 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.623e-05/0.428, allocations: 43.83 kB / 0.7267 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.908e-05/0.4281, allocations: 59.61 kB / 0.7268 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.4282, allocations: 141.4 kB / 0.7269 GB, free: 10.1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.4282, allocations: 0 / 0.7269 GB, free: 10.1 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4283, allocations: 4 kB / 0.7269 GB, free: 10.09 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.4283, allocations: 4 kB / 0.7269 GB, free: 10.09 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.000553/0.4288, allocations: 466.5 kB / 0.7274 GB, free: 9.586 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.4289, allocations: 12.03 kB / 0.7274 GB, free: 9.574 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.619e-05/0.4289, allocations: 16.75 kB / 0.7274 GB, free: 9.559 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002312/0.4291, allocations: 232.8 kB / 0.7276 GB, free: 9.293 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-06/0.4292, allocations: 4.375 kB / 0.7276 GB, free: 9.289 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.4292, allocations: 12.36 kB / 0.7276 GB, free: 9.277 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.4294, allocations: 117.9 kB / 0.7277 GB, free: 9.156 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.4295, allocations: 0 / 0.7277 GB, free: 9.156 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.4295, allocations: 4 kB / 0.7277 GB, free: 9.152 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.4295, allocations: 0 / 0.7277 GB, free: 9.152 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.4297, allocations: 59.94 kB / 0.7278 GB, free: 9.094 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005223/0.4302, allocations: 388.3 kB / 0.7282 GB, free: 8.664 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.4303, allocations: 42.55 kB / 0.7282 GB, free: 8.613 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.658e-05/0.4304, allocations: 32.83 kB / 0.7282 GB, free: 8.578 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.4305, allocations: 4 kB / 0.7282 GB, free: 8.574 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.4307, allocations: 97.08 kB / 0.7283 GB, free: 8.461 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/0.4307, allocations: 4 kB / 0.7283 GB, free: 8.457 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003667/0.4311, allocations: 125.4 kB / 0.7285 GB, free: 8.328 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.4311, allocations: 81.05 kB / 0.7285 GB, free: 8.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.4313, allocations: 256.9 kB / 0.7288 GB, free: 7.969 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.4314, allocations: 25.7 kB / 0.7288 GB, free: 7.938 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.363e-05/0.4314, allocations: 128.1 kB / 0.7289 GB, free: 7.809 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.4315, allocations: 11.75 kB / 0.7289 GB, free: 7.797 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.4315, allocations: 17.7 kB / 0.729 GB, free: 7.773 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.4316, allocations: 326.8 kB / 0.7293 GB, free: 7.445 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.649e-05/0.4317, allocations: 27.97 kB / 0.7293 GB, free: 7.418 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.4318, allocations: 47.41 kB / 0.7293 GB, free: 7.359 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.432, allocations: 74.5 kB / 0.7294 GB, free: 7.277 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.432, allocations: 0 / 0.7294 GB, free: 7.277 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002351/0.4323, allocations: 101.4 kB / 0.7295 GB, free: 7.172 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.4323, allocations: 9.969 kB / 0.7295 GB, free: 7.164 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.297e-06/0.4323, allocations: 0 / 0.7295 GB, free: 7.164 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.4323, allocations: 12.03 kB / 0.7295 GB, free: 7.152 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.4324, allocations: 11.98 kB / 0.7295 GB, free: 7.141 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.4324, allocations: 0 / 0.7295 GB, free: 7.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.949e-05/0.4325, allocations: 15.98 kB / 0.7296 GB, free: 7.125 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.4325, allocations: 0 / 0.7296 GB, free: 7.125 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 9.907e-05/0.4326, allocations: 129.8 kB / 0.7297 GB, free: 6.988 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.4327, allocations: 15.81 kB / 0.7297 GB, free: 6.973 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.4327, allocations: 17.23 kB / 0.7297 GB, free: 6.957 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.4327, allocations: 8.219 kB / 0.7297 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.4327, allocations: 0 / 0.7297 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.4327, allocations: 4 kB / 0.7297 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.4329, allocations: 217.6 kB / 0.7299 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.4329, allocations: 0 / 0.7299 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.592e-05/0.433, allocations: 15.92 kB / 0.7299 GB, free: 6.668 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.433, allocations: 3.938 kB / 0.73 GB, free: 6.664 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.433, allocations: 0 / 0.73 GB, free: 6.664 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.433, allocations: 3.938 kB / 0.73 GB, free: 6.66 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.433, allocations: 4 kB / 0.73 GB, free: 6.656 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.4332, allocations: 124.8 kB / 0.7301 GB, free: 6.516 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.96e-05/0.4333, allocations: 88.92 kB / 0.7302 GB, free: 6.41 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.4333, allocations: 7.984 kB / 0.7302 GB, free: 6.402 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.431e-05/0.4334, allocations: 7.938 kB / 0.7302 GB, free: 6.395 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.4335, allocations: 7.984 kB / 0.7302 GB, free: 6.387 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.4335, allocations: 12 kB / 0.7302 GB, free: 6.375 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001403/0.4336, allocations: 188.5 kB / 0.7304 GB, free: 6.195 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4336, allocations: 0 / 0.7304 GB, free: 6.195 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001976/0.4338, allocations: 16 kB / 0.7304 GB, free: 6.18 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.0002138/0.4341, allocations: 125.3 kB / 0.7305 GB, free: 6.051 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002416/0.4343, allocations: 56 kB / 0.7306 GB, free: 5.996 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.4343, allocations: 0 / 0.7306 GB, free: 5.996 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.873e-05/0.4344, allocations: 27.97 kB / 0.7306 GB, free: 5.969 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.4347, allocations: 40.33 kB / 0.7306 GB, free: 5.934 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004737/0.4352, allocations: 336.2 kB / 0.731 GB, free: 5.574 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.4355, allocations: 0.7158 MB / 0.7316 GB, free: 4.832 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.011e-05/0.4355, allocations: 20.47 kB / 0.7317 GB, free: 4.812 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.512e-05/0.4356, allocations: 19.44 kB / 0.7317 GB, free: 4.793 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4356, allocations: 0 / 0.7317 GB, free: 4.793 MB / 0.545 GB Notification: Performance of Templates: time 0.004095/0.4397, allocations: 1.658 MB / 0.7333 GB, free: 3.16 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)