Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.006901/0.006901, allocations: 98.08 kB / 15.73 MB, free: 6.035 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.001293/0.001293, allocations: 193.4 kB / 16.67 MB, free: 5.961 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.539/1.539, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.017/3.017, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.91 kB / 1.019 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3707, allocations: 151.6 MB / 1.167 GB, free: 6.762 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.001918/0.3727, allocations: 0.7061 MB / 1.167 GB, free: 6.055 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3737, allocations: 0.8744 MB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.788e-05/0.3738, allocations: 0 / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.288e-05/0.3738, allocations: 3.938 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.012e-05/0.3739, allocations: 11.92 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.3741, allocations: 19.92 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.3742, allocations: 39.91 kB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.3743, allocations: 12 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.319e-05/0.3744, allocations: 19.92 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.743e-05/0.3745, allocations: 19.92 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.3745, allocations: 4 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.563e-05/0.3745, allocations: 4 kB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.326e-05/0.3746, allocations: 15.91 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.3746, allocations: 15.88 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.3747, allocations: 43.8 kB / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3747, allocations: 0 / 1.168 GB, free: 4.961 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.873e-06/0.3747, allocations: 4 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.3747, allocations: 0 / 1.168 GB, free: 4.957 MB / 0.92 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.0005565/0.3753, allocations: 363.3 kB / 1.169 GB, free: 4.551 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3753, allocations: 8.031 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.3754, allocations: 8.891 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.3755, allocations: 164.4 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.3755, allocations: 384 / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.3755, allocations: 4.359 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002605/0.3758, allocations: 74.22 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3758, allocations: 4.125 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.3758, allocations: 3.938 kB / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3759, allocations: 0 / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.3762, allocations: 71.8 kB / 1.169 GB, free: 4.176 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.3766, allocations: 276.8 kB / 1.169 GB, free: 3.855 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.3768, allocations: 58.48 kB / 1.169 GB, free: 3.789 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.3769, allocations: 36.91 kB / 1.169 GB, free: 3.75 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.377, allocations: 8 kB / 1.169 GB, free: 3.742 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.377, allocations: 34.5 kB / 1.169 GB, free: 3.699 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.377, allocations: 0 / 1.169 GB, free: 3.699 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0005676/0.3776, allocations: 125.6 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.3776, allocations: 55.41 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.373e-05/0.3777, allocations: 113.8 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.3778, allocations: 29.7 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.337e-05/0.3778, allocations: 80.14 kB / 1.17 GB, free: 3.266 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.3778, allocations: 15.91 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.3779, allocations: 9.719 kB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.378, allocations: 322.8 kB / 1.17 GB, free: 2.91 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.3782, allocations: 31.97 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.3783, allocations: 31.89 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.3786, allocations: 65.08 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.3786, allocations: 7.938 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003873/0.379, allocations: 109.6 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.379, allocations: 4 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.379, allocations: 4 kB / 1.17 GB, free: 2.652 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.379, allocations: 0 / 1.17 GB, free: 2.652 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.3792, allocations: 11.98 kB / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.3792, allocations: 0 / 1.17 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.033e-05/0.3793, allocations: 15.98 kB / 1.17 GB, free: 2.625 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.3793, allocations: 0 / 1.17 GB, free: 2.625 MB / 0.92 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 9.282e-05/0.3794, allocations: 125.7 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.3794, allocations: 3.953 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.3795, allocations: 7.906 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3795, allocations: 0 / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3795, allocations: 0 / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3795, allocations: 0 / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.3797, allocations: 173.5 kB / 1.171 GB, free: 2.254 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3797, allocations: 3.984 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.682e-05/0.3798, allocations: 19.98 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3798, allocations: 0 / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.3798, allocations: 0 / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3798, allocations: 0 / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3798, allocations: 0 / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.3802, allocations: 199.4 kB / 1.171 GB, free: 2.02 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.3802, allocations: 85.06 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.3803, allocations: 3.938 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.3804, allocations: 11.98 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.3804, allocations: 11.92 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.3804, allocations: 0 / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.265e-05/0.3805, allocations: 83.28 kB / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3805, allocations: 0 / 1.171 GB, free: 1.809 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002524/0.3807, allocations: 19.94 kB / 1.171 GB, free: 1.789 MB / 0.92 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.0001551/0.3809, allocations: 95.25 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003553/0.3813, allocations: 71.91 kB / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3813, allocations: 0 / 1.171 GB, free: 1.617 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.3814, allocations: 35.97 kB / 1.171 GB, free: 1.582 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.3818, allocations: 14.27 kB / 1.171 GB, free: 1.57 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.3821, allocations: 125.4 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.3824, allocations: 0.6807 MB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.973e-05/0.3824, allocations: 0 / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.3824, allocations: 15.44 kB / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.3825, allocations: 0 / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of Templates: time 0.002902/0.3854, allocations: 0.7253 MB / 1.173 GB, free: 15.98 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Modulo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches