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.001382/0.001382, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.00152/0.00152, allocations: 212.2 kB / 22.24 MB, free: 5.242 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.449/1.449, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.285/3.285, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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: 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.002105/0.002105, allocations: 65.39 kB / 1.186 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3643, allocations: 181.9 MB / 1.364 GB, free: 13.64 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003114/0.3674, allocations: 1.644 MB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.3686, allocations: 0.5855 MB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.36e-05/0.3686, allocations: 7.938 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.3688, allocations: 19.8 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.3691, allocations: 67.66 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.3693, allocations: 79.78 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000206/0.3695, allocations: 131.6 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.3697, allocations: 41.58 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.3699, allocations: 67.72 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.37, allocations: 59.69 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.778e-05/0.37, allocations: 8 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.531e-05/0.3701, allocations: 24 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.831e-05/0.3702, allocations: 51.81 kB / 1.367 GB, free: 10.83 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.3703, allocations: 43.67 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002293/0.3705, allocations: 151.3 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3705, allocations: 0 / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3705, allocations: 0 / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3705, allocations: 0 / 1.367 GB, free: 10.64 MB / 1.061 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.0006441/0.3711, allocations: 401.3 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.3712, allocations: 8.031 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.3713, allocations: 32.78 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.3717, allocations: 182.1 kB / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.3717, allocations: 8.375 kB / 1.367 GB, free: 9.969 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.3717, allocations: 8.375 kB / 1.367 GB, free: 9.961 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.372, allocations: 165.4 kB / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.372, allocations: 0 / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.372, allocations: 0 / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.372, allocations: 0 / 1.367 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.3723, allocations: 67.88 kB / 1.368 GB, free: 9.715 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005553/0.3728, allocations: 312.3 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.373, allocations: 46.48 kB / 1.368 GB, free: 9.324 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3731, allocations: 28.89 kB / 1.368 GB, free: 9.293 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.3731, allocations: 0 / 1.368 GB, free: 9.293 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.3734, allocations: 144.5 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3734, allocations: 0 / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004331/0.3738, allocations: 125.5 kB / 1.368 GB, free: 8.992 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.3739, allocations: 85.05 kB / 1.368 GB, free: 8.891 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.3741, allocations: 236 kB / 1.368 GB, free: 8.648 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.3741, allocations: 25.7 kB / 1.369 GB, free: 8.617 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9e-05/0.3742, allocations: 136 kB / 1.369 GB, free: 8.48 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.3742, allocations: 11.89 kB / 1.369 GB, free: 8.469 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.946e-05/0.3743, allocations: 13.72 kB / 1.369 GB, free: 8.449 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3744, allocations: 334.8 kB / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.3745, allocations: 23.98 kB / 1.369 GB, free: 8.09 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.3747, allocations: 73.11 kB / 1.369 GB, free: 8 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.3749, allocations: 70.45 kB / 1.369 GB, free: 7.922 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3749, allocations: 3.969 kB / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002806/0.3752, allocations: 109.5 kB / 1.369 GB, free: 7.805 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3752, allocations: 9.875 kB / 1.369 GB, free: 7.797 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3752, allocations: 0 / 1.369 GB, free: 7.797 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3752, allocations: 0 / 1.369 GB, free: 7.797 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.3753, allocations: 11.98 kB / 1.369 GB, free: 7.785 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3753, allocations: 3.938 kB / 1.369 GB, free: 7.781 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.767e-05/0.3754, allocations: 16.08 kB / 1.369 GB, free: 7.766 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.3754, allocations: 0 / 1.369 GB, free: 7.766 MB / 1.061 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.0001175/0.3755, allocations: 134.9 kB / 1.369 GB, free: 7.625 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.3756, allocations: 15.91 kB / 1.369 GB, free: 7.609 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.351e-05/0.3756, allocations: 17.02 kB / 1.369 GB, free: 7.594 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3756, allocations: 4 kB / 1.369 GB, free: 7.59 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3756, allocations: 3.938 kB / 1.369 GB, free: 7.586 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3756, allocations: 0 / 1.369 GB, free: 7.586 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.3758, allocations: 149.3 kB / 1.37 GB, free: 7.41 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3758, allocations: 0 / 1.37 GB, free: 7.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-05/0.3759, allocations: 15.98 kB / 1.37 GB, free: 7.395 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3759, allocations: 0 / 1.37 GB, free: 7.395 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.3759, allocations: 3.984 kB / 1.37 GB, free: 7.391 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3759, allocations: 0 / 1.37 GB, free: 7.391 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3759, allocations: 0 / 1.37 GB, free: 7.391 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.3762, allocations: 124.9 kB / 1.37 GB, free: 7.25 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.237e-05/0.3762, allocations: 12.23 kB / 1.37 GB, free: 7.238 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.3762, allocations: 4 kB / 1.37 GB, free: 7.234 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.966e-05/0.3763, allocations: 11.98 kB / 1.37 GB, free: 7.223 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.3764, allocations: 19.86 kB / 1.37 GB, free: 7.203 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/0.3764, allocations: 7.984 kB / 1.37 GB, free: 7.195 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001654/0.3766, allocations: 173.8 kB / 1.37 GB, free: 7.027 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3766, allocations: 0 / 1.37 GB, free: 7.027 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002249/0.3768, allocations: 23.94 kB / 1.37 GB, free: 7.004 MB / 1.061 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.0002553/0.377, allocations: 129.4 kB / 1.37 GB, free: 6.867 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002893/0.3773, allocations: 55.94 kB / 1.37 GB, free: 6.812 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3773, allocations: 0 / 1.37 GB, free: 6.812 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.3774, allocations: 31.91 kB / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3777, allocations: 45.53 kB / 1.37 GB, free: 6.742 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005383/0.3783, allocations: 280.9 kB / 1.371 GB, free: 6.441 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.3784, allocations: 114.1 kB / 1.371 GB, free: 6.312 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.401e-05/0.3785, allocations: 16.41 kB / 1.371 GB, free: 6.297 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.695e-05/0.3785, allocations: 15.44 kB / 1.371 GB, free: 6.281 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.3785, allocations: 4 kB / 1.371 GB, free: 6.277 MB / 1.061 GB Notification: Performance of Templates: time 0.005253/0.3837, allocations: 1.846 MB / 1.372 GB, free: 4.461 MB / 1.061 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.851355101913214]