Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_10_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_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 115.8 kB / 16.42 MB, free: 6.504 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.001322/0.001322, allocations: 186.6 kB / 17.35 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.645/2.645, allocations: 437 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 68.11 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.055/1.056, allocations: 151.6 MB / 1.167 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002379/1.059, allocations: 0.7109 MB / 1.168 GB, free: 3.203 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00186/1.061, allocations: 1.267 MB / 1.169 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.547e-05/1.061, allocations: 4 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.835e-05/1.061, allocations: 3.938 kB / 1.169 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/1.061, allocations: 27.78 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001063/1.062, allocations: 300 kB / 1.17 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003972/1.062, allocations: 275.6 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/1.063, allocations: 20.16 kB / 1.17 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/1.063, allocations: 99.8 kB / 1.17 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/1.063, allocations: 99.73 kB / 1.17 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 7.613e-05/1.063, allocations: 20 kB / 1.17 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/1.063, allocations: 35.98 kB / 1.17 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.279e-05/1.063, allocations: 19.92 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/1.063, allocations: 79.8 kB / 1.17 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000314/1.064, allocations: 219.3 kB / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/1.064, allocations: 3.938 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.924e-06/1.064, allocations: 0 / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.263e-06/1.064, allocations: 0 / 1.17 GB, free: 0.7461 MB / 0.8887 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.0007605/1.065, allocations: 494.2 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/1.065, allocations: 12.03 kB / 1.171 GB, free: 192 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.526e-05/1.065, allocations: 16.84 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/1.065, allocations: 182.4 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/1.065, allocations: 8.375 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/1.065, allocations: 12.38 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/1.065, allocations: 62.22 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/1.065, allocations: 3.938 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/1.065, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/1.065, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.312e-05/1.065, allocations: 27.97 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006435/1.066, allocations: 416.5 kB / 1.172 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 6.955e-05/1.066, allocations: 30.52 kB / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.941e-05/1.066, allocations: 24.94 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/1.066, allocations: 0 / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001734/1.066, allocations: 107.2 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/1.066, allocations: 0 / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0003307/1.067, allocations: 137.5 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/1.067, allocations: 55.41 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/1.067, allocations: 137.7 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/1.067, allocations: 33.7 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.799e-05/1.067, allocations: 100.2 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/1.067, allocations: 19.72 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/1.067, allocations: 69.67 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001504/1.067, allocations: 326.8 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/1.067, allocations: 83.95 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/1.068, allocations: 136.8 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003192/1.068, allocations: 235.8 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/1.068, allocations: 0 / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006688/1.069, allocations: 376.1 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.913e-05/1.069, allocations: 101.1 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.069, allocations: 3.938 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/1.069, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.119e-05/1.069, allocations: 11.92 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/1.069, allocations: 0 / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000497/1.069, allocations: 87.91 kB / 1.174 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/1.069, allocations: 15.98 kB / 1.174 GB, free: 13.15 MB / 0.9044 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,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001432/1.07, allocations: 129.8 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.006e-05/1.07, allocations: 7.906 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.894e-05/1.07, allocations: 16.36 kB / 1.174 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/1.07, allocations: 384 / 1.174 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/1.07, allocations: 0 / 1.174 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.513e-05/1.07, allocations: 85.02 kB / 1.174 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/1.07, allocations: 7.938 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.622e-05/1.07, allocations: 7.875 kB / 1.174 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/1.07, allocations: 11.98 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002052/1.07, allocations: 188.9 kB / 1.174 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002234/1.07, allocations: 278.7 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.725e-05/1.07, allocations: 39.92 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.264e-05/1.07, allocations: 98.5 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of Backend: time 4.11e-07/1.07, allocations: 4 kB / 1.174 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007985/1.071, allocations: 420.5 kB / 1.175 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006909/1.072, allocations: 0.6324 MB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of Templates: time 0.0065/1.078, allocations: 2.661 MB / 1.178 GB, free: 8.477 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches