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.004588/0.004589, allocations: 100.4 kB / 15.73 MB, free: 6.047 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.001074/0.001074, allocations: 197.1 kB / 16.67 MB, free: 5.977 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.247/1.247, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.399/1.399, allocations: 251.7 MB / 0.5094 GB, free: 3.035 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.001537/0.001537, allocations: 68.47 kB / 0.7258 GB, free: 9.047 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1865, allocations: 104.7 MB / 0.828 GB, free: 236 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002914/0.1895, allocations: 1.637 MB / 0.8296 GB, free: 14.58 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1905, allocations: 0.5852 MB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.1907, allocations: 7.938 kB / 0.8302 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.1909, allocations: 35.77 kB / 0.8302 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.1912, allocations: 63.67 kB / 0.8303 GB, free: 13.88 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.1914, allocations: 63.86 kB / 0.8304 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.1916, allocations: 135.5 kB / 0.8305 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.1918, allocations: 53.39 kB / 0.8305 GB, free: 13.63 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.192, allocations: 59.7 kB / 0.8306 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.1921, allocations: 55.77 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.1921, allocations: 8 kB / 0.8307 GB, free: 13.51 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.577e-05/0.1922, allocations: 27.98 kB / 0.8307 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.716e-05/0.1923, allocations: 39.84 kB / 0.8307 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.401e-05/0.1924, allocations: 59.59 kB / 0.8308 GB, free: 13.38 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.1926, allocations: 147.4 kB / 0.8309 GB, free: 13.24 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1926, allocations: 4 kB / 0.8309 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1926, allocations: 0 / 0.8309 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.1926, allocations: 0 / 0.8309 GB, free: 13.23 MB / 0.6544 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.0006151/0.1932, allocations: 470.6 kB / 0.8314 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1933, allocations: 16.03 kB / 0.8314 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.9e-05/0.1933, allocations: 28.58 kB / 0.8314 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.1937, allocations: 232.8 kB / 0.8316 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.1937, allocations: 8.375 kB / 0.8316 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.1937, allocations: 4.375 kB / 0.8316 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.194, allocations: 105.9 kB / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.194, allocations: 4 kB / 0.8317 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.194, allocations: 8 kB / 0.8318 GB, free: 12.28 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.194, allocations: 0 / 0.8318 GB, free: 12.28 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1942, allocations: 63.88 kB / 0.8318 GB, free: 12.22 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005584/0.1948, allocations: 384.5 kB / 0.8322 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.1949, allocations: 38.55 kB / 0.8322 GB, free: 11.75 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.491e-05/0.195, allocations: 28.91 kB / 0.8322 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.195, allocations: 0 / 0.8322 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.1953, allocations: 101.1 kB / 0.8323 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1953, allocations: 0 / 0.8323 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003952/0.1957, allocations: 125.3 kB / 0.8325 GB, free: 11.47 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.1957, allocations: 77.11 kB / 0.8325 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.196, allocations: 260.8 kB / 0.8328 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.196, allocations: 29.7 kB / 0.8328 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.1961, allocations: 124.1 kB / 0.8329 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.1961, allocations: 11.81 kB / 0.8329 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.1961, allocations: 21.7 kB / 0.833 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.023e-05/0.1962, allocations: 322.8 kB / 0.8333 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.506e-05/0.1963, allocations: 23.97 kB / 0.8333 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.1964, allocations: 51.59 kB / 0.8333 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.1966, allocations: 66.47 kB / 0.8334 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1966, allocations: 0 / 0.8334 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002445/0.1969, allocations: 109.4 kB / 0.8335 GB, free: 10.32 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1969, allocations: 4 kB / 0.8335 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1969, allocations: 96 / 0.8335 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1969, allocations: 7.922 kB / 0.8335 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.197, allocations: 11.98 kB / 0.8335 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1971, allocations: 4 kB / 0.8335 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.657e-05/0.1972, allocations: 20.02 kB / 0.8336 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.1972, allocations: 7.938 kB / 0.8336 GB, free: 10.26 MB / 0.6544 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.727e-05/0.1973, allocations: 129.8 kB / 0.8337 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.1973, allocations: 15.81 kB / 0.8337 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.1974, allocations: 21.23 kB / 0.8337 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1974, allocations: 3.938 kB / 0.8337 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1974, allocations: 0 / 0.8337 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1974, allocations: 3.938 kB / 0.8337 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.1975, allocations: 217.6 kB / 0.8339 GB, free: 9.816 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1975, allocations: 4 kB / 0.8339 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.362e-05/0.1976, allocations: 11.98 kB / 0.834 GB, free: 9.801 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1976, allocations: 0 / 0.834 GB, free: 9.801 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.1976, allocations: 4 kB / 0.834 GB, free: 9.797 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1976, allocations: 3.938 kB / 0.834 GB, free: 9.793 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1977, allocations: 0 / 0.834 GB, free: 9.793 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.1979, allocations: 124.8 kB / 0.8341 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.198, allocations: 88.92 kB / 0.8342 GB, free: 9.547 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.198, allocations: 3.938 kB / 0.8342 GB, free: 9.543 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.38e-05/0.1981, allocations: 15.92 kB / 0.8342 GB, free: 9.527 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.1981, allocations: 7.984 kB / 0.8342 GB, free: 9.52 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.1982, allocations: 4 kB / 0.8342 GB, free: 9.516 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000159/0.1983, allocations: 188.5 kB / 0.8344 GB, free: 9.336 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1983, allocations: 0 / 0.8344 GB, free: 9.336 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002126/0.1985, allocations: 24 kB / 0.8344 GB, free: 9.312 MB / 0.6544 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.000223/0.1988, allocations: 125.4 kB / 0.8345 GB, free: 9.188 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000267/0.1991, allocations: 56.02 kB / 0.8346 GB, free: 9.133 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1991, allocations: 3.984 kB / 0.8346 GB, free: 9.129 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.374e-05/0.1992, allocations: 23.92 kB / 0.8346 GB, free: 9.105 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.1994, allocations: 46.92 kB / 0.8346 GB, free: 9.059 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005003/0.2, allocations: 279.3 kB / 0.8349 GB, free: 8.762 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.2002, allocations: 0.7275 MB / 0.8356 GB, free: 8.008 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.458e-05/0.2003, allocations: 16.53 kB / 0.8356 GB, free: 7.992 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.2003, allocations: 19.44 kB / 0.8357 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.2003, allocations: 3.938 kB / 0.8357 GB, free: 7.973 MB / 0.6544 GB Notification: Performance of Templates: time 0.004493/0.2048, allocations: 1.777 MB / 0.8374 GB, free: 6.223 MB / 0.6544 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)