Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.429/1.429, allocations: 249.5 MB / 257 MB, free: 6.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 187.6 kB / 316.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.3 MB / 0.5671 GB, free: 15.78 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008731/0.0008731, allocations: 104.2 kB / 0.6714 GB, free: 4.895 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.829e-05/1.831e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2427, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8037/1.047, allocations: 131.9 MB / 1.014 GB, free: 5.906 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/1.047, allocations: 70.45 kB / 1.014 GB, free: 5.867 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002842/1.05, allocations: 0.9602 MB / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.884e-06/1.05, allocations: 0 / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.754e-06/1.05, allocations: 0 / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000507/1.05, allocations: 362.1 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/1.05, allocations: 12.78 kB / 1.015 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/1.05, allocations: 3.906 kB / 1.015 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/1.05, allocations: 178.6 kB / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/1.051, allocations: 4 kB / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/1.051, allocations: 4 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001019/1.051, allocations: 15.75 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.809e-05/1.051, allocations: 49.06 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/1.051, allocations: 0 / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/1.051, allocations: 3.938 kB / 1.016 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/1.051, allocations: 4 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005079/1.051, allocations: 276 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/1.052, allocations: 45.62 kB / 1.016 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.993e-05/1.052, allocations: 8.922 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/1.052, allocations: 3.656 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/1.052, allocations: 42.55 kB / 1.016 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/1.052, allocations: 0 / 1.016 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001604/1.052, allocations: 41.17 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/1.052, allocations: 58.14 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.02e-05/1.052, allocations: 97.52 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/1.052, allocations: 25.7 kB / 1.016 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/1.052, allocations: 87.7 kB / 1.016 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/1.052, allocations: 11.38 kB / 1.016 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/1.052, allocations: 4 kB / 1.016 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001283/1.052, allocations: 322.8 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.275e-05/1.052, allocations: 7.688 kB / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.898e-05/1.052, allocations: 7.562 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.278e-05/1.052, allocations: 11.56 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/1.052, allocations: 0 / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.906e-05/1.052, allocations: 49.12 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/1.052, allocations: 4 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/1.052, allocations: 0 / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/1.052, allocations: 8 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.84e-05/1.052, allocations: 11.98 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/1.052, allocations: 0 / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/1.053, allocations: 19.67 kB / 1.017 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/1.053, allocations: 0.875 kB / 1.017 GB, free: 3.129 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.342e-05/1.053, allocations: 116.9 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/1.053, allocations: 0 / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001401/1.053, allocations: 64.94 kB / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/1.053, allocations: 0 / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/1.053, allocations: 0 / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/1.053, allocations: 3.938 kB / 1.017 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/1.053, allocations: 149.6 kB / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/1.053, allocations: 0 / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/1.053, allocations: 15.67 kB / 1.017 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/1.053, allocations: 4 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/1.053, allocations: 4 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/1.053, allocations: 0 / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.053, allocations: 0 / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001209/1.053, allocations: 142.6 kB / 1.017 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/1.053, allocations: 88.97 kB / 1.017 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/1.053, allocations: 4.281 kB / 1.017 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/1.054, allocations: 19.98 kB / 1.017 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/1.054, allocations: 7.984 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/1.054, allocations: 0 / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.747e-05/1.054, allocations: 91.44 kB / 1.017 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.3e-07/1.054, allocations: 0 / 1.017 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001966/1.054, allocations: 11.91 kB / 1.017 GB, free: 2.359 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * 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.0001429/1.054, allocations: 103.2 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.227e-05/1.054, allocations: 22.88 kB / 1.018 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.054, allocations: 0 / 1.018 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/1.054, allocations: 11.5 kB / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001833/1.054, allocations: 9.797 kB / 1.018 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000229/1.055, allocations: 79.06 kB / 1.018 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/1.055, allocations: 0.6807 MB / 1.018 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.602e-05/1.055, allocations: 11.86 kB / 1.018 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/1.055, allocations: 11.42 kB / 1.018 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of SimCode: time 2.11e-07/1.055, allocations: 0 / 1.018 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of Templates: time 0.002604/1.058, allocations: 0.5671 MB / 1.019 GB, free: 0.8398 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches