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.00127/0.00127, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001403/0.001403, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.957/2.957, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 68.97 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3418, allocations: 157.4 MB / 1.052 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.002568/0.3444, allocations: 0.7573 MB / 1.053 GB, free: 8.121 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.3457, allocations: 0.8741 MB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.516e-05/0.3458, allocations: 0 / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.494e-05/0.3458, allocations: 7.875 kB / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.346, allocations: 0 / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001914/0.3462, allocations: 27.91 kB / 1.054 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.123e-05/0.3463, allocations: 39.92 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3464, allocations: 7.984 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.425e-05/0.3465, allocations: 15.92 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.219e-05/0.3465, allocations: 23.92 kB / 1.054 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.3466, allocations: 0 / 1.054 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.562e-05/0.3466, allocations: 4 kB / 1.054 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.3466, allocations: 7.984 kB / 1.054 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.903e-05/0.3467, allocations: 15.88 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.792e-05/0.3468, allocations: 39.86 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3468, allocations: 0 / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.31e-07/0.3468, allocations: 0 / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.597e-06/0.3468, allocations: 0 / 1.054 GB, free: 7.047 MB / 0.8106 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.0006935/0.3475, allocations: 367.6 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3476, allocations: 8.031 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.3476, allocations: 8.938 kB / 1.054 GB, free: 6.621 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.3478, allocations: 172.2 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.3478, allocations: 4.375 kB / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.3478, allocations: 384 / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.3481, allocations: 70.2 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3481, allocations: 192 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.3481, allocations: 11.94 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3481, allocations: 0 / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.3485, allocations: 63.92 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.349, allocations: 260.9 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002976/0.3493, allocations: 62.47 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.3495, allocations: 36.91 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.3496, allocations: 0 / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.3496, allocations: 38.56 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.843e-06/0.3496, allocations: 4 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0008778/0.3505, allocations: 129.4 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.3506, allocations: 51.41 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.3507, allocations: 113.8 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.3507, allocations: 25.7 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.3508, allocations: 92.12 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.3508, allocations: 15.73 kB / 1.055 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.3509, allocations: 17.72 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.351, allocations: 314.8 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.3513, allocations: 31.97 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.3515, allocations: 31.97 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.3519, allocations: 69.06 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.3519, allocations: 3.938 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004818/0.3524, allocations: 105.5 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3524, allocations: 11.98 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3524, allocations: 0 / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.3524, allocations: 0 / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.3526, allocations: 15.98 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3526, allocations: 0 / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.3527, allocations: 15.98 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.3528, allocations: 0 / 1.056 GB, free: 4.711 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 8.735e-05/0.3529, allocations: 117.8 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.3529, allocations: 3.906 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.456e-05/0.353, allocations: 11.89 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.353, allocations: 4 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.353, allocations: 0 / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.353, allocations: 0 / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.3532, allocations: 169.6 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3533, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.3534, allocations: 15.97 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.3534, allocations: 7.938 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.3534, allocations: 4 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3534, allocations: 0 / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3534, allocations: 0 / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.3539, allocations: 187.4 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/0.354, allocations: 88.95 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.354, allocations: 11.98 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.3542, allocations: 7.984 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.3543, allocations: 4 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-06/0.3543, allocations: 3.938 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.781e-05/0.3544, allocations: 95.56 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3544, allocations: 0 / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000419/0.3548, allocations: 4 kB / 1.057 GB, free: 3.891 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.0001762/0.355, allocations: 103.2 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004647/0.3554, allocations: 71.86 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3555, allocations: 0 / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.3557, allocations: 35.95 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.3562, allocations: 23.81 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.3566, allocations: 135.1 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.3569, allocations: 0.677 MB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.57e-05/0.357, allocations: 4 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.661e-05/0.3571, allocations: 11.44 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.3571, allocations: 4 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of Templates: time 0.003501/0.3606, allocations: 0.5966 MB / 1.058 GB, free: 2.184 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 -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