Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.307/2.307, allocations: 390.3 MB / 402.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 176.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009069/0.0009069, allocations: 91.59 kB / 0.9318 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.614e-05/4.641e-05, allocations: 8 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3224, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.106/1.429, allocations: 150.2 MB / 1.365 GB, free: 3.855 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/1.429, allocations: 69.86 kB / 1.365 GB, free: 3.816 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01226/1.441, allocations: 4.055 MB / 1.369 GB, free: 300 kB / 0.823 GB Notification: Performance of FrontEnd: time 2.064e-06/1.441, allocations: 0 / 1.369 GB, free: 300 kB / 0.823 GB Notification: Performance of Transformations before backend: time 7.464e-06/1.441, allocations: 0 / 1.369 GB, free: 300 kB / 0.823 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.0005238/1.442, allocations: 468.4 kB / 1.37 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/1.442, allocations: 8.031 kB / 1.37 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/1.442, allocations: 15.91 kB / 1.37 GB, free: 15.76 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/1.442, allocations: 172.4 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/1.442, allocations: 9.938 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.745e-05/1.442, allocations: 18.92 kB / 1.37 GB, free: 15.53 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/1.442, allocations: 48.69 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/1.442, allocations: 0 / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/1.442, allocations: 4 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/1.442, allocations: 7.938 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.599e-05/1.442, allocations: 23.48 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/1.443, allocations: 419.4 kB / 1.371 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.76e-05/1.443, allocations: 30.64 kB / 1.371 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.904e-05/1.443, allocations: 27.16 kB / 1.371 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/1.443, allocations: 0 / 1.371 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001659/1.443, allocations: 97.05 kB / 1.371 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/1.443, allocations: 0 / 1.371 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002639/1.444, allocations: 117.4 kB / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/1.444, allocations: 55.41 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/1.444, allocations: 123 kB / 1.371 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/1.444, allocations: 39.75 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/1.444, allocations: 93.77 kB / 1.371 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/1.444, allocations: 23.16 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/1.444, allocations: 11.56 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001338/1.444, allocations: 318 kB / 1.371 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/1.444, allocations: 84.42 kB / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/1.445, allocations: 139.4 kB / 1.372 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/1.445, allocations: 167.6 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.445, allocations: 0 / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005665/1.445, allocations: 364.5 kB / 1.372 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.276e-05/1.445, allocations: 105 kB / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/1.445, allocations: 0 / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/1.446, allocations: 7.953 kB / 1.372 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.837e-05/1.446, allocations: 7.875 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/1.446, allocations: 4 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004887/1.446, allocations: 103.9 kB / 1.372 GB, free: 13.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.435e-05/1.446, allocations: 27.67 kB / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0001102/1.446, allocations: 120.8 kB / 1.373 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/1.446, allocations: 11.89 kB / 1.373 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/1.446, allocations: 7.375 kB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/1.446, allocations: 0 / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/1.446, allocations: 7.953 kB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/1.446, allocations: 96 / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/1.447, allocations: 196 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/1.447, allocations: 4 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.234e-05/1.447, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/1.447, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/1.447, allocations: 4 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/1.447, allocations: 0 / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/1.447, allocations: 4 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/1.447, allocations: 139 kB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.571e-05/1.447, allocations: 85.02 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/1.447, allocations: 3.375 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.846e-05/1.447, allocations: 4 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.688e-05/1.447, allocations: 11.42 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/1.447, allocations: 7.984 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001008/1.447, allocations: 97.3 kB / 1.373 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.51e-07/1.447, allocations: 0 / 1.373 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004894/1.448, allocations: 55.38 kB / 1.373 GB, free: 12.43 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002758/1.448, allocations: 117.3 kB / 1.373 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006989/1.449, allocations: 361.8 kB / 1.374 GB, free: 11.99 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.449, allocations: 0 / 1.374 GB, free: 11.99 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.823e-05/1.449, allocations: 39 kB / 1.374 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/1.449, allocations: 15.36 kB / 1.374 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003826/1.45, allocations: 124.1 kB / 1.374 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/1.45, allocations: 0.7004 MB / 1.374 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.232e-05/1.45, allocations: 12.42 kB / 1.374 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/1.45, allocations: 19.12 kB / 1.374 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of SimCode: time 4.8e-07/1.45, allocations: 0 / 1.374 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.008277/1.459, allocations: 2.379 MB / 1.377 GB, free: 8.723 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches