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.001783/0.001783, allocations: 107.8 kB / 19.71 MB, free: 2.145 MB / 14.72 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.00193/0.00193, allocations: 217 kB / 23 MB, free: 4.969 MB / 14.72 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.563/1.563, allocations: 230.6 MB / 256.8 MB, free: 7.836 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.247/3.247, allocations: 0.49 GB / 0.7959 GB, free: 35.61 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 70.42 kB / 1.155 GB, free: 25.26 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.414, allocations: 176.1 MB / 1.327 GB, free: 1.094 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003533/0.4175, allocations: 1.639 MB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.4187, allocations: 0.5884 MB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.4188, allocations: 7.938 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000199/0.419, allocations: 27.78 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003228/0.4193, allocations: 63.62 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.4196, allocations: 75.83 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002128/0.4198, allocations: 135.5 kB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.42, allocations: 37.61 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000181/0.4201, allocations: 63.77 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.4203, allocations: 71.67 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.4203, allocations: 11.94 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.271e-05/0.4204, allocations: 24 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.4205, allocations: 43.89 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.211e-05/0.4205, allocations: 47.67 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.4208, allocations: 151.2 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4208, allocations: 0 / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.933e-06/0.4208, allocations: 0 / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.563e-06/0.4208, allocations: 4 kB / 1.33 GB, free: 14.1 MB / 1.029 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.0007206/0.4215, allocations: 402.5 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4216, allocations: 12.03 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.4218, allocations: 20.84 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.4222, allocations: 197.8 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.4222, allocations: 8.375 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.4222, allocations: 8.375 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.4225, allocations: 162.7 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.4225, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.4226, allocations: 4 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.4226, allocations: 4 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.4228, allocations: 67.94 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005938/0.4234, allocations: 300.3 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.4235, allocations: 42.55 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.4236, allocations: 28.84 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.4236, allocations: 0 / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.4239, allocations: 148.5 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.4239, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000462/0.4244, allocations: 125.5 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.4244, allocations: 81.05 kB / 1.332 GB, free: 12.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/0.4247, allocations: 251.8 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.4248, allocations: 25.7 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.4249, allocations: 128.1 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.4249, allocations: 11.88 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.4249, allocations: 17.72 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4251, allocations: 330.8 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.4252, allocations: 23.97 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.4254, allocations: 73.11 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.4256, allocations: 70.5 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.4256, allocations: 3.984 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002925/0.4259, allocations: 97.5 kB / 1.333 GB, free: 11.27 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.4259, allocations: 8 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.4259, allocations: 3.984 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.4259, allocations: 3.938 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.426, allocations: 11.98 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.4261, allocations: 12.03 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.109e-05/0.4261, allocations: 11.94 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.4262, allocations: 4 kB / 1.333 GB, free: 11.21 MB / 1.029 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 0.0001305/0.4263, allocations: 130.1 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.01e-05/0.4263, allocations: 15.91 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.4264, allocations: 21.02 kB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.4264, allocations: 0 / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4264, allocations: 0 / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.4264, allocations: 19.83 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.4264, allocations: 8 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.409e-05/0.4265, allocations: 11.98 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.899e-05/0.4266, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003578/0.4269, allocations: 168.8 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000375/0.4273, allocations: 270.6 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001138/0.4274, allocations: 35.97 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001663/0.4276, allocations: 173.6 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of Backend: time 6.21e-07/0.4276, allocations: 0 / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007318/0.4283, allocations: 165.6 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of SimCode: time 0.0008756/0.4292, allocations: 0.739 MB / 1.334 GB, free: 9.395 MB / 1.029 GB Notification: Performance of Templates: time 0.006077/0.4353, allocations: 2.142 MB / 1.336 GB, free: 7.297 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.385742829996161]