Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Math.Functions.Examples.Round,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ym2|ym1|y|y1|y2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round") translateModel(Buildings.Utilities.Math.Functions.Examples.Round,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ym2|ym1|y|y1|y2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 108.9 kB / 16.36 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 189.4 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.211/2.211, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 67.33 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2437, allocations: 153 MB / 1.027 GB, free: 2.09 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001551/0.2453, allocations: 0.6132 MB / 1.027 GB, free: 1.473 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000212/0.2455, allocations: 59.78 kB / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.633e-05/0.2456, allocations: 0 / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.2456, allocations: 0 / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.2456, allocations: 7.938 kB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001934/0.2458, allocations: 19.97 kB / 1.027 GB, free: 1.387 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.18e-05/0.2458, allocations: 11.98 kB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.659e-05/0.2459, allocations: 0 / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.419e-05/0.2459, allocations: 4 kB / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.318e-05/0.2459, allocations: 11.92 kB / 1.027 GB, free: 1.359 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.355e-06/0.246, allocations: 4 kB / 1.027 GB, free: 1.355 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.246, allocations: 23.91 kB / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.936e-06/0.246, allocations: 0 / 1.027 GB, free: 1.332 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.788e-05/0.2461, allocations: 11.94 kB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 6.991e-05/0.2461, allocations: 19.97 kB / 1.027 GB, free: 1.301 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2462, allocations: 3.984 kB / 1.027 GB, free: 1.297 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2462, allocations: 0 / 1.027 GB, free: 1.297 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2462, allocations: 0 / 1.027 GB, free: 1.297 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002961/0.2465, allocations: 325.1 kB / 1.028 GB, free: 0.9297 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.795e-05/0.2465, allocations: 12.75 kB / 1.028 GB, free: 0.918 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.427e-05/0.2465, allocations: 4.938 kB / 1.028 GB, free: 0.9141 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.007e-05/0.2466, allocations: 164.4 kB / 1.028 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.2466, allocations: 384 / 1.028 GB, free: 0.7148 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.2466, allocations: 4.375 kB / 1.028 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.2468, allocations: 80.92 kB / 1.028 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.2468, allocations: 192 / 1.028 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.2468, allocations: 7.938 kB / 1.028 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.2468, allocations: 3.938 kB / 1.028 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.983e-05/0.2468, allocations: 11.94 kB / 1.028 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001446/0.247, allocations: 177.2 kB / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 8.232e-05/0.2471, allocations: 97.02 kB / 1.028 GB, free: 220 kB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.548e-05/0.2471, allocations: 40.41 kB / 1.028 GB, free: 164 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001486/0.2473, allocations: 77.11 kB / 1.028 GB, free: 68 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.2473, allocations: 46.48 kB / 1.028 GB, free: 12 kB / 0.795 GB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.2473, allocations: 0 / 1.028 GB, free: 12 kB / 0.795 GB Notification: Performance of matching and sorting (n=5): time 0.0001675/0.2475, allocations: 73.61 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.2475, allocations: 154.8 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.915e-05/0.2476, allocations: 93.86 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.2476, allocations: 33.64 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.816e-05/0.2476, allocations: 84.14 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.2477, allocations: 19.64 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.2477, allocations: 17.72 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.2478, allocations: 314.8 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.2478, allocations: 7.922 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.831e-05/0.2478, allocations: 40.3 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.789e-05/0.2479, allocations: 48.22 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2479, allocations: 0 / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.758e-05/0.248, allocations: 69.56 kB / 1.029 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.248, allocations: 4 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.248, allocations: 4 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.2481, allocations: 3.938 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.143e-05/0.2481, allocations: 11.98 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.2481, allocations: 0 / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.715e-05/0.2482, allocations: 8.125 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.2482, allocations: 4 kB / 1.029 GB, free: 14.92 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.341e-05/0.2482, allocations: 117.9 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.328e-05/0.2483, allocations: 4 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001645/0.2484, allocations: 104.5 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.2484, allocations: 8.156 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2484, allocations: 0 / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2485, allocations: 0 / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.2486, allocations: 173.5 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2486, allocations: 4 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.117e-05/0.2486, allocations: 15.83 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2486, allocations: 0 / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.2487, allocations: 7.938 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2487, allocations: 0 / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2487, allocations: 4 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.2488, allocations: 128.4 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.2488, allocations: 81.11 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.2488, allocations: 3.938 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.832e-05/0.2489, allocations: 8 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.801e-05/0.2489, allocations: 11.98 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.2489, allocations: 8 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 1.987e-05/0.2489, allocations: 75.38 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2489, allocations: 3.938 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001888/0.2491, allocations: 4 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.0001231/0.2493, allocations: 107.2 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9e-05/0.2494, allocations: 39.86 kB / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2494, allocations: 0 / 1.03 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.164e-05/0.2494, allocations: 23.94 kB / 1.03 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.2495, allocations: 8 kB / 1.03 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002177/0.2498, allocations: 149 kB / 1.03 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.25, allocations: 0.6807 MB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.992e-05/0.25, allocations: 7.938 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.25, allocations: 11.44 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.25, allocations: 0 / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of Templates: time 0.00212/0.2522, allocations: 0.5667 MB / 1.032 GB, free: 12.4 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches