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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.001494/0.001494, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002315/0.002315, allocations: 194.4 kB / 16.25 MB, free: 6.629 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.518/1.518, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.838/2.838, allocations: 472.6 MB / 0.7448 GB, free: 4.855 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 65.28 kB / 0.9116 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3609, allocations: 159.9 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.002146/0.3631, allocations: 0.7594 MB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009714/0.3641, allocations: 0.8703 MB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.193e-05/0.3642, allocations: 0 / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.95e-05/0.3642, allocations: 7.875 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.608e-05/0.3644, allocations: 11.92 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.3646, allocations: 19.98 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.958e-05/0.3647, allocations: 39.86 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.3648, allocations: 15.98 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.548e-05/0.3649, allocations: 11.94 kB / 1.069 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.87e-05/0.3649, allocations: 23.91 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.068e-05/0.365, allocations: 4 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.386e-05/0.365, allocations: 4 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.517e-05/0.365, allocations: 15.98 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.724e-05/0.3651, allocations: 15.86 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.3652, allocations: 35.88 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3652, allocations: 4 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3652, allocations: 0 / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.3652, allocations: 4 kB / 1.07 GB, free: 8.855 MB / 0.8262 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.0005498/0.3658, allocations: 355.6 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3658, allocations: 16.02 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.709e-05/0.3659, allocations: 8.844 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.366, allocations: 172.3 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.366, allocations: 384 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.366, allocations: 4.375 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.3663, allocations: 66.22 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3663, allocations: 192 / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.3663, allocations: 3.938 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3663, allocations: 0 / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.3666, allocations: 67.92 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003605/0.367, allocations: 276.8 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.3672, allocations: 62.47 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3673, allocations: 36.92 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.3674, allocations: 3.984 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.3674, allocations: 30.56 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.3674, allocations: 0 / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005561/0.368, allocations: 137.5 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.368, allocations: 51.41 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.086e-05/0.3681, allocations: 109.8 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.3681, allocations: 25.7 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.3682, allocations: 88.05 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.3682, allocations: 11.89 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/0.3682, allocations: 17.72 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.508e-05/0.3683, allocations: 314.8 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.3685, allocations: 35.89 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.3686, allocations: 31.97 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.3689, allocations: 76.72 kB / 1.071 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3689, allocations: 7.875 kB / 1.071 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000303/0.3692, allocations: 93.62 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3693, allocations: 4 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3693, allocations: 0 / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3693, allocations: 4 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3694, allocations: 19.97 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.3694, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.08e-05/0.3695, allocations: 15.98 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.3695, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 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 7.141e-05/0.3696, allocations: 115.3 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.3696, allocations: 7.906 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.3697, allocations: 7.906 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3697, allocations: 0 / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3697, allocations: 3.984 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3697, allocations: 0 / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3699, allocations: 169.6 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3699, allocations: 4 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.37, allocations: 15.92 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.37, allocations: 0 / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.37, allocations: 0 / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.37, allocations: 4 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.37, allocations: 7.984 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.3704, allocations: 191.4 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.3704, allocations: 84.95 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.3704, allocations: 0 / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.3706, allocations: 15.98 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.898e-05/0.3706, allocations: 11.98 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.3706, allocations: 0 / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.602e-05/0.3707, allocations: 83.27 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3707, allocations: 4 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002233/0.3709, allocations: 8 kB / 1.072 GB, free: 5.703 MB / 0.8262 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.0001395/0.371, allocations: 103.2 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003405/0.3714, allocations: 72.3 kB / 1.072 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3714, allocations: 3.938 kB / 1.072 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.3716, allocations: 40.05 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.3719, allocations: 13.34 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003295/0.3722, allocations: 137.4 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3725, allocations: 0.6884 MB / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.371e-05/0.3725, allocations: 7.984 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.3726, allocations: 7.438 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3726, allocations: 0 / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of Templates: time 0.002782/0.3754, allocations: 0.6133 MB / 1.074 GB, free: 3.973 MB / 0.8262 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/jenkins/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