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.01084/0.01084, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.002142/0.002142, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.646/1.646, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.97/2.97, allocations: 437 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 59.91 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4531/0.4548, allocations: 151.6 MB / 1.167 GB, free: 6.805 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002159/0.457, allocations: 0.7031 MB / 1.167 GB, free: 6.102 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.4588, allocations: 1.269 MB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.4589, allocations: 4 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.068e-05/0.4589, allocations: 3.938 kB / 1.169 GB, free: 4.809 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.886e-05/0.459, allocations: 15.8 kB / 1.169 GB, free: 4.793 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008917/0.4599, allocations: 313 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003389/0.4603, allocations: 279.5 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.4604, allocations: 24.14 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.4606, allocations: 95.88 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001986/0.4608, allocations: 91.73 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.4608, allocations: 27.98 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.722e-05/0.4609, allocations: 39.92 kB / 1.169 GB, free: 3.945 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.928e-05/0.461, allocations: 11.98 kB / 1.169 GB, free: 3.934 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.4611, allocations: 95.67 kB / 1.17 GB, free: 3.84 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002815/0.4614, allocations: 215.3 kB / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4614, allocations: 0 / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4614, allocations: 0 / 1.17 GB, free: 3.629 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.4614, allocations: 4 kB / 1.17 GB, free: 3.625 MB / 0.92 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.0006579/0.4621, allocations: 496.2 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.4621, allocations: 8.031 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.768e-05/0.4622, allocations: 20.89 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.4623, allocations: 172.3 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.4623, allocations: 16.36 kB / 1.17 GB, free: 2.824 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.4624, allocations: 16.38 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.4625, allocations: 58.16 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.4625, allocations: 3.938 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.4625, allocations: 4 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.4626, allocations: 4 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.472e-05/0.4626, allocations: 15.98 kB / 1.171 GB, free: 2.719 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/0.4632, allocations: 412.5 kB / 1.171 GB, free: 2.266 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 7.42e-05/0.4633, allocations: 38.5 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.052e-05/0.4633, allocations: 20.94 kB / 1.171 GB, free: 2.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.4634, allocations: 3.938 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.4635, allocations: 103.3 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.4635, allocations: 0 / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0003233/0.4639, allocations: 133.6 kB / 1.171 GB, free: 1.941 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.4639, allocations: 63.33 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.4641, allocations: 135.9 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.91e-05/0.4641, allocations: 37.7 kB / 1.171 GB, free: 1.684 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.4642, allocations: 92.2 kB / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.4642, allocations: 23.84 kB / 1.172 GB, free: 1.566 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.4643, allocations: 70.05 kB / 1.172 GB, free: 1.492 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4645, allocations: 322.8 kB / 1.172 GB, free: 1.168 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.4647, allocations: 87.95 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.4649, allocations: 134 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.4652, allocations: 246.8 kB / 1.172 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4652, allocations: 0 / 1.172 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005715/0.4658, allocations: 370.5 kB / 1.173 GB, free: 272 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.023e-05/0.4659, allocations: 99.12 kB / 1.173 GB, free: 156 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4659, allocations: 4 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.4659, allocations: 0 / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.917e-05/0.4659, allocations: 8.188 kB / 1.173 GB, free: 144 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.4659, allocations: 11.92 kB / 1.173 GB, free: 132 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/0.4664, allocations: 83.8 kB / 1.173 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/0.4665, allocations: 15.98 kB / 1.173 GB, free: 32 kB / 0.92 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.0001501/0.4666, allocations: 136.2 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.4667, allocations: 7.953 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.4667, allocations: 8.375 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4667, allocations: 4 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.4667, allocations: 3.984 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.4667, allocations: 0 / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.4669, allocations: 189.6 kB / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4669, allocations: 0 / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.56e-05/0.4669, allocations: 7.938 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.4669, allocations: 3.984 kB / 1.173 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.467, allocations: 12 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.467, allocations: 0 / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.467, allocations: 0 / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.4672, allocations: 140.9 kB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.4673, allocations: 93.03 kB / 1.173 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.4673, allocations: 0 / 1.173 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.591e-05/0.4673, allocations: 4 kB / 1.173 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.4674, allocations: 7.984 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.4674, allocations: 12 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.569e-05/0.4675, allocations: 99.2 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4675, allocations: 0 / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002764/0.4677, allocations: 47.95 kB / 1.174 GB, free: 15.17 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002128/0.468, allocations: 103.2 kB / 1.174 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005022/0.4685, allocations: 378.3 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4685, allocations: 4.062 kB / 1.174 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 7.076e-05/0.4686, allocations: 35.98 kB / 1.174 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.4689, allocations: 23.92 kB / 1.174 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004579/0.4693, allocations: 186.8 kB / 1.174 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.4696, allocations: 0.6963 MB / 1.175 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.437e-05/0.4697, allocations: 12.42 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.4697, allocations: 11.44 kB / 1.175 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of SimCode: time 4.21e-07/0.4697, allocations: 0 / 1.175 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of Templates: time 0.006969/0.4767, allocations: 2.62 MB / 1.178 GB, free: 11.04 MB / 0.9356 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/jenkins/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