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.0007798/0.0007798, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001009/0.001789, allocations: 435.8 kB / 10.33 MB, free: 368 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.0006956/0.0006956, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008986/0.001594, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 1.03/1.03, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09426/1.124, allocations: 53.65 MB / 243.2 MB, free: 15.59 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.399/2.399, allocations: 446.7 MB / 0.6745 GB, free: 6.246 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2468/2.646, allocations: 145.9 MB / 0.817 GB, free: 4.238 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.814e-06/1.814e-06, allocations: 0 / 0.8183 GB, free: 2.945 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.304e-05/2.486e-05, allocations: 4.984 kB / 0.8183 GB, free: 2.941 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002649/0.002674, allocations: 1.74 MB / 0.82 GB, free: 1.184 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0007761/0.00345, allocations: 0.6192 MB / 0.8206 GB, free: 0.5586 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.003526, allocations: 7.938 kB / 0.8206 GB, free: 0.5508 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.003644, allocations: 23.73 kB / 0.8206 GB, free: 0.5273 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.003809, allocations: 59.69 kB / 0.8207 GB, free: 480 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.00396, allocations: 83.77 kB / 0.8208 GB, free: 396 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.004106, allocations: 131.5 kB / 0.8209 GB, free: 264 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.004229, allocations: 34.31 kB / 0.8209 GB, free: 232 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.004415, allocations: 104.5 kB / 0.821 GB, free: 128 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.004503, allocations: 47.83 kB / 0.8211 GB, free: 80 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.004526, allocations: 8 kB / 0.8211 GB, free: 72 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 8.157e-05/0.004607, allocations: 31.92 kB / 0.8211 GB, free: 40 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 6.473e-05/0.004672, allocations: 35.86 kB / 0.8211 GB, free: 4 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 4.736e-05/0.004719, allocations: 24.06 kB / 0.8212 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.004876, allocations: 123.4 kB / 0.8213 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.298e-05/0.004889, allocations: 0 / 0.8213 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.152e-06/0.00489, allocations: 0 / 0.8213 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.362e-05/0.004904, allocations: 0 / 0.8213 GB, free: 15.86 MB / 0.8073 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.0004546/0.005358, allocations: 383.7 kB / 0.8216 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.005391, allocations: 12.61 kB / 0.8216 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.005539, allocations: 102 kB / 0.8217 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.005737, allocations: 197.1 kB / 0.8219 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.005747, allocations: 8.359 kB / 0.8219 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.005759, allocations: 8.375 kB / 0.8219 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001572/0.005916, allocations: 136.9 kB / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.005923, allocations: 0 / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.005932, allocations: 0 / 0.8221 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.005937, allocations: 4 kB / 0.8221 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.518e-05/0.005962, allocations: 11.98 kB / 0.8221 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000282/0.006244, allocations: 225.7 kB / 0.8223 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.035e-05/0.006285, allocations: 26.56 kB / 0.8223 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.385e-05/0.006298, allocations: 4.859 kB / 0.8223 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.006311, allocations: 8 kB / 0.8223 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/0.006416, allocations: 116.5 kB / 0.8225 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.006417, allocations: 0 / 0.8225 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001123/0.006529, allocations: 41.69 kB / 0.8225 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.006558, allocations: 63.33 kB / 0.8226 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.006678, allocations: 209.1 kB / 0.8228 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.006689, allocations: 25.7 kB / 0.8228 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.006731, allocations: 120.4 kB / 0.8229 GB, free: 14 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.006746, allocations: 3.953 kB / 0.8229 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.006776, allocations: 21.7 kB / 0.8229 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.606e-05/0.006852, allocations: 330.7 kB / 0.8232 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/0.006862, allocations: 0 / 0.8232 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.604e-05/0.006898, allocations: 81.95 kB / 0.8233 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.82e-05/0.006926, allocations: 16.55 kB / 0.8233 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.006928, allocations: 0 / 0.8233 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.839e-05/0.006987, allocations: 57.64 kB / 0.8234 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.006998, allocations: 4 kB / 0.8234 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.007002, allocations: 0 / 0.8234 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.00701, allocations: 4 kB / 0.8234 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.496e-05/0.007075, allocations: 4 kB / 0.8234 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.007079, allocations: 3.984 kB / 0.8234 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.082e-05/0.00711, allocations: 15.88 kB / 0.8234 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.007122, allocations: 7.938 kB / 0.8234 GB, free: 13.41 MB / 0.8073 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.454e-05/0.007187, allocations: 116.6 kB / 0.8235 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/0.007201, allocations: 11.98 kB / 0.8235 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.794e-05/0.007228, allocations: 21.08 kB / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.00723, allocations: 0 / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.007232, allocations: 0 / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.007235, allocations: 288 / 0.8236 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.687e-05/0.007312, allocations: 97.78 kB / 0.8237 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.007313, allocations: 0 / 0.8237 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.127e-05/0.007344, allocations: 15.98 kB / 0.8237 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.218e-05/0.007356, allocations: 19.89 kB / 0.8237 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.007357, allocations: 0 / 0.8237 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-06/0.007361, allocations: 0 / 0.8237 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.007362, allocations: 0 / 0.8237 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.007363, allocations: 4 kB / 0.8237 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.687e-05/0.00743, allocations: 80.97 kB / 0.8238 GB, free: 13 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.007443, allocations: 0 / 0.8238 GB, free: 13 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.513e-05/0.007468, allocations: 7.984 kB / 0.8238 GB, free: 12.99 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/0.007498, allocations: 8 kB / 0.8238 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.007511, allocations: 11.98 kB / 0.8238 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.00756, allocations: 61.64 kB / 0.8239 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007561, allocations: 0 / 0.8239 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001147/0.007675, allocations: 23.95 kB / 0.8239 GB, free: 12.89 MB / 0.8073 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.0001736/0.007849, allocations: 106.7 kB / 0.824 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.504e-05/0.007934, allocations: 20.84 kB / 0.824 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/0.007942, allocations: 4 kB / 0.824 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.801e-05/0.00796, allocations: 12.8 kB / 0.824 GB, free: 12.73 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.008121, allocations: 58.41 kB / 0.8241 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007561/0.008878, allocations: 283.3 kB / 0.8243 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.693e-05/0.008915, allocations: 71.33 kB / 0.8244 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.794e-05/0.008953, allocations: 8.484 kB / 0.8244 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.152e-05/0.009034, allocations: 83.28 kB / 0.8245 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of SimCode: time 9.02e-07/0.009035, allocations: 0 / 0.8245 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of Templates: time 0.003753/0.01279, allocations: 1.906 MB / 0.8264 GB, free: 10.33 MB / 0.8073 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.178569106385112]