Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001204/0.001204, allocations: 109.8 kB / 16.37 MB, free: 6.305 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.001164/0.001164, allocations: 189.8 kB / 17.3 MB, free: 5.871 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.239/1.239, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.707/1.707, allocations: 292.3 MB / 0.5496 GB, free: 17.6 MB / 462.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.001415/0.001415, allocations: 76.45 kB / 0.6729 GB, free: 5.848 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2176, allocations: 114.6 MB / 0.7848 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003003/0.2207, allocations: 1.644 MB / 0.7864 GB, free: 1.516 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009594/0.2217, allocations: 0.5854 MB / 0.787 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2218, allocations: 4 kB / 0.787 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.222, allocations: 23.78 kB / 0.787 GB, free: 0.8945 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.2223, allocations: 71.67 kB / 0.7871 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.2225, allocations: 59.86 kB / 0.7871 GB, free: 0.7656 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002114/0.2227, allocations: 131.6 kB / 0.7872 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/0.2229, allocations: 49.44 kB / 0.7873 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.223, allocations: 63.72 kB / 0.7874 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.2232, allocations: 59.69 kB / 0.7874 GB, free: 472 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.2232, allocations: 8 kB / 0.7874 GB, free: 464 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7e-05/0.2233, allocations: 24 kB / 0.7874 GB, free: 440 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.199e-05/0.2234, allocations: 47.77 kB / 0.7875 GB, free: 392 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.113e-05/0.2234, allocations: 59.61 kB / 0.7875 GB, free: 332 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.2237, allocations: 143.4 kB / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2237, allocations: 0 / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2237, allocations: 0 / 0.7877 GB, free: 188 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.872e-06/0.2237, allocations: 0 / 0.7877 GB, free: 188 kB / 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.3609/0.5846, allocations: 472 kB / 0.7881 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.5846, allocations: 8.094 kB / 0.7881 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.5847, allocations: 18.34 kB / 0.7882 GB, free: 48.79 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.585, allocations: 240.1 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.5851, allocations: 6.828 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.5851, allocations: 4.031 kB / 0.7884 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002658/0.5854, allocations: 116.1 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.5854, allocations: 0 / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.5854, allocations: 3.938 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.5854, allocations: 2.625 kB / 0.7885 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002065/0.5856, allocations: 65.02 kB / 0.7886 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004734/0.5861, allocations: 380.3 kB / 0.7889 GB, free: 48.27 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.5862, allocations: 41.64 kB / 0.789 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.475e-05/0.5863, allocations: 28.31 kB / 0.789 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.5863, allocations: 4.828 kB / 0.789 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/0.5865, allocations: 98.25 kB / 0.7891 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.5865, allocations: 4.406 kB / 0.7891 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003724/0.5869, allocations: 124 kB / 0.7892 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.492e-05/0.587, allocations: 77.11 kB / 0.7893 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.5872, allocations: 258.3 kB / 0.7895 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.5872, allocations: 28.33 kB / 0.7896 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.548e-05/0.5872, allocations: 130.9 kB / 0.7897 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.5873, allocations: 3.906 kB / 0.7897 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.361e-05/0.5873, allocations: 22.64 kB / 0.7897 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.215e-05/0.5874, allocations: 327.3 kB / 0.79 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.5875, allocations: 24.64 kB / 0.7901 GB, free: 47.48 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.977e-05/0.5876, allocations: 50.67 kB / 0.7901 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.5878, allocations: 69.56 kB / 0.7902 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5878, allocations: 0 / 0.7902 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002352/0.588, allocations: 102.9 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.588, allocations: 6.25 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.5881, allocations: 3.062 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.5881, allocations: 1.438 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5882, allocations: 13.59 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.5882, allocations: 7.312 kB / 0.7903 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.147e-05/0.5883, allocations: 23.56 kB / 0.7903 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.5883, allocations: 3.562 kB / 0.7903 GB, free: 47.38 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 6.588e-05/0.5884, allocations: 126.4 kB / 0.7904 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.5884, allocations: 16.03 kB / 0.7905 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.695e-05/0.5884, allocations: 20.62 kB / 0.7905 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.5884, allocations: 2.688 kB / 0.7905 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.5884, allocations: 0.625 kB / 0.7905 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.489e-05/0.5885, allocations: 94.84 kB / 0.7906 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.5885, allocations: 0 / 0.7906 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.755e-05/0.5886, allocations: 13.59 kB / 0.7906 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.5886, allocations: 11.8 kB / 0.7906 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002657/0.5889, allocations: 164.9 kB / 0.7908 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002562/0.5892, allocations: 274.8 kB / 0.791 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001004/0.5893, allocations: 30.02 kB / 0.791 GB, free: 46.83 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001235/0.5894, allocations: 188.2 kB / 0.7912 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of Backend: time 3.71e-07/0.5894, allocations: 0 / 0.7912 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005944/0.59, allocations: 146.1 kB / 0.7914 GB, free: 46.69 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0005585/0.5906, allocations: 0.7395 MB / 0.7921 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of Templates: time 0.00418/0.5948, allocations: 1.918 MB / 0.794 GB, free: 45.96 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)