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.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.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.001659/0.001659, allocations: 107.8 kB / 16.36 MB, free: 6.285 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.00169/0.00169, allocations: 193.2 kB / 17.29 MB, free: 5.863 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.454/1.454, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.691/2.691, allocations: 442.6 MB / 0.7165 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001316, allocations: 71.25 kB / 0.8773 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3461, allocations: 153 MB / 1.027 GB, free: 1.992 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.002288/0.3484, allocations: 0.7189 MB / 1.027 GB, free: 1.277 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001071/0.3495, allocations: 0.8803 MB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.813e-05/0.3496, allocations: 0 / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.614e-05/0.3496, allocations: 3.938 kB / 1.028 GB, free: 392 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.017e-05/0.3497, allocations: 7.922 kB / 1.028 GB, free: 384 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.3499, allocations: 15.98 kB / 1.028 GB, free: 368 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.35, allocations: 51.78 kB / 1.028 GB, free: 316 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.3501, allocations: 8 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.825e-05/0.3502, allocations: 15.92 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.593e-05/0.3503, allocations: 27.92 kB / 1.028 GB, free: 264 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.3503, allocations: 4 kB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.388e-05/0.3503, allocations: 4 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.238e-05/0.3504, allocations: 11.97 kB / 1.028 GB, free: 244 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.31e-05/0.3504, allocations: 15.88 kB / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.3505, allocations: 43.86 kB / 1.028 GB, free: 184 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3505, allocations: 0 / 1.028 GB, free: 184 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.816e-06/0.3505, allocations: 0 / 1.028 GB, free: 184 kB / 0.795 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.3505, allocations: 0 / 1.028 GB, free: 184 kB / 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.0006357/0.3512, allocations: 364.6 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3512, allocations: 8.031 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.785e-05/0.3513, allocations: 8.844 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.3514, allocations: 172.2 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.3515, allocations: 4.375 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.3515, allocations: 384 / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002472/0.3517, allocations: 66.22 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3517, allocations: 192 / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.3518, allocations: 11.94 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.3518, allocations: 0 / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/0.3521, allocations: 63.92 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.3525, allocations: 272.8 kB / 1.029 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.3527, allocations: 58.48 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.3528, allocations: 44.89 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.3529, allocations: 0 / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.3529, allocations: 34.56 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3529, allocations: 0 / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005393/0.3535, allocations: 133.5 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.3535, allocations: 55.34 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.3536, allocations: 105.8 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3536, allocations: 29.7 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.698e-05/0.3537, allocations: 88.14 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.3537, allocations: 11.75 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.482e-05/0.3538, allocations: 17.72 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3539, allocations: 314.8 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.3541, allocations: 31.97 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3542, allocations: 31.95 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.3544, allocations: 72.78 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3545, allocations: 3.938 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002934/0.3548, allocations: 97.56 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.3548, allocations: 4 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.3548, allocations: 4 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3548, allocations: 0 / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3549, allocations: 19.98 kB / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.3549, allocations: 0 / 1.031 GB, free: 13.87 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.303e-05/0.355, allocations: 11.98 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.355, allocations: 3.984 kB / 1.031 GB, free: 13.85 MB / 0.8106 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.14e-05/0.3551, allocations: 117.7 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.3552, allocations: 7.906 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.3552, allocations: 7.906 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3552, allocations: 4 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3552, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3552, allocations: 0 / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.3554, allocations: 173.6 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.3554, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.279e-05/0.3555, allocations: 11.98 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.3555, allocations: 8 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.3556, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3556, allocations: 7.938 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3556, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/0.3559, allocations: 195.4 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/0.356, allocations: 88.95 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.356, allocations: 0 / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3561, allocations: 11.98 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.257e-05/0.3562, allocations: 12.3 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.3562, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.04e-05/0.3562, allocations: 87.28 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3562, allocations: 0 / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002132/0.3564, allocations: 4 kB / 1.031 GB, free: 13.03 MB / 0.8106 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.0001477/0.3566, allocations: 103.2 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003185/0.3569, allocations: 83.83 kB / 1.031 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3569, allocations: 0 / 1.031 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.3571, allocations: 31.97 kB / 1.031 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.3574, allocations: 11.88 kB / 1.031 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.3577, allocations: 133.5 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.358, allocations: 0.6807 MB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.735e-05/0.3581, allocations: 4 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.3581, allocations: 11.44 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3581, allocations: 0 / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of Templates: time 0.003048/0.3612, allocations: 0.7112 MB / 1.033 GB, free: 11.21 MB / 0.8106 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 -s cvode -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