Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009716/0.0009716, allocations: 81.95 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 166 kB / 24.87 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9753/0.9753, allocations: 177.1 MB / 205.3 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.826/1.826, allocations: 377.9 MB / 0.6247 GB, free: 8.422 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|ramp.startTime|const.y|cosine.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 0.8128 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.538e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.48 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002315/0.00234, allocations: 1.697 MB / 0.8144 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0008037/0.003144, allocations: 0.5906 MB / 0.815 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.306e-05/0.003237, allocations: 4 kB / 0.815 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001974/0.003435, allocations: 31.67 kB / 0.815 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.003644, allocations: 69.12 kB / 0.8151 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001729/0.003817, allocations: 79.83 kB / 0.8152 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.003983, allocations: 136 kB / 0.8153 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.004115, allocations: 39.12 kB / 0.8153 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.004291, allocations: 79.8 kB / 0.8154 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.435e-05/0.004385, allocations: 51.81 kB / 0.8155 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.004409, allocations: 8 kB / 0.8155 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.136e-05/0.00448, allocations: 20.53 kB / 0.8155 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.697e-05/0.004567, allocations: 49.45 kB / 0.8155 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.485e-05/0.004612, allocations: 39.84 kB / 0.8156 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.00481, allocations: 119.4 kB / 0.8157 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.004816, allocations: 0 / 0.8157 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.452e-06/0.004818, allocations: 0.5938 kB / 0.8157 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.004824, allocations: 0 / 0.8157 GB, free: 14.48 MB / 0.7761 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.0004534/0.005277, allocations: 0.4884 MB / 0.8162 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.005309, allocations: 8.812 kB / 0.8162 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.005434, allocations: 29.97 kB / 0.8162 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.005638, allocations: 193.4 kB / 0.8164 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.005649, allocations: 4.375 kB / 0.8164 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.005662, allocations: 8.375 kB / 0.8164 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.005826, allocations: 128.1 kB / 0.8165 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.005834, allocations: 192 / 0.8165 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.005844, allocations: 4.375 kB / 0.8165 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.005852, allocations: 7.938 kB / 0.8165 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.714e-05/0.005879, allocations: 16.83 kB / 0.8165 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.006234, allocations: 320 kB / 0.8168 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 4.613e-05/0.00628, allocations: 35.67 kB / 0.8169 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.001e-05/0.0063, allocations: 13.22 kB / 0.8169 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.006313, allocations: 4.062 kB / 0.8169 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.006429, allocations: 127.8 kB / 0.817 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.00643, allocations: 0 / 0.817 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001342/0.006564, allocations: 58.16 kB / 0.8171 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.006602, allocations: 77.11 kB / 0.8172 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.006749, allocations: 263.2 kB / 0.8174 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.006765, allocations: 30.2 kB / 0.8174 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.937e-05/0.006844, allocations: 186.7 kB / 0.8176 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.006862, allocations: 4.516 kB / 0.8176 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.006896, allocations: 28.73 kB / 0.8176 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003942/0.00729, allocations: 0.5 MB / 0.8181 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.694e-05/0.007307, allocations: 4 kB / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.631e-05/0.007344, allocations: 60.45 kB / 0.8182 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.984e-05/0.007384, allocations: 37.55 kB / 0.8182 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.007386, allocations: 0 / 0.8182 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.565e-05/0.007461, allocations: 61.55 kB / 0.8183 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.007473, allocations: 4.531 kB / 0.8183 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.007478, allocations: 0.7188 kB / 0.8183 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.007487, allocations: 4 kB / 0.8183 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-05/0.007551, allocations: 8.734 kB / 0.8183 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-06/0.007554, allocations: 0 / 0.8183 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.643e-05/0.00759, allocations: 16.92 kB / 0.8183 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-06/0.007595, allocations: 0 / 0.8183 GB, free: 11.53 MB / 0.7761 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 7.344e-05/0.007669, allocations: 169.7 kB / 0.8185 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.00769, allocations: 20.14 kB / 0.8185 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/0.007718, allocations: 17.02 kB / 0.8185 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.00772, allocations: 4.828 kB / 0.8185 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.007722, allocations: 3.938 kB / 0.8185 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.007725, allocations: 2.219 kB / 0.8185 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.39e-05/0.007819, allocations: 133.1 kB / 0.8187 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.00782, allocations: 0 / 0.8187 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.002e-05/0.00785, allocations: 8 kB / 0.8187 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.007853, allocations: 3.984 kB / 0.8187 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.007857, allocations: 0 / 0.8187 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.007858, allocations: 2.844 kB / 0.8187 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.007859, allocations: 0 / 0.8187 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.249e-05/0.007952, allocations: 96.28 kB / 0.8188 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.291e-05/0.007965, allocations: 11.91 kB / 0.8188 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.007977, allocations: 0 / 0.8188 GB, free: 11.01 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.808e-05/0.008005, allocations: 7.984 kB / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.083e-05/0.008036, allocations: 0 / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.008054, allocations: 9.062 kB / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.866e-05/0.008132, allocations: 193.3 kB / 0.819 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.008132, allocations: 0 / 0.819 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001507/0.008283, allocations: 21.12 kB / 0.819 GB, free: 10.79 MB / 0.7761 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.0002216/0.008505, allocations: 135.8 kB / 0.8191 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.088e-05/0.008595, allocations: 17.53 kB / 0.8191 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.008598, allocations: 0 / 0.8191 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.747e-05/0.008625, allocations: 23.61 kB / 0.8192 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.008849, allocations: 52.53 kB / 0.8192 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004791/0.009328, allocations: 268.5 kB / 0.8195 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.624e-05/0.009364, allocations: 67.33 kB / 0.8195 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.999e-05/0.009404, allocations: 9.297 kB / 0.8195 GB, free: 10.17 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.952e-05/0.009484, allocations: 94.89 kB / 0.8196 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of SimCode: time 7.81e-07/0.009485, allocations: 0 / 0.8196 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of Templates: time 0.003784/0.01327, allocations: 1.956 MB / 0.8215 GB, free: 8.184 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.092049297876656]