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.001164/0.001164, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 194 kB / 16.53 MB, free: 6.391 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.47/1.47, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.991/2.991, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 64.42 kB / 0.9121 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3986, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.002343/0.401, allocations: 0.6925 MB / 1.069 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.4022, allocations: 0.8763 MB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.18e-05/0.4023, allocations: 0 / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.361e-05/0.4023, allocations: 3.938 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.543e-05/0.4024, allocations: 3.938 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.4027, allocations: 19.92 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.4028, allocations: 47.84 kB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.4029, allocations: 12 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.807e-05/0.403, allocations: 19.91 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.762e-05/0.4031, allocations: 27.86 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.4031, allocations: 4 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.475e-05/0.4031, allocations: 4 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.817e-05/0.4031, allocations: 7.984 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.489e-05/0.4032, allocations: 19.81 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.4033, allocations: 35.88 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4033, allocations: 0 / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.346e-06/0.4033, allocations: 3.984 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.4033, allocations: 4 kB / 1.07 GB, free: 8.586 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.0005989/0.4039, allocations: 363.7 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.404, allocations: 8.031 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.404, allocations: 12.83 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.4042, allocations: 168.3 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.4042, allocations: 4.375 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/0.4042, allocations: 4.375 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.4045, allocations: 74.2 kB / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.4045, allocations: 192 / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.4045, allocations: 3.938 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.4046, allocations: 4 kB / 1.071 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.4049, allocations: 67.86 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.4053, allocations: 268.9 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.4055, allocations: 58.48 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.4057, allocations: 36.91 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.4057, allocations: 4 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.4057, allocations: 34.56 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 2.735e-06/0.4057, allocations: 0 / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005776/0.4063, allocations: 129.5 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.4064, allocations: 55.41 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.765e-05/0.4065, allocations: 109.8 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.271e-05/0.4065, allocations: 33.7 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.105e-05/0.4066, allocations: 84.05 kB / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.4066, allocations: 7.906 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.4067, allocations: 13.72 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.4068, allocations: 318.8 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.4069, allocations: 35.97 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.4071, allocations: 31.89 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.4073, allocations: 68.73 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4074, allocations: 3.938 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003273/0.4077, allocations: 105.6 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.4077, allocations: 4 kB / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4077, allocations: 0 / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4077, allocations: 0 / 1.072 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.4079, allocations: 19.92 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.4079, allocations: 0 / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.184e-05/0.408, allocations: 15.98 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.408, allocations: 0 / 1.072 GB, free: 6.254 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 8.203e-05/0.4081, allocations: 122.3 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.4081, allocations: 3.906 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.4082, allocations: 3.906 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.4082, allocations: 4.328 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4082, allocations: 3.938 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4082, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.4084, allocations: 173.6 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4084, allocations: 4 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.4085, allocations: 15.97 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.4085, allocations: 4 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.4085, allocations: 0 / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4085, allocations: 0 / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4085, allocations: 4 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003634/0.4089, allocations: 195.4 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.4089, allocations: 92.94 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.409, allocations: 0 / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.4091, allocations: 7.984 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.418e-05/0.4091, allocations: 8 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-06/0.4091, allocations: 0 / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.232e-05/0.4092, allocations: 87.27 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4092, allocations: 7.938 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002318/0.4094, allocations: 8 kB / 1.073 GB, free: 5.422 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.0001705/0.4096, allocations: 101.2 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003565/0.41, allocations: 67.92 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.41, allocations: 0 / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.4102, allocations: 43.89 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003736/0.4105, allocations: 7.938 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.411, allocations: 137.2 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.4113, allocations: 0.6846 MB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.104e-05/0.4113, allocations: 0 / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.4114, allocations: 11.44 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of SimCode: time 4.81e-07/0.4114, allocations: 0 / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of Templates: time 0.003187/0.4146, allocations: 0.7213 MB / 1.074 GB, free: 3.602 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