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.00132/0.00132, allocations: 115.5 kB / 18.88 MB, free: 3.062 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.001538/0.001538, allocations: 194.3 kB / 22.17 MB, free: 5.656 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.9 MB, free: 13.27 MB / 206.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.889/2.889, allocations: 476.7 MB / 0.7645 GB, free: 10.1 MB / 0.6231 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.001978/0.001978, allocations: 72.44 kB / 1.109 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3655, allocations: 168.7 MB / 1.274 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003471/0.3689, allocations: 1.665 MB / 1.276 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.3699, allocations: 0.5544 MB / 1.276 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.407e-05/0.37, allocations: 4 kB / 1.276 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.3702, allocations: 23.73 kB / 1.276 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002761/0.3705, allocations: 71.66 kB / 1.276 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.3707, allocations: 55.92 kB / 1.276 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.3709, allocations: 139.5 kB / 1.276 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.371, allocations: 33.48 kB / 1.277 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.3712, allocations: 63.81 kB / 1.277 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.3713, allocations: 63.64 kB / 1.277 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.3713, allocations: 8 kB / 1.277 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.247e-05/0.3714, allocations: 24 kB / 1.277 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.3715, allocations: 47.81 kB / 1.277 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.886e-05/0.3715, allocations: 55.61 kB / 1.277 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.3718, allocations: 151.2 kB / 1.277 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3718, allocations: 0 / 1.277 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3718, allocations: 0 / 1.277 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.3718, allocations: 0 / 1.277 GB, free: 8.262 MB / 0.9825 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.0007272/0.3725, allocations: 474.5 kB / 1.277 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3726, allocations: 12.03 kB / 1.277 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.3726, allocations: 20.8 kB / 1.277 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/0.373, allocations: 244.9 kB / 1.278 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.373, allocations: 8.359 kB / 1.278 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.373, allocations: 4.375 kB / 1.278 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.3733, allocations: 116.8 kB / 1.278 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3733, allocations: 0 / 1.278 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.3734, allocations: 8 kB / 1.278 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3734, allocations: 0 / 1.278 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.3736, allocations: 63.94 kB / 1.278 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.3743, allocations: 384.5 kB / 1.278 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.3744, allocations: 34.55 kB / 1.278 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.3745, allocations: 32.83 kB / 1.278 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.3745, allocations: 4 kB / 1.278 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.3748, allocations: 105.1 kB / 1.278 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.3748, allocations: 0 / 1.278 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004599/0.3752, allocations: 117.5 kB / 1.278 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.899e-05/0.3753, allocations: 85.05 kB / 1.279 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.3756, allocations: 257 kB / 1.279 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.3756, allocations: 25.7 kB / 1.279 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.274e-05/0.3757, allocations: 132 kB / 1.279 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.3757, allocations: 7.891 kB / 1.279 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.3757, allocations: 17.72 kB / 1.279 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.3759, allocations: 326.8 kB / 1.279 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.376, allocations: 27.97 kB / 1.279 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.3762, allocations: 47.41 kB / 1.279 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.3764, allocations: 74.48 kB / 1.279 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.3764, allocations: 0 / 1.279 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002855/0.3767, allocations: 101.5 kB / 1.28 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3767, allocations: 11.98 kB / 1.28 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3767, allocations: 3.938 kB / 1.28 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.3767, allocations: 3.938 kB / 1.28 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3768, allocations: 16.08 kB / 1.28 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.3768, allocations: 0 / 1.28 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.197e-05/0.3769, allocations: 11.98 kB / 1.28 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.3769, allocations: 0 / 1.28 GB, free: 5.285 MB / 0.9825 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.0001138/0.377, allocations: 133.8 kB / 1.28 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.3771, allocations: 15.91 kB / 1.28 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.3771, allocations: 17.25 kB / 1.28 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3771, allocations: 3.938 kB / 1.28 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3771, allocations: 7.984 kB / 1.28 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3771, allocations: 288 / 1.28 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.3773, allocations: 217.5 kB / 1.28 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3773, allocations: 4 kB / 1.28 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.579e-05/0.3774, allocations: 15.92 kB / 1.28 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.3774, allocations: 7.984 kB / 1.28 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.3774, allocations: 0 / 1.28 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.3774, allocations: 3.938 kB / 1.28 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3774, allocations: 0 / 1.28 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003183/0.3778, allocations: 121 kB / 1.28 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.881e-05/0.3778, allocations: 93 kB / 1.28 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.247e-05/0.3778, allocations: 0 / 1.28 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.115e-05/0.3779, allocations: 15.92 kB / 1.28 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.378, allocations: 4 kB / 1.28 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.378, allocations: 7.984 kB / 1.28 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001764/0.3782, allocations: 188.5 kB / 1.28 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3782, allocations: 0 / 1.28 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00023/0.3784, allocations: 27.89 kB / 1.28 GB, free: 4.324 MB / 0.9825 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.0002876/0.3787, allocations: 116.4 kB / 1.281 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003013/0.379, allocations: 63.88 kB / 1.281 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.379, allocations: 3.938 kB / 1.281 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.3791, allocations: 27.97 kB / 1.281 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.3794, allocations: 56.59 kB / 1.281 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005709/0.38, allocations: 303.9 kB / 1.281 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3804, allocations: 0.7197 MB / 1.282 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.514e-05/0.3804, allocations: 20.53 kB / 1.282 GB, free: 2.965 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.3805, allocations: 11.44 kB / 1.282 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.3805, allocations: 0 / 1.282 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of Templates: time 0.005336/0.3858, allocations: 1.768 MB / 1.283 GB, free: 1.207 MB / 0.9825 GB " [Timeout remaining time 300] 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.927332474850118]