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.001255/0.001255, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.001286/0.001286, allocations: 161 kB / 23.82 MB, free: 0.7461 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.9383/0.9383, 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.845/1.845, allocations: 377.8 MB / 0.6236 GB, free: 8.559 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.422e-06/1.422e-06, allocations: 0 / 0.8115 GB, free: 1.664 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.246e-05, allocations: 3.312 kB / 0.8115 GB, free: 1.66 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002206/0.002229, allocations: 1.712 MB / 0.8132 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0007902/0.003019, allocations: 0.6018 MB / 0.8138 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.449e-05/0.003103, allocations: 7.938 kB / 0.8138 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.003279, allocations: 28.42 kB / 0.8138 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.003496, allocations: 64.5 kB / 0.8139 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.003694, allocations: 77.08 kB / 0.8139 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.003866, allocations: 135.5 kB / 0.8141 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.003996, allocations: 37.59 kB / 0.8141 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.004188, allocations: 85.27 kB / 0.8142 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.301e-05/0.004281, allocations: 43.89 kB / 0.8142 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.004306, allocations: 8 kB / 0.8142 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.611e-05/0.004372, allocations: 27.98 kB / 0.8143 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.004446, allocations: 53.2 kB / 0.8143 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.103e-05/0.004487, allocations: 27.92 kB / 0.8143 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001755/0.004662, allocations: 123.4 kB / 0.8145 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.004665, allocations: 0.6875 kB / 0.8145 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.22e-07/0.004665, allocations: 0 / 0.8145 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.00467, allocations: 1.031 kB / 0.8145 GB, free: 14.64 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.0004527/0.005123, allocations: 499.7 kB / 0.8149 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.005155, allocations: 8.75 kB / 0.8149 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.005288, allocations: 24.84 kB / 0.815 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.005496, allocations: 197.9 kB / 0.8151 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.005506, allocations: 384 / 0.8151 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.005521, allocations: 13.5 kB / 0.8152 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.005691, allocations: 142.2 kB / 0.8153 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.005698, allocations: 0.9375 kB / 0.8153 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.00571, allocations: 4.375 kB / 0.8153 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.005718, allocations: 4.656 kB / 0.8153 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.29e-05/0.005771, allocations: 19.92 kB / 0.8153 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.006251, allocations: 360.8 kB / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.371e-05/0.006304, allocations: 31 kB / 0.8157 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.163e-05/0.006326, allocations: 7.688 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.006338, allocations: 1.875 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001234/0.006461, allocations: 131.9 kB / 0.8158 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.006462, allocations: 0 / 0.8158 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001477/0.00661, allocations: 61.53 kB / 0.8159 GB, free: 13 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.006645, allocations: 82.58 kB / 0.816 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.006799, allocations: 258.7 kB / 0.8162 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.006812, allocations: 25.7 kB / 0.8162 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.006883, allocations: 182.7 kB / 0.8164 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.006902, allocations: 15.38 kB / 0.8164 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.006932, allocations: 19.38 kB / 0.8165 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.007049, allocations: 0.5 MB / 0.8169 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.802e-05/0.007067, allocations: 4 kB / 0.8169 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.153e-05/0.007109, allocations: 68.44 kB / 0.817 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.261e-05/0.007151, allocations: 35 kB / 0.817 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.007154, allocations: 0 / 0.817 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.975e-05/0.007234, allocations: 62.69 kB / 0.8171 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.007246, allocations: 8.562 kB / 0.8171 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.00725, allocations: 0 / 0.8171 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.007262, allocations: 0.5625 kB / 0.8171 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.671e-05/0.007339, allocations: 13.39 kB / 0.8171 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.007344, allocations: 0 / 0.8171 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.736e-05/0.007381, allocations: 7.938 kB / 0.8171 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.00739, allocations: 7.938 kB / 0.8171 GB, free: 11.62 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.402e-05/0.007464, allocations: 161 kB / 0.8173 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.007484, allocations: 20.48 kB / 0.8173 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.007513, allocations: 22.98 kB / 0.8173 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.007515, allocations: 0 / 0.8173 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.007518, allocations: 3.938 kB / 0.8173 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.007521, allocations: 0 / 0.8173 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000112/0.007633, allocations: 168.5 kB / 0.8175 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.007634, allocations: 0 / 0.8175 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.993e-05/0.007664, allocations: 4.531 kB / 0.8175 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.007666, allocations: 5.094 kB / 0.8175 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.007674, allocations: 0 / 0.8175 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.007676, allocations: 4.922 kB / 0.8175 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.007677, allocations: 0 / 0.8175 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.007782, allocations: 100.2 kB / 0.8176 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.175e-05/0.007794, allocations: 13.25 kB / 0.8176 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.007808, allocations: 4 kB / 0.8176 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.767e-05/0.007835, allocations: 4 kB / 0.8176 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/0.007874, allocations: 8.922 kB / 0.8176 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.007892, allocations: 8 kB / 0.8176 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.37e-05/0.007986, allocations: 195.8 kB / 0.8178 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.007986, allocations: 0 / 0.8178 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001464/0.008132, allocations: 16 kB / 0.8178 GB, free: 10.84 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.0001989/0.008331, allocations: 138.9 kB / 0.818 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.38e-05/0.008425, allocations: 23.56 kB / 0.818 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.008426, allocations: 1.125 kB / 0.818 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.365e-05/0.00845, allocations: 15.67 kB / 0.818 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.008669, allocations: 46.98 kB / 0.8181 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005581/0.009227, allocations: 269.4 kB / 0.8183 GB, free: 10.32 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.283e-05/0.00927, allocations: 71.89 kB / 0.8184 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.00932, allocations: 13.52 kB / 0.8184 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.532e-05/0.009355, allocations: 17.06 kB / 0.8184 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of SimCode: time 7.01e-07/0.009356, allocations: 0 / 0.8184 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of Templates: time 0.003909/0.01327, allocations: 1.905 MB / 0.8203 GB, free: 8.363 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: 4.953857449814677]