Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.689/2.689, allocations: 287.5 MB / 302.4 MB, free: 8.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 184.9 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.258/2.258, allocations: 205.4 MB / 0.6297 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001637/0.001637, allocations: 88.98 kB / 0.743 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004788/0.0004792, allocations: 19.03 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2022, allocations: 115.3 MB / 0.9783 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002123/0.2044, allocations: 1.332 MB / 0.9796 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.2057, allocations: 0.5546 MB / 0.9802 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.2058, allocations: 4 kB / 0.9802 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.206, allocations: 15.86 kB / 0.9802 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.2063, allocations: 59.73 kB / 0.9803 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.2066, allocations: 55.94 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002036/0.2068, allocations: 115.6 kB / 0.9804 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.207, allocations: 41.39 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.2071, allocations: 43.78 kB / 0.9805 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.2073, allocations: 55.7 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.2073, allocations: 4 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.028e-05/0.2074, allocations: 15.98 kB / 0.9806 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.27e-05/0.2075, allocations: 27.91 kB / 0.9806 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.2075, allocations: 49.58 kB / 0.9807 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.2077, allocations: 104 kB / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2077, allocations: 0 / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.455e-06/0.2078, allocations: 0 / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.2078, allocations: 0 / 0.9808 GB, free: 25.86 MB / 0.6198 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.0006839/0.2085, allocations: 454.6 kB / 0.9812 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2085, allocations: 12.02 kB / 0.9812 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.451e-05/0.2086, allocations: 23.7 kB / 0.9812 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002787/0.2089, allocations: 227.6 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.2089, allocations: 4 kB / 0.9814 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.2089, allocations: 4 kB / 0.9814 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004046/0.2094, allocations: 118.6 kB / 0.9816 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2094, allocations: 0 / 0.9816 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.2094, allocations: 4 kB / 0.9816 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.2094, allocations: 0 / 0.9816 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.2098, allocations: 83.88 kB / 0.9816 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007609/0.2106, allocations: 392.5 kB / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002601/0.2109, allocations: 58.38 kB / 0.9821 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.2111, allocations: 40.89 kB / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.2111, allocations: 0 / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.2115, allocations: 101.1 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.714e-06/0.2115, allocations: 4 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0007049/0.2122, allocations: 141.4 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.2123, allocations: 77.11 kB / 0.9824 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.2126, allocations: 253 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.2127, allocations: 29.7 kB / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.542e-05/0.2127, allocations: 132 kB / 0.9828 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.2128, allocations: 7.906 kB / 0.9828 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.2128, allocations: 0 / 0.9828 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.682e-05/0.2129, allocations: 322.8 kB / 0.9831 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.2131, allocations: 35.97 kB / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.2133, allocations: 63.58 kB / 0.9832 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.2135, allocations: 31.97 kB / 0.9833 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2135, allocations: 0 / 0.9833 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000481/0.214, allocations: 121.4 kB / 0.9834 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.2141, allocations: 17.73 kB / 0.9834 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2141, allocations: 4 kB / 0.9834 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.2141, allocations: 0 / 0.9834 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.2143, allocations: 20.08 kB / 0.9834 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.2143, allocations: 3.984 kB / 0.9834 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.2145, allocations: 15.98 kB / 0.9834 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2145, allocations: 0 / 0.9834 GB, free: 22.87 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001293/0.2146, allocations: 129.8 kB / 0.9836 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.911e-05/0.2147, allocations: 23.67 kB / 0.9836 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.2147, allocations: 17.25 kB / 0.9836 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2148, allocations: 0 / 0.9836 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.2148, allocations: 3.984 kB / 0.9836 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2148, allocations: 4 kB / 0.9836 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.215, allocations: 213.6 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.215, allocations: 0 / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.2152, allocations: 15.98 kB / 0.9838 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.2152, allocations: 3.953 kB / 0.9838 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.2152, allocations: 7.938 kB / 0.9838 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.2152, allocations: 4 kB / 0.9838 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2152, allocations: 0 / 0.9838 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004808/0.2157, allocations: 140.8 kB / 0.984 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.2158, allocations: 96.84 kB / 0.9841 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.2158, allocations: 7.953 kB / 0.9841 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.216, allocations: 11.98 kB / 0.9841 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.2161, allocations: 7.984 kB / 0.9841 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.2161, allocations: 4 kB / 0.9841 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002214/0.2163, allocations: 196.5 kB / 0.9843 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.01e-07/0.2164, allocations: 0 / 0.9843 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002921/0.2167, allocations: 19.91 kB / 0.9843 GB, free: 21.89 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002586/0.2169, allocations: 114.1 kB / 0.9844 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000478/0.2174, allocations: 71.89 kB / 0.9845 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.2174, allocations: 0 / 0.9845 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.2177, allocations: 40.16 kB / 0.9845 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.2181, allocations: 41.7 kB / 0.9846 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000712/0.2188, allocations: 306.4 kB / 0.9848 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.219, allocations: 0.7238 MB / 0.9856 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001102/0.2192, allocations: 20.55 kB / 0.9856 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.069e-05/0.2192, allocations: 15.44 kB / 0.9856 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of SimCode: time 2.164e-06/0.2192, allocations: 4 kB / 0.9856 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of Templates: time 0.006128/0.2254, allocations: 1.561 MB / 0.9871 GB, free: 18.96 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)