Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Controls.OBC.CDL.Reals.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mod1.u1|mod1.u2|mod1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 105.7 kB / 16.41 MB, free: 6.496 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.001573/0.001573, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.578/2.578, allocations: 461.9 MB / 0.7354 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 75.88 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02/1.022, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.003002/1.025, allocations: 0.7058 MB / 1.209 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001567/1.027, allocations: 0.878 MB / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.428e-05/1.027, allocations: 3.938 kB / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.072e-05/1.027, allocations: 0 / 1.21 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001278/1.027, allocations: 7.875 kB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/1.027, allocations: 15.98 kB / 1.21 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001342/1.027, allocations: 39.91 kB / 1.21 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/1.028, allocations: 15.98 kB / 1.21 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/1.028, allocations: 15.92 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.995e-05/1.028, allocations: 31.86 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/1.028, allocations: 0 / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.453e-05/1.028, allocations: 4 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.999e-05/1.028, allocations: 11.98 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.572e-05/1.028, allocations: 19.86 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001615/1.028, allocations: 39.86 kB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/1.028, allocations: 0 / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.174e-06/1.028, allocations: 0 / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.227e-05/1.028, allocations: 0 / 1.21 GB, free: 11.86 MB / 0.9356 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.0006066/1.029, allocations: 367.2 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/1.029, allocations: 8.031 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/1.029, allocations: 8.844 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/1.029, allocations: 166.2 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/1.029, allocations: 384 / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/1.029, allocations: 4.375 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/1.029, allocations: 66.22 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/1.029, allocations: 8.125 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/1.029, allocations: 3.938 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/1.029, allocations: 7.938 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002927/1.03, allocations: 59.92 kB / 1.211 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004488/1.03, allocations: 272.8 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/1.03, allocations: 58.48 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/1.031, allocations: 40.91 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/1.031, allocations: 3.938 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/1.031, allocations: 34.56 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 4.188e-06/1.031, allocations: 4 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0005816/1.031, allocations: 125.6 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/1.031, allocations: 51.41 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/1.031, allocations: 105.8 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/1.031, allocations: 25.7 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/1.031, allocations: 96.05 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/1.031, allocations: 7.844 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/1.032, allocations: 21.7 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001387/1.032, allocations: 310.8 kB / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/1.032, allocations: 35.91 kB / 1.212 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/1.032, allocations: 35.95 kB / 1.212 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/1.032, allocations: 69.06 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/1.032, allocations: 3.938 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003338/1.033, allocations: 97.61 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/1.033, allocations: 8 kB / 1.212 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/1.033, allocations: 4 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/1.033, allocations: 0 / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/1.033, allocations: 19.98 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/1.033, allocations: 0 / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.61e-05/1.033, allocations: 15.97 kB / 1.212 GB, free: 9.535 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.874e-06/1.033, allocations: 3.938 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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.0001084/1.033, allocations: 117.8 kB / 1.212 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/1.033, allocations: 3.906 kB / 1.212 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/1.033, allocations: 7.906 kB / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.033, allocations: 4 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.033, allocations: 0 / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.033, allocations: 0 / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/1.033, allocations: 173.6 kB / 1.213 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.033, allocations: 0 / 1.213 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/1.034, allocations: 11.98 kB / 1.213 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/1.034, allocations: 0 / 1.213 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/1.034, allocations: 11.94 kB / 1.213 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/1.034, allocations: 0 / 1.213 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/1.034, allocations: 0 / 1.213 GB, free: 9.137 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004341/1.034, allocations: 195.4 kB / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.707e-05/1.034, allocations: 88.89 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/1.034, allocations: 8 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/1.034, allocations: 7.984 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/1.034, allocations: 7.984 kB / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/1.034, allocations: 0 / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.285e-05/1.034, allocations: 91.58 kB / 1.213 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.11e-07/1.034, allocations: 0 / 1.213 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002237/1.035, allocations: 4 kB / 1.213 GB, free: 8.707 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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.0001967/1.035, allocations: 111.2 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003722/1.035, allocations: 67.92 kB / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/1.035, allocations: 0 / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001538/1.035, allocations: 35.91 kB / 1.213 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/1.036, allocations: 17.95 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004812/1.036, allocations: 151.2 kB / 1.213 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/1.037, allocations: 0.6768 MB / 1.214 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/1.037, allocations: 11.44 kB / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of SimCode: time 7.11e-07/1.037, allocations: 0 / 1.214 GB, free: 7.578 MB / 0.9356 GB Notification: Performance of Templates: time 0.002742/1.039, allocations: 0.7446 MB / 1.215 GB, free: 6.836 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches