Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001068/0.001068, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001577/0.002644, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001078/0.001078, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001162/0.002239, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9258/0.9258, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08593/1.012, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.402/2.402, allocations: 447.1 MB / 0.675 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2459/2.648, allocations: 146 MB / 0.8176 GB, free: 3.824 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 0.8189 GB, free: 2.523 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.284e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.52 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002571/0.002594, allocations: 1.762 MB / 0.8206 GB, free: 0.7422 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0008742/0.003468, allocations: 0.6114 MB / 0.8212 GB, free: 128 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.339e-05/0.003552, allocations: 7.938 kB / 0.8212 GB, free: 120 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.003669, allocations: 31.67 kB / 0.8213 GB, free: 88 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.003845, allocations: 66.77 kB / 0.8213 GB, free: 24 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001872/0.004033, allocations: 79.77 kB / 0.8214 GB, free: 15.95 MB / 0.8074 GB Notification: Performance of NFFlatten.flatten: time 0.0001681/0.004201, allocations: 127.6 kB / 0.8215 GB, free: 15.82 MB / 0.8074 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.004323, allocations: 38.23 kB / 0.8216 GB, free: 15.78 MB / 0.8074 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.004542, allocations: 106.7 kB / 0.8217 GB, free: 15.68 MB / 0.8074 GB Notification: Performance of NFSimplifyModel.simplify: time 9.672e-05/0.004639, allocations: 47.89 kB / 0.8217 GB, free: 15.63 MB / 0.8074 GB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.004665, allocations: 8 kB / 0.8217 GB, free: 15.62 MB / 0.8074 GB Notification: Performance of NFFlatten.collectFunctions: time 8.247e-05/0.004747, allocations: 27.97 kB / 0.8217 GB, free: 15.6 MB / 0.8074 GB Notification: Performance of NFScalarize.scalarize: time 6.963e-05/0.004817, allocations: 35.86 kB / 0.8218 GB, free: 15.56 MB / 0.8074 GB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.004855, allocations: 27.88 kB / 0.8218 GB, free: 15.54 MB / 0.8074 GB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.005033, allocations: 107.5 kB / 0.8219 GB, free: 15.43 MB / 0.8074 GB Notification: Performance of FrontEnd - DAE generated: time 1.353e-05/0.005047, allocations: 0 / 0.8219 GB, free: 15.43 MB / 0.8074 GB Notification: Performance of FrontEnd: time 1.012e-06/0.005048, allocations: 4 kB / 0.8219 GB, free: 15.43 MB / 0.8074 GB Notification: Performance of Transformations before backend: time 1.452e-05/0.005062, allocations: 0 / 0.8219 GB, free: 15.43 MB / 0.8074 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.0005159/0.005578, allocations: 395.6 kB / 0.8223 GB, free: 15.02 MB / 0.8074 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.00561, allocations: 12.03 kB / 0.8223 GB, free: 15 MB / 0.8074 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.005777, allocations: 102 kB / 0.8224 GB, free: 14.89 MB / 0.8074 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.006005, allocations: 193.1 kB / 0.8226 GB, free: 14.67 MB / 0.8074 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-06/0.006014, allocations: 384 / 0.8226 GB, free: 14.67 MB / 0.8074 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/0.006031, allocations: 8.375 kB / 0.8226 GB, free: 14.66 MB / 0.8074 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.006204, allocations: 140.9 kB / 0.8227 GB, free: 14.5 MB / 0.8074 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.006211, allocations: 0 / 0.8227 GB, free: 14.5 MB / 0.8074 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.006222, allocations: 8 kB / 0.8227 GB, free: 14.5 MB / 0.8074 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.006227, allocations: 0 / 0.8227 GB, free: 14.5 MB / 0.8074 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.757e-05/0.006254, allocations: 11.94 kB / 0.8227 GB, free: 14.48 MB / 0.8074 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003105/0.006565, allocations: 225.7 kB / 0.823 GB, free: 14.25 MB / 0.8074 GB Notification: Performance of preOpt comSubExp (simulation): time 4.128e-05/0.006606, allocations: 22.58 kB / 0.823 GB, free: 14.21 MB / 0.8074 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.439e-05/0.00662, allocations: 4.859 kB / 0.823 GB, free: 14.21 MB / 0.8074 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.006632, allocations: 0 / 0.823 GB, free: 14.21 MB / 0.8074 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001461/0.006778, allocations: 120.5 kB / 0.8231 GB, free: 14.06 MB / 0.8074 GB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.006779, allocations: 0 / 0.8231 GB, free: 14.06 MB / 0.8074 GB Notification: Performance of matching and sorting (n=3): time 0.0001164/0.006895, allocations: 57.8 kB / 0.8231 GB, free: 14 MB / 0.8074 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.006919, allocations: 55.34 kB / 0.8232 GB, free: 13.93 MB / 0.8074 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.007058, allocations: 206.5 kB / 0.8234 GB, free: 13.71 MB / 0.8074 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.007071, allocations: 25.7 kB / 0.8234 GB, free: 13.68 MB / 0.8074 GB Notification: Performance of collectInitialEqns (initialization): time 4.77e-05/0.007119, allocations: 116.4 kB / 0.8235 GB, free: 13.57 MB / 0.8074 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.007138, allocations: 11.95 kB / 0.8235 GB, free: 13.55 MB / 0.8074 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.007171, allocations: 13.72 kB / 0.8236 GB, free: 13.54 MB / 0.8074 GB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.007261, allocations: 330.7 kB / 0.8239 GB, free: 13.2 MB / 0.8074 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.25e-05/0.007274, allocations: 3.984 kB / 0.8239 GB, free: 13.2 MB / 0.8074 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.026e-05/0.007314, allocations: 73.97 kB / 0.8239 GB, free: 13.11 MB / 0.8074 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.117e-05/0.007355, allocations: 36.48 kB / 0.824 GB, free: 13.06 MB / 0.8074 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.007357, allocations: 0 / 0.824 GB, free: 13.06 MB / 0.8074 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.164e-05/0.007429, allocations: 49.69 kB / 0.824 GB, free: 13.01 MB / 0.8074 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.007441, allocations: 7.938 kB / 0.824 GB, free: 13 MB / 0.8074 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.007445, allocations: 0 / 0.824 GB, free: 13 MB / 0.8074 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.007457, allocations: 0 / 0.824 GB, free: 13 MB / 0.8074 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.828e-05/0.007525, allocations: 11.98 kB / 0.824 GB, free: 12.99 MB / 0.8074 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.446e-06/0.007529, allocations: 3.984 kB / 0.8241 GB, free: 12.98 MB / 0.8074 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.315e-05/0.007572, allocations: 15.94 kB / 0.8241 GB, free: 12.97 MB / 0.8074 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.007586, allocations: 4 kB / 0.8241 GB, free: 12.96 MB / 0.8074 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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.426e-05/0.007651, allocations: 116.7 kB / 0.8242 GB, free: 12.84 MB / 0.8074 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.774e-05/0.007668, allocations: 7.984 kB / 0.8242 GB, free: 12.83 MB / 0.8074 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.007698, allocations: 17.03 kB / 0.8242 GB, free: 12.81 MB / 0.8074 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.0077, allocations: 4 kB / 0.8242 GB, free: 12.81 MB / 0.8074 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.007703, allocations: 4 kB / 0.8242 GB, free: 12.8 MB / 0.8074 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.007705, allocations: 0 / 0.8242 GB, free: 12.8 MB / 0.8074 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.948e-05/0.007795, allocations: 97.78 kB / 0.8243 GB, free: 12.69 MB / 0.8074 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.007796, allocations: 0 / 0.8243 GB, free: 12.69 MB / 0.8074 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.115e-05/0.007827, allocations: 7.984 kB / 0.8243 GB, free: 12.68 MB / 0.8074 GB Notification: Performance of postOpt removeConstants (simulation): time 1.278e-05/0.00784, allocations: 15.91 kB / 0.8243 GB, free: 12.67 MB / 0.8074 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.81e-07/0.007841, allocations: 0 / 0.8243 GB, free: 12.67 MB / 0.8074 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.007847, allocations: 4 kB / 0.8243 GB, free: 12.66 MB / 0.8074 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.007848, allocations: 0 / 0.8243 GB, free: 12.66 MB / 0.8074 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.00785, allocations: 3.984 kB / 0.8243 GB, free: 12.66 MB / 0.8074 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.572e-05/0.007926, allocations: 73 kB / 0.8244 GB, free: 12.57 MB / 0.8074 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.00794, allocations: 0 / 0.8244 GB, free: 12.57 MB / 0.8074 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.444e-05/0.007974, allocations: 11.98 kB / 0.8244 GB, free: 12.56 MB / 0.8074 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.693e-05/0.008001, allocations: 7.922 kB / 0.8244 GB, free: 12.55 MB / 0.8074 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.008012, allocations: 4 kB / 0.8244 GB, free: 12.55 MB / 0.8074 GB Notification: Performance of sorting global known variables: time 6.607e-05/0.008078, allocations: 76.86 kB / 0.8245 GB, free: 12.47 MB / 0.8074 GB Notification: Performance of sort global known variables: time 7e-08/0.008078, allocations: 0 / 0.8245 GB, free: 12.47 MB / 0.8074 GB Notification: Performance of remove unused functions: time 0.0001687/0.008247, allocations: 23.95 kB / 0.8245 GB, free: 12.45 MB / 0.8074 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.0002001/0.008447, allocations: 108.4 kB / 0.8246 GB, free: 12.34 MB / 0.8074 GB Notification: Performance of simCode: created initialization part: time 8.512e-05/0.008532, allocations: 20.89 kB / 0.8246 GB, free: 12.31 MB / 0.8074 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.00854, allocations: 4 kB / 0.8247 GB, free: 12.31 MB / 0.8074 GB Notification: Performance of simCode: created simulation system equations: time 2.702e-05/0.008567, allocations: 16.98 kB / 0.8247 GB, free: 12.29 MB / 0.8074 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.008856, allocations: 200.8 kB / 0.8249 GB, free: 12.07 MB / 0.8074 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008876/0.009744, allocations: 279.2 kB / 0.8251 GB, free: 11.77 MB / 0.8074 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.623e-05/0.00979, allocations: 67.33 kB / 0.8252 GB, free: 11.68 MB / 0.8074 GB Notification: Performance of simCode: alias equations: time 5.016e-05/0.00984, allocations: 16.58 kB / 0.8252 GB, free: 11.66 MB / 0.8074 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.137e-05/0.009932, allocations: 79.28 kB / 0.8253 GB, free: 11.59 MB / 0.8074 GB Notification: Performance of SimCode: time 6.21e-07/0.009932, allocations: 0 / 0.8253 GB, free: 11.59 MB / 0.8074 GB Notification: Performance of Templates: time 0.004292/0.01422, allocations: 1.893 MB / 0.8271 GB, free: 9.715 MB / 0.8074 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.217352259904146]