Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.3 MB / 405.3 MB, free: 13.53 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.00112/0.00112, allocations: 185 kB / 498.1 MB, free: 5.781 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.538/1.538, allocations: 223.2 MB / 0.7949 GB, free: 17.98 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.001012/0.001012, allocations: 102.9 kB / 0.9346 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003832, allocations: 10.31 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3135, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.4993, allocations: 149.4 MB / 1.369 GB, free: 12.73 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4996, allocations: 75.89 kB / 1.369 GB, free: 12.65 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01187/0.5115, allocations: 4.081 MB / 1.373 GB, free: 8.566 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.098e-06/0.5115, allocations: 0 / 1.373 GB, free: 8.566 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.667e-06/0.5116, allocations: 3.938 kB / 1.373 GB, free: 8.562 MB / 0.8698 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.000538/0.5121, allocations: 461 kB / 1.373 GB, free: 8.047 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.5122, allocations: 8.031 kB / 1.373 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.907e-05/0.5122, allocations: 15.91 kB / 1.373 GB, free: 8.023 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.5124, allocations: 171 kB / 1.373 GB, free: 7.816 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.5124, allocations: 11.98 kB / 1.373 GB, free: 7.805 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.577e-05/0.5125, allocations: 16 kB / 1.373 GB, free: 7.789 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.5126, allocations: 61.61 kB / 1.374 GB, free: 7.723 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.5127, allocations: 0 / 1.374 GB, free: 7.723 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.5127, allocations: 0 / 1.374 GB, free: 7.723 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.5127, allocations: 0 / 1.374 GB, free: 7.723 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.331e-05/0.5127, allocations: 27.97 kB / 1.374 GB, free: 7.695 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005639/0.5133, allocations: 412.5 kB / 1.374 GB, free: 7.242 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.722e-05/0.5134, allocations: 42.5 kB / 1.374 GB, free: 7.191 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.124e-06/0.5134, allocations: 0 / 1.374 GB, free: 7.191 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.5136, allocations: 95.44 kB / 1.374 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.5136, allocations: 0 / 1.374 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0003014/0.5139, allocations: 141.7 kB / 1.374 GB, free: 6.941 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.514, allocations: 55.36 kB / 1.374 GB, free: 6.875 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.5141, allocations: 131.8 kB / 1.374 GB, free: 6.742 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/0.5141, allocations: 33.7 kB / 1.374 GB, free: 6.703 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.467e-05/0.5142, allocations: 92.14 kB / 1.375 GB, free: 6.609 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.5142, allocations: 27.77 kB / 1.375 GB, free: 6.582 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.5143, allocations: 15.88 kB / 1.375 GB, free: 6.566 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5144, allocations: 322.8 kB / 1.375 GB, free: 6.242 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.5146, allocations: 83.95 kB / 1.375 GB, free: 6.16 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.5148, allocations: 138 kB / 1.375 GB, free: 6.004 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002162/0.515, allocations: 173.1 kB / 1.375 GB, free: 5.816 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.515, allocations: 0 / 1.375 GB, free: 5.816 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005432/0.5156, allocations: 370.4 kB / 1.376 GB, free: 5.43 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.858e-05/0.5156, allocations: 97.09 kB / 1.376 GB, free: 5.316 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.5157, allocations: 4 kB / 1.376 GB, free: 5.312 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.5157, allocations: 0 / 1.376 GB, free: 5.312 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.559e-05/0.5157, allocations: 15.94 kB / 1.376 GB, free: 5.297 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.5157, allocations: 4 kB / 1.376 GB, free: 5.293 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.5162, allocations: 116 kB / 1.376 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.5163, allocations: 19.98 kB / 1.376 GB, free: 5.16 MB / 0.8698 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 () * Number of clocked 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.0001252/0.5164, allocations: 127.6 kB / 1.376 GB, free: 5.027 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.557e-05/0.5164, allocations: 7.906 kB / 1.376 GB, free: 5.02 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.291e-05/0.5165, allocations: 12.36 kB / 1.376 GB, free: 5.004 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.5165, allocations: 4 kB / 1.376 GB, free: 5 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5165, allocations: 3.953 kB / 1.376 GB, free: 4.996 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.5165, allocations: 4 kB / 1.376 GB, free: 4.992 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.5167, allocations: 189.6 kB / 1.376 GB, free: 4.758 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5167, allocations: 0 / 1.376 GB, free: 4.758 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-05/0.5167, allocations: 3.984 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.5167, allocations: 4 kB / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.5167, allocations: 0 / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.5167, allocations: 0 / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5167, allocations: 0 / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001806/0.5169, allocations: 140.9 kB / 1.376 GB, free: 4.594 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.517, allocations: 89.2 kB / 1.376 GB, free: 4.488 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.517, allocations: 4 kB / 1.376 GB, free: 4.484 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.182e-05/0.517, allocations: 3.938 kB / 1.376 GB, free: 4.48 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.5171, allocations: 7.984 kB / 1.376 GB, free: 4.473 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.5171, allocations: 11.94 kB / 1.376 GB, free: 4.461 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.723e-05/0.5172, allocations: 95.27 kB / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5172, allocations: 0 / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002742/0.5174, allocations: 59.88 kB / 1.377 GB, free: 4.309 MB / 0.8698 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 () * Number of clocked 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.0001733/0.5176, allocations: 121.3 kB / 1.377 GB, free: 4.184 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004492/0.5181, allocations: 358.1 kB / 1.377 GB, free: 3.797 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5181, allocations: 0 / 1.377 GB, free: 3.797 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 6.1e-05/0.5182, allocations: 39.92 kB / 1.377 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002002/0.5184, allocations: 20.3 kB / 1.377 GB, free: 3.738 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003995/0.5188, allocations: 211.5 kB / 1.377 GB, free: 3.496 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.5191, allocations: 0.6926 MB / 1.378 GB, free: 2.777 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.65e-05/0.5191, allocations: 12.42 kB / 1.378 GB, free: 2.766 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.489e-05/0.5191, allocations: 15.44 kB / 1.378 GB, free: 2.75 MB / 0.8698 GB Notification: Performance of SimCode: time 5.11e-07/0.5191, allocations: 0 / 1.378 GB, free: 2.75 MB / 0.8698 GB Notification: Performance of Templates: time 0.005551/0.5247, allocations: 2.375 MB / 1.38 GB, free: 420 kB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches