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.001186/0.001186, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001427/0.001427, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.823/2.823, allocations: 436.5 MB / 0.7104 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.0003579, allocations: 15.98 kB / 0.8708 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8018/0.8021, allocations: 153.6 MB / 1.021 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Modulo): time 0.00104/0.8032, allocations: 434.2 kB / 1.021 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.8044, allocations: 0.8547 MB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.845e-05/0.8044, allocations: 0 / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.444e-05/0.8045, allocations: 3.938 kB / 1.022 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.878e-05/0.8046, allocations: 11.98 kB / 1.022 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.8047, allocations: 15.92 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.874e-05/0.8048, allocations: 23.91 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.805, allocations: 15.98 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.984e-05/0.805, allocations: 11.98 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.088e-05/0.8051, allocations: 19.91 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.8052, allocations: 4 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.109e-05/0.8052, allocations: 0 / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.485e-05/0.8052, allocations: 7.938 kB / 1.022 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.089e-05/0.8052, allocations: 29.7 kB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.601e-05/0.8053, allocations: 23.94 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.8053, allocations: 0 / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.855e-06/0.8053, allocations: 0 / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.8053, allocations: 4 kB / 1.022 GB, free: 15.59 MB / 0.7794 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.000641/0.806, allocations: 369.2 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.8061, allocations: 15.98 kB / 1.023 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.781e-05/0.8061, allocations: 3.906 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.8063, allocations: 171 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.8063, allocations: 4 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.8063, allocations: 0 / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.8067, allocations: 85.55 kB / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.8067, allocations: 0 / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.8067, allocations: 0 / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.8067, allocations: 3.938 kB / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.8071, allocations: 87.92 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005167/0.8076, allocations: 276.8 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.8078, allocations: 70.47 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.798e-05/0.8079, allocations: 4 kB / 1.023 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.8079, allocations: 30.56 kB / 1.023 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.874e-06/0.8079, allocations: 0 / 1.023 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006189/0.8085, allocations: 161.7 kB / 1.023 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.8086, allocations: 55.41 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.8087, allocations: 105.8 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.8088, allocations: 29.64 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.8088, allocations: 88.14 kB / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.8089, allocations: 11.75 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.8089, allocations: 0 / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.809, allocations: 322.8 kB / 1.024 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.8092, allocations: 43.97 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.8094, allocations: 48.14 kB / 1.024 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.8095, allocations: 44.05 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.8095, allocations: 0 / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003435/0.8099, allocations: 121.6 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.8099, allocations: 4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.8099, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.8099, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.8101, allocations: 27.97 kB / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.8101, allocations: 0 / 1.024 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.954e-05/0.8102, allocations: 15.98 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.8103, allocations: 7.938 kB / 1.024 GB, free: 13.21 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.673e-05/0.8104, allocations: 117.8 kB / 1.024 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.8104, allocations: 7.859 kB / 1.024 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.969e-05/0.8104, allocations: 7.906 kB / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.8105, allocations: 0 / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.8105, allocations: 3.984 kB / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.8105, allocations: 0 / 1.024 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.8107, allocations: 165.7 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.8107, allocations: 0 / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.8108, allocations: 23.98 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.8108, allocations: 3.953 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.8108, allocations: 0 / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.8108, allocations: 0 / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.8108, allocations: 3.984 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.8112, allocations: 211.5 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.725e-05/0.8113, allocations: 88.95 kB / 1.025 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.8113, allocations: 7.891 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.8115, allocations: 19.98 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.8115, allocations: 7.984 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.8115, allocations: 4 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.584e-05/0.8116, allocations: 83.27 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.91e-07/0.8116, allocations: 0 / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002236/0.8118, allocations: 12 kB / 1.025 GB, free: 12.36 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002206/0.8121, allocations: 99.25 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003742/0.8124, allocations: 95.86 kB / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8124, allocations: 0 / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.8126, allocations: 47.89 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.8129, allocations: 4 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.8133, allocations: 136.6 kB / 1.025 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003731/0.8137, allocations: 0.6848 MB / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.147e-05/0.8137, allocations: 0 / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.693e-05/0.8138, allocations: 11.44 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.8138, allocations: 4 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of Templates: time 0.003071/0.8169, allocations: 0.5578 MB / 1.027 GB, free: 10.67 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Modulo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches