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.00133/0.00133, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001533/0.001533, allocations: 212.3 kB / 22.99 MB, free: 4.984 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.45/1.45, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.224/3.224, allocations: 0.49 GB / 0.7959 GB, free: 35.4 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.002133/0.002133, allocations: 67.78 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3888, allocations: 176.1 MB / 1.327 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003297/0.3921, allocations: 1.645 MB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.3934, allocations: 0.5922 MB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.623e-05/0.3935, allocations: 4 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.3936, allocations: 27.73 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.3939, allocations: 63.67 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002031/0.3941, allocations: 71.84 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.3943, allocations: 139.5 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.3945, allocations: 33.61 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.3946, allocations: 63.77 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.3947, allocations: 71.69 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.3948, allocations: 8 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.843e-05/0.3948, allocations: 27.94 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.526e-05/0.3949, allocations: 47.83 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.01e-05/0.395, allocations: 47.72 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.3952, allocations: 147.3 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3952, allocations: 3.938 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3952, allocations: 0 / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.3952, allocations: 0 / 1.33 GB, free: 14.01 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.0006613/0.3959, allocations: 409.2 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3959, allocations: 12.03 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.3961, allocations: 20.84 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.3965, allocations: 193.8 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-06/0.3965, allocations: 4.375 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.3965, allocations: 4.375 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.3969, allocations: 169.3 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.397, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.397, allocations: 0 / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.397, allocations: 4 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.3972, allocations: 67.94 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005794/0.3978, allocations: 300.3 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.3979, allocations: 42.55 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.3981, allocations: 28.89 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.3981, allocations: 4 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/0.3983, allocations: 148.4 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3983, allocations: 3.938 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004474/0.3988, allocations: 125.5 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.3989, allocations: 81.05 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.3991, allocations: 244 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.3991, allocations: 29.64 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.065e-05/0.3992, allocations: 124.1 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.049e-05/0.3993, allocations: 19.88 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.873e-05/0.3993, allocations: 9.719 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002966/0.3996, allocations: 330.8 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.3997, allocations: 23.97 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.3999, allocations: 81.05 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.4001, allocations: 62.47 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4001, allocations: 4 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002894/0.4004, allocations: 105.5 kB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.4004, allocations: 4 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4004, allocations: 0 / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.4004, allocations: 3.984 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.4005, allocations: 15.98 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.4005, allocations: 7.938 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.774e-05/0.4006, allocations: 16.03 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.4006, allocations: 8 kB / 1.333 GB, free: 11.12 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.0001179/0.4007, allocations: 129.8 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.4008, allocations: 11.91 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.4008, allocations: 21.03 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.4008, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4008, allocations: 3.938 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4008, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.401, allocations: 149.3 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.401, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.388e-05/0.4011, allocations: 15.98 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4011, allocations: 0 / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.4011, allocations: 4 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.4011, allocations: 3.938 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4011, allocations: 0 / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.4014, allocations: 124.9 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.217e-05/0.4014, allocations: 11.91 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.4014, allocations: 0 / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.4015, allocations: 15.98 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.4016, allocations: 7.938 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.4016, allocations: 7.984 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001708/0.4017, allocations: 181.6 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4017, allocations: 0 / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002222/0.402, allocations: 27.83 kB / 1.333 GB, free: 10.36 MB / 1.029 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.0002466/0.4022, allocations: 137.6 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002878/0.4025, allocations: 59.88 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4025, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.4026, allocations: 23.98 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.4029, allocations: 45.97 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005321/0.4034, allocations: 284.7 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.4036, allocations: 114.1 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.079e-05/0.4036, allocations: 12.42 kB / 1.334 GB, free: 9.641 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.694e-05/0.4037, allocations: 15.42 kB / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of SimCode: time 2.81e-07/0.4037, allocations: 0 / 1.334 GB, free: 9.625 MB / 1.029 GB Notification: Performance of Templates: time 0.005387/0.4091, allocations: 1.876 MB / 1.336 GB, free: 7.789 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 -s cvode -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: 8.9843930539937]