Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.116/2.116, allocations: 251.1 MB / 266.7 MB, free: 11.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001327/0.001327, allocations: 184.9 kB / 326.3 MB, free: 2.84 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.46/2.46, allocations: 205.4 MB / 0.5772 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 105.2 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004718/0.0004719, allocations: 15.45 kB / 0.7957 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1997, allocations: 106.3 MB / 0.8995 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003546/0.2033, allocations: 1.328 MB / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001845/0.2053, allocations: 0.5583 MB / 0.9013 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.2054, allocations: 11.88 kB / 0.9013 GB, free: 63.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.2057, allocations: 23.84 kB / 0.9014 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003615/0.2061, allocations: 55.81 kB / 0.9014 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.2064, allocations: 51.88 kB / 0.9015 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003813/0.2068, allocations: 119.6 kB / 0.9016 GB, free: 63.33 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.2072, allocations: 41.47 kB / 0.9016 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.2074, allocations: 43.78 kB / 0.9017 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.2076, allocations: 55.7 kB / 0.9017 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.2077, allocations: 0 / 0.9017 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.2078, allocations: 19.98 kB / 0.9017 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.2079, allocations: 43.83 kB / 0.9018 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.208, allocations: 37.64 kB / 0.9018 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.2083, allocations: 99.81 kB / 0.9019 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2083, allocations: 0 / 0.9019 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.973e-06/0.2083, allocations: 4 kB / 0.9019 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.2083, allocations: 0 / 0.9019 GB, free: 62.98 MB / 0.6042 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.000953/0.2093, allocations: 460.9 kB / 0.9024 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.2094, allocations: 8.031 kB / 0.9024 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.93e-05/0.2095, allocations: 16.75 kB / 0.9024 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003837/0.2099, allocations: 221 kB / 0.9026 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.2099, allocations: 8.375 kB / 0.9026 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.2099, allocations: 8.375 kB / 0.9026 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.2105, allocations: 112 kB / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2106, allocations: 0 / 0.9027 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.2106, allocations: 7.984 kB / 0.9027 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.2106, allocations: 4 kB / 0.9027 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006408/0.2113, allocations: 79.88 kB / 0.9028 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.2124, allocations: 396.5 kB / 0.9032 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.2128, allocations: 46.55 kB / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.2131, allocations: 36.91 kB / 0.9033 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.2131, allocations: 3.984 kB / 0.9033 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005286/0.2137, allocations: 105.1 kB / 0.9034 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 3.557e-06/0.2137, allocations: 0 / 0.9034 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.001083/0.2148, allocations: 157.2 kB / 0.9035 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.2149, allocations: 77.11 kB / 0.9036 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004771/0.2154, allocations: 249 kB / 0.9038 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.2154, allocations: 33.64 kB / 0.9039 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.2155, allocations: 132 kB / 0.904 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.2156, allocations: 3.906 kB / 0.904 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.2156, allocations: 4 kB / 0.904 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.817e-05/0.2157, allocations: 326.8 kB / 0.9043 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/0.2161, allocations: 31.97 kB / 0.9043 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.2164, allocations: 59.41 kB / 0.9044 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.2167, allocations: 31.91 kB / 0.9044 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.2168, allocations: 4.031 kB / 0.9044 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007419/0.2175, allocations: 117.4 kB / 0.9045 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.2176, allocations: 9.656 kB / 0.9045 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2176, allocations: 0 / 0.9045 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.2176, allocations: 4 kB / 0.9045 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.2179, allocations: 19.92 kB / 0.9046 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.2179, allocations: 0 / 0.9046 GB, free: 60.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/0.2182, allocations: 27.83 kB / 0.9046 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.2183, allocations: 0 / 0.9046 GB, free: 60 MB / 0.6042 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.0001789/0.2185, allocations: 129.8 kB / 0.9047 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.2185, allocations: 15.81 kB / 0.9047 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.747e-05/0.2186, allocations: 21.23 kB / 0.9048 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.2186, allocations: 3.938 kB / 0.9048 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.2187, allocations: 0 / 0.9048 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.235e-05/0.2188, allocations: 92.91 kB / 0.9048 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.2188, allocations: 8 kB / 0.9049 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.2191, allocations: 19.98 kB / 0.9049 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.2192, allocations: 4 kB / 0.9049 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008218/0.22, allocations: 188.8 kB / 0.9051 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007509/0.2208, allocations: 286.5 kB / 0.9053 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003206/0.2212, allocations: 31.97 kB / 0.9054 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003293/0.2215, allocations: 188.5 kB / 0.9055 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of Backend: time 1.262e-06/0.2216, allocations: 0 / 0.9055 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001334/0.2229, allocations: 170.5 kB / 0.9057 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001175/0.2241, allocations: 0.77 MB / 0.9065 GB, free: 58 MB / 0.6042 GB Notification: Performance of Templates: time 0.009437/0.2336, allocations: 1.701 MB / 0.9081 GB, free: 56.31 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)