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.001749/0.001749, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002387/0.002387, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.618/1.618, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.092/3.092, allocations: 472.7 MB / 0.7449 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 69.38 kB / 0.9116 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.4, allocations: 159.9 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001977/0.4021, allocations: 0.7528 MB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002001/0.4041, allocations: 1.272 MB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.742e-05/0.4042, allocations: 0 / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.235e-05/0.4042, allocations: 7.875 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.4044, allocations: 19.86 kB / 1.07 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000975/0.4054, allocations: 285.8 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003163/0.4057, allocations: 275.6 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.4058, allocations: 16.17 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.406, allocations: 99.86 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.4061, allocations: 75.77 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.379e-05/0.4062, allocations: 20 kB / 1.07 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.4063, allocations: 43.92 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.277e-05/0.4063, allocations: 19.92 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.4064, allocations: 87.73 kB / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.4067, allocations: 211.8 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4067, allocations: 0 / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.675e-06/0.4068, allocations: 0 / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.4068, allocations: 0 / 1.071 GB, free: 7.543 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.0007115/0.4075, allocations: 496.3 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.4075, allocations: 8.031 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/0.4076, allocations: 16.84 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.4078, allocations: 180.2 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.4078, allocations: 8.375 kB / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.4079, allocations: 16.38 kB / 1.072 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.4081, allocations: 54.23 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4081, allocations: 3.938 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.4081, allocations: 7.922 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.4081, allocations: 4 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.684e-05/0.4082, allocations: 16 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.4088, allocations: 424.5 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.496e-05/0.4089, allocations: 26.58 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.425e-05/0.409, allocations: 24.88 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.409, allocations: 3.938 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.4093, allocations: 103.2 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 3.076e-06/0.4093, allocations: 4 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.000352/0.4096, allocations: 137.5 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.4097, allocations: 55.47 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.4098, allocations: 135.1 kB / 1.072 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.697e-05/0.4099, allocations: 37.7 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.209e-05/0.4099, allocations: 92.12 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.41, allocations: 19.72 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.4101, allocations: 69.67 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4103, allocations: 330.7 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.4105, allocations: 87.95 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.4107, allocations: 132 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.411, allocations: 239 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.411, allocations: 0 / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005858/0.4116, allocations: 378.4 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.401e-05/0.4117, allocations: 97.28 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.4117, allocations: 11.98 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.4117, allocations: 0 / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.844e-05/0.4117, allocations: 4 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.4118, allocations: 7.938 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005138/0.4123, allocations: 83.83 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/0.4123, allocations: 20.36 kB / 1.074 GB, free: 3.941 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.0001317/0.4125, allocations: 141.9 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.4125, allocations: 7.906 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.4125, allocations: 12.38 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4125, allocations: 7.938 kB / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.4125, allocations: 0 / 1.074 GB, free: 3.77 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4126, allocations: 3.984 kB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.4127, allocations: 189.5 kB / 1.074 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4127, allocations: 4 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.229e-05/0.4127, allocations: 4 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.4128, allocations: 0 / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.4128, allocations: 7.984 kB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.4128, allocations: 0 / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4128, allocations: 3.938 kB / 1.074 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001755/0.413, allocations: 133 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/0.413, allocations: 92.94 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.413, allocations: 3.938 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.41e-05/0.4131, allocations: 8 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.249e-05/0.4131, allocations: 7.984 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.4131, allocations: 4 kB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.828e-05/0.4132, allocations: 101.4 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4132, allocations: 0 / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000255/0.4135, allocations: 44 kB / 1.075 GB, free: 3.09 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.0001685/0.4136, allocations: 103.2 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004673/0.4141, allocations: 381.9 kB / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4141, allocations: 0 / 1.075 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.155e-05/0.4142, allocations: 39.91 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.4145, allocations: 24.2 kB / 1.075 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004283/0.4149, allocations: 206.4 kB / 1.075 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.4152, allocations: 0.6924 MB / 1.076 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.653e-05/0.4153, allocations: 12.42 kB / 1.076 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.397e-05/0.4153, allocations: 11.44 kB / 1.076 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of SimCode: time 1.413e-06/0.4153, allocations: 4 kB / 1.076 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of Templates: time 0.005298/0.4206, allocations: 2.605 MB / 1.079 GB, free: 14.96 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