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.0009399/0.0009399, allocations: 83.59 kB / 20.45 MB, free: 4.113 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.0009723/0.0009723, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9974/0.9974, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.821/1.821, allocations: 377.8 MB / 0.6236 GB, free: 8.547 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.272e-06/1.272e-06, allocations: 0 / 0.8115 GB, free: 1.742 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.143e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002326/0.002347, allocations: 1.719 MB / 0.8132 GB, free: 28 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0007953/0.003142, allocations: 0.5985 MB / 0.8138 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.897e-05/0.003221, allocations: 7.938 kB / 0.8138 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.003397, allocations: 23.8 kB / 0.8138 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.003625, allocations: 72.28 kB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001651/0.00379, allocations: 68.75 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.003939, allocations: 135.5 kB / 0.8141 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.00407, allocations: 38.25 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.004236, allocations: 84.7 kB / 0.8142 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.115e-05/0.004318, allocations: 51.86 kB / 0.8142 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.00434, allocations: 8.75 kB / 0.8142 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.267e-05/0.004403, allocations: 24 kB / 0.8143 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.562e-05/0.004478, allocations: 44.7 kB / 0.8143 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.241e-05/0.004521, allocations: 31.86 kB / 0.8143 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.004705, allocations: 124.7 kB / 0.8144 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.004708, allocations: 0 / 0.8144 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.52e-07/0.004708, allocations: 0 / 0.8144 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.004713, allocations: 3.938 kB / 0.8145 GB, free: 14.72 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.0004631/0.005176, allocations: 493.6 kB / 0.8149 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.005212, allocations: 12.03 kB / 0.8149 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.005339, allocations: 24.84 kB / 0.815 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.005548, allocations: 198.8 kB / 0.8151 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.005559, allocations: 4.375 kB / 0.8152 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.005576, allocations: 8.375 kB / 0.8152 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001712/0.005747, allocations: 130.3 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.005757, allocations: 192 / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.005769, allocations: 5.906 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.005777, allocations: 3.938 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.068e-05/0.005818, allocations: 27.91 kB / 0.8153 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.006193, allocations: 361 kB / 0.8157 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 4.501e-05/0.006238, allocations: 31 kB / 0.8157 GB, free: 13.33 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.323e-05/0.006262, allocations: 11.75 kB / 0.8157 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.006277, allocations: 0 / 0.8157 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.006391, allocations: 132.3 kB / 0.8158 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.006392, allocations: 0.8438 kB / 0.8158 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.000153/0.006545, allocations: 61.53 kB / 0.8159 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.006577, allocations: 78.86 kB / 0.816 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.00673, allocations: 266.7 kB / 0.8162 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.006744, allocations: 25.7 kB / 0.8162 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.857e-05/0.006812, allocations: 182.7 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.006829, allocations: 7.953 kB / 0.8164 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.006861, allocations: 23.98 kB / 0.8165 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.006972, allocations: 0.5007 MB / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.258e-05/0.006994, allocations: 4 kB / 0.8169 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.69e-05/0.007031, allocations: 65 kB / 0.817 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.518e-05/0.007077, allocations: 40.12 kB / 0.817 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.007078, allocations: 0.5312 kB / 0.817 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.921e-05/0.007158, allocations: 62.81 kB / 0.8171 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.007171, allocations: 8 kB / 0.8171 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.007175, allocations: 1.094 kB / 0.8171 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.007189, allocations: 0 / 0.8171 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.806e-05/0.007257, allocations: 8 kB / 0.8171 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.007261, allocations: 0.9062 kB / 0.8171 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.301e-05/0.007294, allocations: 7.984 kB / 0.8171 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.007302, allocations: 8.75 kB / 0.8171 GB, free: 11.71 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 6.906e-05/0.007371, allocations: 160.5 kB / 0.8173 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.712e-05/0.007388, allocations: 20.8 kB / 0.8173 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.007421, allocations: 21.02 kB / 0.8173 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.007423, allocations: 1.344 kB / 0.8173 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.007427, allocations: 0 / 0.8173 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.696e-06/0.00743, allocations: 0 / 0.8173 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.975e-05/0.00753, allocations: 168.5 kB / 0.8175 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.00753, allocations: 0.8125 kB / 0.8175 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.007557, allocations: 7.938 kB / 0.8175 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.007558, allocations: 5.969 kB / 0.8175 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.007565, allocations: 4 kB / 0.8175 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.72e-07/0.007566, allocations: 0 / 0.8175 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.007567, allocations: 0 / 0.8175 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.594e-05/0.007653, allocations: 96.55 kB / 0.8176 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.052e-05/0.007664, allocations: 12.66 kB / 0.8176 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.007676, allocations: 4.047 kB / 0.8176 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.665e-05/0.007703, allocations: 11.42 kB / 0.8176 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.007741, allocations: 11.92 kB / 0.8176 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.007758, allocations: 4 kB / 0.8176 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.891e-05/0.007847, allocations: 193.5 kB / 0.8178 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007847, allocations: 0 / 0.8178 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001484/0.007996, allocations: 23.94 kB / 0.8179 GB, free: 10.92 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.0001882/0.008184, allocations: 132.5 kB / 0.818 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.97e-05/0.008274, allocations: 19.62 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.008276, allocations: 0.5625 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.216e-05/0.008298, allocations: 20.7 kB / 0.818 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.008512, allocations: 45.75 kB / 0.8181 GB, free: 10.7 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005715/0.009083, allocations: 273.7 kB / 0.8183 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.815e-05/0.009121, allocations: 71.89 kB / 0.8184 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.461e-05/0.009166, allocations: 15.98 kB / 0.8184 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.043e-05/0.009196, allocations: 12.5 kB / 0.8184 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of SimCode: time 8.12e-07/0.009197, allocations: 0 / 0.8184 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of Templates: time 0.003546/0.01274, allocations: 1.808 MB / 0.8202 GB, free: 8.543 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.207895304076374]