Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.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.MultiAnd,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mulAnd0.y|mulAnd1.u.1.|mulAnd1.y|mulAnd2.u.1.|mulAnd2.u.2.|mulAnd2.y|mulAnd5.u.1.|mulAnd5.u.2.|mulAnd5.u.3.|mulAnd5.u.4.|mulAnd5.u.5.|mulAnd5.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mulAnd0.y|mulAnd1.u.1.|mulAnd1.y|mulAnd2.u.1.|mulAnd2.u.2.|mulAnd2.y|mulAnd5.u.1.|mulAnd5.u.2.|mulAnd5.u.3.|mulAnd5.u.4.|mulAnd5.u.5.|mulAnd5.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.415/2.415, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001047/0.001047, allocations: 182.3 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.725/1.725, allocations: 223.2 MB / 0.7992 GB, free: 14.7 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.001151/0.001151, allocations: 102.9 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004076/0.0004076, allocations: 14.92 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2833, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1911/0.4744, allocations: 150.4 MB / 1.376 GB, free: 3.07 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4747, allocations: 67.97 kB / 1.376 GB, free: 3.004 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02057/0.4952, allocations: 6.828 MB / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.596e-06/0.4953, allocations: 0 / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.608e-05/0.4953, allocations: 7.938 kB / 1.383 GB, free: 12.15 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008/0.4961, allocations: 0.5735 MB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.4962, allocations: 8.562 kB / 1.383 GB, free: 11.49 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.4963, allocations: 31.81 kB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.4967, allocations: 258.8 kB / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/0.4968, allocations: 23.92 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.053e-05/0.4968, allocations: 28 kB / 1.384 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.4971, allocations: 160.9 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.4971, allocations: 0 / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.4972, allocations: 4 kB / 1.384 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4972, allocations: 7.938 kB / 1.384 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.4973, allocations: 79.94 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008953/0.4982, allocations: 0.7071 MB / 1.385 GB, free: 10.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.4984, allocations: 167.7 kB / 1.385 GB, free: 9.906 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.182e-05/0.4985, allocations: 0 / 1.385 GB, free: 9.906 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.4987, allocations: 156 kB / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.4988, allocations: 0 / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of matching and sorting (n=20): time 0.000472/0.4992, allocations: 234.9 kB / 1.385 GB, free: 9.508 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.4993, allocations: 59.39 kB / 1.385 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.4995, allocations: 178.8 kB / 1.385 GB, free: 9.258 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.401e-05/0.4995, allocations: 37.7 kB / 1.385 GB, free: 9.215 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.4997, allocations: 128.5 kB / 1.386 GB, free: 9.086 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.588e-05/0.4997, allocations: 39.5 kB / 1.386 GB, free: 9.047 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.4998, allocations: 16 kB / 1.386 GB, free: 9.031 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4999, allocations: 330.8 kB / 1.386 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.5003, allocations: 151.9 kB / 1.386 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.5007, allocations: 249.9 kB / 1.386 GB, free: 8.27 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/0.5011, allocations: 285.8 kB / 1.387 GB, free: 7.961 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.5011, allocations: 0 / 1.387 GB, free: 7.961 MB / 0.8855 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001024/0.5021, allocations: 0.6078 MB / 1.387 GB, free: 7.316 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.5022, allocations: 164.5 kB / 1.387 GB, free: 7.125 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.5023, allocations: 4 kB / 1.387 GB, free: 7.121 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.5023, allocations: 16.27 kB / 1.387 GB, free: 7.105 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.168e-05/0.5023, allocations: 4.094 kB / 1.387 GB, free: 7.102 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.5023, allocations: 11.88 kB / 1.387 GB, free: 7.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007891/0.5031, allocations: 187.7 kB / 1.388 GB, free: 6.906 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.262e-05/0.5032, allocations: 35.92 kB / 1.388 GB, free: 6.871 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,mulAnd2.y,mulAnd5.y,mulAnd5.uTemp[2],mulAnd5.uTemp[3],mulAnd5.uTemp[4],$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,$PRE.booPul4.y,booPul4.y,$PRE.booPul5.y,booPul5.y,mulAnd0.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 5 * 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.0001945/0.5034, allocations: 165 kB / 1.388 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.374e-05/0.5035, allocations: 15.81 kB / 1.388 GB, free: 6.688 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.5035, allocations: 17.86 kB / 1.388 GB, free: 6.676 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.5035, allocations: 4 kB / 1.388 GB, free: 6.672 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.5035, allocations: 0 / 1.388 GB, free: 6.672 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.5035, allocations: 3.984 kB / 1.388 GB, free: 6.668 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007308/0.5043, allocations: 0.5022 MB / 1.388 GB, free: 6.109 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.5043, allocations: 0 / 1.388 GB, free: 6.109 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.437e-05/0.5043, allocations: 11.98 kB / 1.388 GB, free: 6.098 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.5043, allocations: 8 kB / 1.388 GB, free: 6.09 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.5044, allocations: 0 / 1.388 GB, free: 6.09 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.5044, allocations: 4 kB / 1.388 GB, free: 6.086 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5044, allocations: 0 / 1.388 GB, free: 6.086 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/0.5048, allocations: 281.6 kB / 1.389 GB, free: 5.797 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.515e-05/0.5049, allocations: 92.92 kB / 1.389 GB, free: 5.688 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.5049, allocations: 4 kB / 1.389 GB, free: 5.684 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.978e-05/0.505, allocations: 7.984 kB / 1.389 GB, free: 5.676 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.062e-05/0.5051, allocations: 23.91 kB / 1.389 GB, free: 5.652 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.5051, allocations: 12 kB / 1.389 GB, free: 5.641 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.823e-05/0.5052, allocations: 115.2 kB / 1.389 GB, free: 5.527 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5052, allocations: 4 kB / 1.389 GB, free: 5.523 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004029/0.5056, allocations: 79.98 kB / 1.389 GB, free: 5.445 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (mulAnd5.uTemp[2],$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,mulAnd2.y,mulAnd5.y,mulAnd5.uTemp[3],mulAnd5.uTemp[4],booPul1.y,booPul2.y,booPul3.y,booPul4.y,booPul5.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001928/0.5058, allocations: 119.9 kB / 1.389 GB, free: 5.316 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007368/0.5066, allocations: 0.6179 MB / 1.39 GB, free: 4.637 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5066, allocations: 0 / 1.39 GB, free: 4.637 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.5067, allocations: 75.91 kB / 1.39 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.507, allocations: 41.69 kB / 1.39 GB, free: 4.523 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006107/0.5076, allocations: 368.7 kB / 1.39 GB, free: 4.137 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.5079, allocations: 0.7322 MB / 1.391 GB, free: 3.379 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.879e-05/0.508, allocations: 29.48 kB / 1.391 GB, free: 3.348 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.5081, allocations: 15.44 kB / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of SimCode: time 3.7e-07/0.5081, allocations: 0 / 1.391 GB, free: 3.336 MB / 0.8855 GB Notification: Performance of Templates: time 0.008766/0.5168, allocations: 4.128 MB / 1.395 GB, free: 15.26 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_MultiAnd.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches