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.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.001572/0.001572, allocations: 104.5 kB / 18.84 MB, free: 3.043 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.001705/0.001705, allocations: 188.8 kB / 22.1 MB, free: 5.152 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.46/1.46, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.184/3.184, allocations: 495.8 MB / 0.783 GB, free: 33.67 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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_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: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 64.64 kB / 1.137 GB, free: 33.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3591, allocations: 173.6 MB / 1.307 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003382/0.3625, allocations: 1.68 MB / 1.308 GB, free: 244 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.3635, allocations: 0.5533 MB / 1.309 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.783e-05/0.3636, allocations: 0 / 1.309 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.3638, allocations: 35.7 kB / 1.309 GB, free: 15.64 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000276/0.364, allocations: 63.67 kB / 1.309 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.3642, allocations: 63.92 kB / 1.309 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.3644, allocations: 131.5 kB / 1.309 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.3646, allocations: 37.61 kB / 1.309 GB, free: 15.35 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.3647, allocations: 63.77 kB / 1.309 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.3648, allocations: 71.61 kB / 1.309 GB, free: 15.21 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.3649, allocations: 8 kB / 1.309 GB, free: 15.21 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.895e-05/0.3649, allocations: 24 kB / 1.309 GB, free: 15.18 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.92e-05/0.365, allocations: 43.84 kB / 1.309 GB, free: 15.14 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.954e-05/0.3651, allocations: 59.59 kB / 1.309 GB, free: 15.08 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.3654, allocations: 147.2 kB / 1.31 GB, free: 14.94 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3654, allocations: 0 / 1.31 GB, free: 14.94 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3654, allocations: 0 / 1.31 GB, free: 14.94 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.3654, allocations: 0 / 1.31 GB, free: 14.94 MB / 1.014 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.0006904/0.3661, allocations: 397.3 kB / 1.31 GB, free: 14.52 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3661, allocations: 12.03 kB / 1.31 GB, free: 14.51 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.564e-05/0.3662, allocations: 20.8 kB / 1.31 GB, free: 14.49 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.3665, allocations: 187.1 kB / 1.31 GB, free: 14.28 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.3665, allocations: 384 / 1.31 GB, free: 14.28 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.3665, allocations: 8.375 kB / 1.31 GB, free: 14.27 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.3669, allocations: 121.1 kB / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3669, allocations: 0 / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.3669, allocations: 0 / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.3669, allocations: 4 kB / 1.31 GB, free: 14.14 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.3671, allocations: 63.94 kB / 1.31 GB, free: 14.08 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006394/0.3678, allocations: 347.6 kB / 1.311 GB, free: 13.7 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3679, allocations: 46.48 kB / 1.311 GB, free: 13.64 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.368, allocations: 28.89 kB / 1.311 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.3681, allocations: 0 / 1.311 GB, free: 13.61 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002417/0.3683, allocations: 97.09 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3683, allocations: 0 / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0004748/0.3688, allocations: 125.4 kB / 1.311 GB, free: 13.37 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.488e-05/0.3689, allocations: 77.11 kB / 1.311 GB, free: 13.28 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.3692, allocations: 256.9 kB / 1.311 GB, free: 13.02 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.3692, allocations: 25.7 kB / 1.311 GB, free: 12.99 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.3693, allocations: 132 kB / 1.311 GB, free: 12.86 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.3693, allocations: 11.94 kB / 1.311 GB, free: 12.84 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.3693, allocations: 17.66 kB / 1.312 GB, free: 12.82 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3695, allocations: 326.8 kB / 1.312 GB, free: 12.49 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.3696, allocations: 23.97 kB / 1.312 GB, free: 12.47 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.3697, allocations: 51.59 kB / 1.312 GB, free: 12.41 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.37, allocations: 74.5 kB / 1.312 GB, free: 12.32 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.37, allocations: 0 / 1.312 GB, free: 12.32 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003029/0.3703, allocations: 105.5 kB / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3703, allocations: 4 kB / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.3703, allocations: 0 / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.3703, allocations: 15.91 kB / 1.312 GB, free: 12.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.3704, allocations: 16.08 kB / 1.312 GB, free: 12.18 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3704, allocations: 0 / 1.312 GB, free: 12.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.136e-05/0.3705, allocations: 11.98 kB / 1.312 GB, free: 12.17 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.904e-06/0.3705, allocations: 0 / 1.312 GB, free: 12.17 MB / 1.014 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.3707, allocations: 129.8 kB / 1.312 GB, free: 12.03 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.009e-05/0.3707, allocations: 15.91 kB / 1.312 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/0.3707, allocations: 13.34 kB / 1.312 GB, free: 12 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3707, allocations: 7.875 kB / 1.312 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3707, allocations: 4 kB / 1.312 GB, free: 11.99 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3708, allocations: 11.92 kB / 1.312 GB, free: 11.98 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.3709, allocations: 184.6 kB / 1.312 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3709, allocations: 0 / 1.312 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.306e-05/0.371, allocations: 11.98 kB / 1.312 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.371, allocations: 0 / 1.312 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.371, allocations: 4 kB / 1.312 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.371, allocations: 7.938 kB / 1.312 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.371, allocations: 0 / 1.312 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.3713, allocations: 121 kB / 1.313 GB, free: 11.59 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.146e-05/0.3714, allocations: 19.89 kB / 1.313 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.3714, allocations: 0 / 1.313 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-05/0.3715, allocations: 11.92 kB / 1.313 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.3715, allocations: 4 kB / 1.313 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.3716, allocations: 4 kB / 1.313 GB, free: 11.55 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001986/0.3718, allocations: 196.5 kB / 1.313 GB, free: 11.36 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3718, allocations: 0 / 1.313 GB, free: 11.36 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002288/0.372, allocations: 27.83 kB / 1.313 GB, free: 11.33 MB / 1.014 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.0002668/0.3722, allocations: 119.8 kB / 1.313 GB, free: 11.21 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003085/0.3726, allocations: 51.94 kB / 1.313 GB, free: 11.16 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.3726, allocations: 4 kB / 1.313 GB, free: 11.16 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.3727, allocations: 31.91 kB / 1.313 GB, free: 11.12 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.373, allocations: 43.8 kB / 1.313 GB, free: 11.09 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005661/0.3736, allocations: 297.3 kB / 1.313 GB, free: 10.77 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.374, allocations: 0.7236 MB / 1.314 GB, free: 10.02 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 6.348e-05/0.3741, allocations: 16.48 kB / 1.314 GB, free: 10.01 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.3741, allocations: 15.44 kB / 1.314 GB, free: 9.992 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.3741, allocations: 0 / 1.314 GB, free: 9.992 MB / 1.014 GB Notification: Performance of Templates: time 0.005479/0.3796, allocations: 1.783 MB / 1.316 GB, free: 8.227 MB / 1.014 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/jenkins/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.867862859740853]