Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001566/0.001566, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.537/1.537, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.216/3.216, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 68.33 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4018/0.4031, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00254/0.4057, allocations: 0.7044 MB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.4074, allocations: 1.27 MB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.168e-05/0.4075, allocations: 3.938 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.979e-05/0.4075, allocations: 3.938 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.626e-05/0.4077, allocations: 11.88 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008523/0.4085, allocations: 309.6 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003362/0.4089, allocations: 267.6 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.409, allocations: 24.16 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.4092, allocations: 99.81 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.4093, allocations: 71.83 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.251e-05/0.4094, allocations: 24 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.4095, allocations: 35.98 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.4095, allocations: 15.92 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.4097, allocations: 87.73 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.41, allocations: 223.7 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.41, allocations: 0 / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.136e-06/0.41, allocations: 4 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.4101, allocations: 3.938 kB / 1.071 GB, free: 7.223 MB / 0.8262 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.0006746/0.4107, allocations: 492.4 kB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.4108, allocations: 8.031 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.956e-05/0.4109, allocations: 16.84 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.411, allocations: 176.2 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.4111, allocations: 8.375 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.4111, allocations: 16.38 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001447/0.4113, allocations: 50.23 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.4113, allocations: 7.938 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.4113, allocations: 11.98 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.4113, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.743e-05/0.4114, allocations: 19.94 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.412, allocations: 420.5 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.84e-05/0.4121, allocations: 30.56 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.551e-05/0.4121, allocations: 20.86 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.4121, allocations: 4 kB / 1.073 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.4124, allocations: 103.3 kB / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.4124, allocations: 0 / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003214/0.4128, allocations: 141.4 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.4128, allocations: 59.41 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.413, allocations: 129.7 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.413, allocations: 37.7 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.572e-05/0.4131, allocations: 96.12 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.4131, allocations: 23.78 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.4133, allocations: 65.67 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4134, allocations: 322.8 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.4136, allocations: 87.95 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.4139, allocations: 143.3 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.4141, allocations: 235 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4142, allocations: 0 / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005814/0.4147, allocations: 374.4 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/0.4148, allocations: 101.1 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.4148, allocations: 0 / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.4149, allocations: 4 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.551e-05/0.4149, allocations: 3.938 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.4149, allocations: 4.188 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.4154, allocations: 91.83 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.4155, allocations: 19.98 kB / 1.074 GB, free: 3.629 MB / 0.8262 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.0001308/0.4156, allocations: 132.2 kB / 1.075 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.4156, allocations: 11.91 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.975e-05/0.4157, allocations: 12.38 kB / 1.075 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.4157, allocations: 0 / 1.075 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.4157, allocations: 0 / 1.075 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.4157, allocations: 3.984 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001651/0.4159, allocations: 193.5 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.4159, allocations: 384 / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.14e-05/0.4159, allocations: 8 kB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4159, allocations: 0 / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.4159, allocations: 3.984 kB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4159, allocations: 7.938 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4159, allocations: 4 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001818/0.4161, allocations: 132.9 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.4162, allocations: 92.94 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.4162, allocations: 4 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.295e-05/0.4162, allocations: 4 kB / 1.075 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.4163, allocations: 11.92 kB / 1.075 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.4163, allocations: 8 kB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.377e-05/0.4164, allocations: 96.67 kB / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4164, allocations: 0 / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002545/0.4166, allocations: 44 kB / 1.075 GB, free: 2.781 MB / 0.8262 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.0001896/0.4168, allocations: 109.5 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005055/0.4173, allocations: 373.9 kB / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4174, allocations: 0 / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.895e-05/0.4174, allocations: 36.36 kB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.4177, allocations: 28.2 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004669/0.4182, allocations: 191.1 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.4186, allocations: 0.6924 MB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.542e-05/0.4186, allocations: 16.36 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.4187, allocations: 11.44 kB / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.4187, allocations: 3.938 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of Templates: time 0.007105/0.4258, allocations: 2.617 MB / 1.079 GB, free: 14.66 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches