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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009089/0.0009089, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001231/0.001231, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 223.3 MB / 240 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.779/2.779, allocations: 437.7 MB / 0.7117 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004471/0.0004472, allocations: 12 kB / 0.8722 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8663/0.8668, allocations: 153.8 MB / 1.022 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0009521/0.8678, allocations: 432.8 kB / 1.023 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001593/0.8694, allocations: 1.245 MB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.352e-05/0.8694, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.595e-05/0.8695, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.204e-05/0.8696, allocations: 15.84 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007963/0.8704, allocations: 286.2 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002211/0.8706, allocations: 203.6 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.743e-05/0.8707, allocations: 8.172 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.8708, allocations: 87.86 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.8709, allocations: 67.78 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.871, allocations: 12 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.558e-05/0.8711, allocations: 31.98 kB / 1.025 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.8711, allocations: 15.91 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.8712, allocations: 45.7 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.8714, allocations: 149.6 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.8714, allocations: 0 / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8714, allocations: 0 / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.8714, allocations: 0 / 1.025 GB, free: 13.51 MB / 0.7794 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.0005027/0.8719, allocations: 460.2 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.872, allocations: 8.562 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.908e-05/0.872, allocations: 15.91 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.8722, allocations: 178.9 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.116e-05/0.8722, allocations: 11.98 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.335e-05/0.8723, allocations: 16 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.8724, allocations: 61.61 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.8724, allocations: 3.938 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.8724, allocations: 0 / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.8724, allocations: 4 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.802e-05/0.8725, allocations: 15.98 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.873, allocations: 416.5 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.049e-05/0.8731, allocations: 34.5 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.732e-05/0.8732, allocations: 24.94 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-06/0.8732, allocations: 0 / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001672/0.8733, allocations: 99.2 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.8734, allocations: 4 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003073/0.8737, allocations: 141.5 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.8737, allocations: 55.39 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.8738, allocations: 134.8 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/0.8739, allocations: 29.7 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.469e-05/0.874, allocations: 104.1 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.16e-05/0.874, allocations: 19.8 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.436e-05/0.874, allocations: 4 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.8742, allocations: 326.8 kB / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.8743, allocations: 87.94 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.8746, allocations: 134 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.8748, allocations: 173 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.8748, allocations: 0 / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005768/0.8754, allocations: 366.5 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.28e-05/0.8755, allocations: 102.7 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.8755, allocations: 7.984 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.8755, allocations: 0 / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.97e-05/0.8755, allocations: 7.938 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.8755, allocations: 12.25 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000546/0.8761, allocations: 117.8 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/0.8761, allocations: 19.98 kB / 1.028 GB, free: 10.07 MB / 0.7794 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.000129/0.8763, allocations: 131.6 kB / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.8763, allocations: 11.91 kB / 1.028 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.674e-05/0.8763, allocations: 12.25 kB / 1.028 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.8764, allocations: 4 kB / 1.028 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.8764, allocations: 3.984 kB / 1.028 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.8764, allocations: 3.984 kB / 1.028 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.8766, allocations: 193.6 kB / 1.028 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8766, allocations: 0 / 1.028 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.111e-05/0.8766, allocations: 0 / 1.028 GB, free: 9.656 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.8766, allocations: 4 kB / 1.028 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.8766, allocations: 7.984 kB / 1.028 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.8766, allocations: 7.938 kB / 1.028 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.8766, allocations: 0 / 1.028 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/0.8768, allocations: 140.9 kB / 1.028 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.8769, allocations: 85.02 kB / 1.029 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.8769, allocations: 3.984 kB / 1.029 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.123e-05/0.8769, allocations: 0 / 1.029 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.877, allocations: 11.98 kB / 1.029 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.877, allocations: 4 kB / 1.029 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.494e-05/0.8771, allocations: 99.27 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8771, allocations: 0 / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002612/0.8773, allocations: 44 kB / 1.029 GB, free: 9.219 MB / 0.7794 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.0001796/0.8775, allocations: 116.7 kB / 1.029 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004732/0.878, allocations: 358.1 kB / 1.029 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.878, allocations: 0 / 1.029 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.63e-05/0.8781, allocations: 44.3 kB / 1.029 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.8784, allocations: 28.12 kB / 1.029 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/0.8788, allocations: 203.5 kB / 1.029 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.8791, allocations: 0.6965 MB / 1.03 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.296e-05/0.8791, allocations: 8.438 kB / 1.03 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.064e-05/0.8791, allocations: 11.44 kB / 1.03 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.8791, allocations: 0 / 1.03 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of Templates: time 0.005316/0.8845, allocations: 2.394 MB / 1.032 GB, free: 5.309 MB / 0.7794 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