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.001304/0.001304, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001355/0.001355, allocations: 159.5 kB / 23.01 MB, free: 4.602 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.405/1.405, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 179] 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 2.752/2.752, allocations: 377.9 MB / 0.6228 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 177] 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.002161/0.002161, allocations: 63.91 kB / 0.9819 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7506/0.7528, allocations: 176.1 MB / 1.154 GB, free: 33.33 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002423/0.7552, allocations: 1.645 MB / 1.155 GB, free: 32.21 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0007923/0.756, allocations: 0.5848 MB / 1.156 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.419e-05/0.7561, allocations: 6.719 kB / 1.156 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.7562, allocations: 28.14 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.7564, allocations: 63.11 kB / 1.156 GB, free: 31.76 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001638/0.7566, allocations: 79.58 kB / 1.156 GB, free: 31.72 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.7567, allocations: 139.2 kB / 1.156 GB, free: 31.66 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.7569, allocations: 34.52 kB / 1.156 GB, free: 31.64 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.757, allocations: 68.56 kB / 1.156 GB, free: 31.6 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 8.887e-05/0.7571, allocations: 50.52 kB / 1.157 GB, free: 31.58 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.7571, allocations: 9.125 kB / 1.157 GB, free: 31.58 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.226e-05/0.7572, allocations: 29.84 kB / 1.157 GB, free: 31.57 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.169e-05/0.7572, allocations: 49.06 kB / 1.157 GB, free: 31.55 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.596e-05/0.7573, allocations: 45.09 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.7574, allocations: 154.4 kB / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.7574, allocations: 2.656 kB / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.032e-06/0.7574, allocations: 0 / 1.157 GB, free: 31.46 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.7574, allocations: 4 kB / 1.157 GB, free: 31.45 MB / 1.076 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.0004646/0.7579, allocations: 396.7 kB / 1.157 GB, free: 31.11 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.699e-05/0.7579, allocations: 12.16 kB / 1.157 GB, free: 31.11 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001517/0.7581, allocations: 24.88 kB / 1.157 GB, free: 31.1 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.7583, allocations: 191.5 kB / 1.157 GB, free: 30.93 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.7583, allocations: 7.25 kB / 1.157 GB, free: 30.93 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.032e-05/0.7583, allocations: 7.25 kB / 1.157 GB, free: 30.92 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.7586, allocations: 160.2 kB / 1.158 GB, free: 30.81 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.7586, allocations: 0 / 1.158 GB, free: 30.81 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.7586, allocations: 6.906 kB / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.7586, allocations: 0 / 1.158 GB, free: 30.8 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002148/0.7588, allocations: 69.12 kB / 1.158 GB, free: 30.79 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004129/0.7592, allocations: 306 kB / 1.158 GB, free: 30.55 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.7594, allocations: 40.64 kB / 1.158 GB, free: 30.52 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.935e-05/0.7595, allocations: 29.86 kB / 1.158 GB, free: 30.5 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.7595, allocations: 0 / 1.158 GB, free: 30.5 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.7597, allocations: 147.1 kB / 1.158 GB, free: 30.37 MB / 1.076 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.7597, allocations: 0 / 1.158 GB, free: 30.37 MB / 1.076 GB Notification: Performance of matching and sorting (n=3): time 0.0003839/0.7601, allocations: 128 kB / 1.158 GB, free: 30.31 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.7601, allocations: 81.05 kB / 1.158 GB, free: 30.21 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.7602, allocations: 239.9 kB / 1.159 GB, free: 30.07 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.7603, allocations: 29.64 kB / 1.159 GB, free: 30.04 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.7603, allocations: 131.1 kB / 1.159 GB, free: 29.92 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.7603, allocations: 10.23 kB / 1.159 GB, free: 29.92 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.7603, allocations: 16.75 kB / 1.159 GB, free: 29.9 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.816e-05/0.7604, allocations: 329.1 kB / 1.159 GB, free: 29.57 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.7605, allocations: 20.84 kB / 1.159 GB, free: 29.57 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.7606, allocations: 76.92 kB / 1.159 GB, free: 29.51 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.7608, allocations: 67.62 kB / 1.159 GB, free: 29.47 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.7608, allocations: 4.031 kB / 1.159 GB, free: 29.47 MB / 1.076 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000247/0.761, allocations: 103 kB / 1.159 GB, free: 29.42 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.7611, allocations: 3.188 kB / 1.159 GB, free: 29.42 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-06/0.7611, allocations: 2.688 kB / 1.159 GB, free: 29.42 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.7611, allocations: 288 / 1.159 GB, free: 29.42 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.624e-05/0.7612, allocations: 14.92 kB / 1.159 GB, free: 29.42 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.7612, allocations: 8.031 kB / 1.159 GB, free: 29.41 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.305e-05/0.7612, allocations: 15.47 kB / 1.159 GB, free: 29.41 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.7613, allocations: 2.906 kB / 1.159 GB, free: 29.41 MB / 1.076 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 6.337e-05/0.7613, allocations: 130 kB / 1.159 GB, free: 29.28 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/0.7613, allocations: 23.62 kB / 1.16 GB, free: 29.27 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.7614, allocations: 17.41 kB / 1.16 GB, free: 29.25 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.7614, allocations: 2.719 kB / 1.16 GB, free: 29.25 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.7614, allocations: 3.938 kB / 1.16 GB, free: 29.25 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.7614, allocations: 0 / 1.16 GB, free: 29.25 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.303e-05/0.7615, allocations: 149.1 kB / 1.16 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7615, allocations: 8 kB / 1.16 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.718e-05/0.7615, allocations: 15.73 kB / 1.16 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.7615, allocations: 0 / 1.16 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.7615, allocations: 2.781 kB / 1.16 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.7615, allocations: 0 / 1.16 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.7615, allocations: 0 / 1.16 GB, free: 29.1 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002483/0.7618, allocations: 122 kB / 1.16 GB, free: 29.02 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.701e-05/0.7618, allocations: 10.75 kB / 1.16 GB, free: 29.01 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.866e-05/0.7618, allocations: 7.188 kB / 1.16 GB, free: 29.01 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.934e-05/0.7619, allocations: 11.62 kB / 1.16 GB, free: 29.01 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.35e-05/0.7619, allocations: 11.31 kB / 1.16 GB, free: 29 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.762, allocations: 9.594 kB / 1.16 GB, free: 29 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000108/0.7621, allocations: 174.7 kB / 1.16 GB, free: 28.89 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.7621, allocations: 0 / 1.16 GB, free: 28.89 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002257/0.7623, allocations: 30.83 kB / 1.16 GB, free: 28.88 MB / 1.076 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.0001634/0.7625, allocations: 126.3 kB / 1.16 GB, free: 28.78 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002649/0.7627, allocations: 58 kB / 1.16 GB, free: 28.77 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.7627, allocations: 0 / 1.16 GB, free: 28.77 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.7628, allocations: 29.83 kB / 1.16 GB, free: 28.76 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.7631, allocations: 50.77 kB / 1.16 GB, free: 28.74 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003852/0.7635, allocations: 283.3 kB / 1.161 GB, free: 28.54 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.172e-05/0.7635, allocations: 114.3 kB / 1.161 GB, free: 28.46 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.465e-05/0.7636, allocations: 20.03 kB / 1.161 GB, free: 28.46 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.16e-05/0.7636, allocations: 17.97 kB / 1.161 GB, free: 28.45 MB / 1.076 GB Notification: Performance of SimCode: time 3e-07/0.7636, allocations: 0 / 1.161 GB, free: 28.45 MB / 1.076 GB Notification: Performance of Templates: time 0.004253/0.7679, allocations: 1.744 MB / 1.162 GB, free: 28.21 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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.253723078989424]