Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 110.5 kB / 17.6 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 186.7 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 249.4 MB, free: 3.164 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.748/2.748, allocations: 476.7 MB / 0.7628 GB, free: 15.18 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 67.89 kB / 1.107 GB, free: 4.598 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.004/1.006, allocations: 168.7 MB / 1.272 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00286/1.009, allocations: 1.686 MB / 1.274 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008668/1.01, allocations: 0.5447 MB / 1.274 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.593e-05/1.01, allocations: 2.688 kB / 1.274 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001726/1.01, allocations: 33.19 kB / 1.274 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002322/1.01, allocations: 65.28 kB / 1.274 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/1.01, allocations: 68.59 kB / 1.274 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001877/1.01, allocations: 133.4 kB / 1.274 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/1.011, allocations: 31.19 kB / 1.274 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/1.011, allocations: 58.12 kB / 1.274 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/1.011, allocations: 60.86 kB / 1.275 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/1.011, allocations: 8.031 kB / 1.275 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.19e-05/1.011, allocations: 28.7 kB / 1.275 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.788e-05/1.011, allocations: 51.83 kB / 1.275 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/1.011, allocations: 58.7 kB / 1.275 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002067/1.011, allocations: 150.3 kB / 1.275 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/1.011, allocations: 0 / 1.275 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.313e-06/1.011, allocations: 0 / 1.275 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.43e-06/1.011, allocations: 0.6562 kB / 1.275 GB, free: 6.027 MB / 0.9981 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.0005573/1.012, allocations: 465.4 kB / 1.275 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/1.012, allocations: 15.92 kB / 1.275 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.659e-05/1.012, allocations: 21.17 kB / 1.275 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/1.012, allocations: 246.3 kB / 1.276 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/1.012, allocations: 3.031 kB / 1.276 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/1.012, allocations: 8.281 kB / 1.276 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/1.012, allocations: 106.7 kB / 1.276 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/1.012, allocations: 4.75 kB / 1.276 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/1.012, allocations: 0.7188 kB / 1.276 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/1.012, allocations: 1.719 kB / 1.276 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002217/1.013, allocations: 67.67 kB / 1.276 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005198/1.013, allocations: 380.5 kB / 1.276 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/1.013, allocations: 51.5 kB / 1.276 GB, free: 4.91 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/1.013, allocations: 29.45 kB / 1.276 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/1.013, allocations: 0 / 1.276 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/1.014, allocations: 99.36 kB / 1.276 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/1.014, allocations: 0 / 1.276 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0004062/1.014, allocations: 125.2 kB / 1.276 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/1.014, allocations: 77.83 kB / 1.276 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/1.014, allocations: 251.1 kB / 1.277 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/1.014, allocations: 26.52 kB / 1.277 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.932e-05/1.014, allocations: 139.1 kB / 1.277 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/1.014, allocations: 10.72 kB / 1.277 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.325e-05/1.014, allocations: 13.78 kB / 1.277 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.248e-05/1.015, allocations: 330.7 kB / 1.277 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/1.015, allocations: 23.91 kB / 1.277 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/1.015, allocations: 53.27 kB / 1.277 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/1.015, allocations: 69.84 kB / 1.277 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.015, allocations: 0.9375 kB / 1.277 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002553/1.015, allocations: 111.7 kB / 1.277 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/1.015, allocations: 5.562 kB / 1.277 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/1.015, allocations: 0.9375 kB / 1.277 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/1.015, allocations: 4.781 kB / 1.277 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/1.015, allocations: 13.81 kB / 1.277 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/1.015, allocations: 1.828 kB / 1.277 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.626e-05/1.015, allocations: 14.55 kB / 1.277 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/1.015, allocations: 1.781 kB / 1.277 GB, free: 3.875 MB / 0.9981 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 7.547e-05/1.016, allocations: 128.3 kB / 1.278 GB, free: 3.754 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/1.016, allocations: 20.8 kB / 1.278 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/1.016, allocations: 22.78 kB / 1.278 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/1.016, allocations: 4.562 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/1.016, allocations: 0.6562 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/1.016, allocations: 0 / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/1.016, allocations: 212.8 kB / 1.278 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/1.016, allocations: 8.547 kB / 1.278 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.929e-05/1.016, allocations: 12.3 kB / 1.278 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/1.016, allocations: 0.9688 kB / 1.278 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/1.016, allocations: 0 / 1.278 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/1.016, allocations: 5.062 kB / 1.278 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/1.016, allocations: 0 / 1.278 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000261/1.016, allocations: 123.1 kB / 1.278 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/1.016, allocations: 88.98 kB / 1.278 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/1.016, allocations: 7.938 kB / 1.278 GB, free: 3.309 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/1.016, allocations: 13.98 kB / 1.278 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.75e-05/1.016, allocations: 4.375 kB / 1.278 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/1.016, allocations: 6.219 kB / 1.278 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001593/1.016, allocations: 189.8 kB / 1.278 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.016, allocations: 0.7812 kB / 1.278 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002331/1.017, allocations: 21.2 kB / 1.278 GB, free: 3.191 MB / 0.9981 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.0002535/1.017, allocations: 141.8 kB / 1.278 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003135/1.017, allocations: 59.59 kB / 1.279 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.017, allocations: 0 / 1.279 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/1.017, allocations: 29.53 kB / 1.279 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/1.018, allocations: 41.86 kB / 1.279 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005408/1.018, allocations: 297 kB / 1.279 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/1.018, allocations: 0.7189 MB / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.752e-05/1.018, allocations: 19.97 kB / 1.28 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/1.018, allocations: 15.94 kB / 1.28 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of SimCode: time 4.31e-07/1.018, allocations: 0 / 1.28 GB, free: 2.133 MB / 0.9981 GB Notification: Performance of Templates: time 0.005885/1.024, allocations: 1.782 MB / 1.281 GB, free: 1.926 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.854624398984015]