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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001093/0.001093, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01078/0.01078, allocations: 170 kB / 16.26 MB, free: 6.613 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.543/1.543, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.061/3.061, allocations: 462.7 MB / 0.7364 GB, free: 276 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 11.52 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4157, allocations: 159.6 MB / 1.059 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001179/0.4169, allocations: 429.5 kB / 1.059 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001951/0.4189, allocations: 1.303 MB / 1.06 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.414e-05/0.419, allocations: 0 / 1.06 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.837e-05/0.419, allocations: 3.938 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.4191, allocations: 27.78 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008502/0.42, allocations: 290.8 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000263/0.4203, allocations: 223.6 kB / 1.061 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.4204, allocations: 16.17 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.4205, allocations: 87.86 kB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.4207, allocations: 67.78 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.522e-05/0.4207, allocations: 15.94 kB / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.173e-05/0.4208, allocations: 23.92 kB / 1.061 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.917e-05/0.4209, allocations: 19.92 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.421, allocations: 97.5 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.4213, allocations: 211.7 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4213, allocations: 0 / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.006e-06/0.4213, allocations: 0 / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.4213, allocations: 0 / 1.061 GB, free: 2.664 MB / 0.8106 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.0006056/0.4219, allocations: 456.4 kB / 1.062 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.422, allocations: 8.031 kB / 1.062 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.76e-05/0.4221, allocations: 16.84 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.4222, allocations: 176.2 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.4223, allocations: 12.38 kB / 1.062 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.702e-05/0.4223, allocations: 16.38 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.4225, allocations: 54.23 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.4225, allocations: 3.938 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.4225, allocations: 3.938 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.4225, allocations: 4 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.729e-05/0.4226, allocations: 15.98 kB / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006547/0.4233, allocations: 428.4 kB / 1.063 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.409e-05/0.4234, allocations: 26.58 kB / 1.063 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.816e-05/0.4234, allocations: 28.88 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.4234, allocations: 0 / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002317/0.4237, allocations: 95.34 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.4237, allocations: 0 / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003617/0.424, allocations: 141.5 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.4241, allocations: 55.41 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.4242, allocations: 136 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.318e-05/0.4243, allocations: 34.08 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.357e-05/0.4244, allocations: 92.14 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.4244, allocations: 23.77 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.134e-05/0.4245, allocations: 33.7 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4246, allocations: 330.7 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.4248, allocations: 87.94 kB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.4251, allocations: 138 kB / 1.064 GB, free: 44 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.4254, allocations: 231 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4254, allocations: 0 / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005868/0.426, allocations: 378.4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.699e-05/0.4261, allocations: 101.1 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4261, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.4261, allocations: 8.188 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.081e-05/0.4262, allocations: 4 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.4262, allocations: 0 / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006048/0.4268, allocations: 123.7 kB / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.116e-05/0.4268, allocations: 23.98 kB / 1.065 GB, free: 15.11 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.0001359/0.427, allocations: 137.7 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.771e-05/0.427, allocations: 11.89 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.4271, allocations: 8.375 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4271, allocations: 0 / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.4271, allocations: 4 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.4271, allocations: 0 / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.4273, allocations: 193.5 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4273, allocations: 0 / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.15e-05/0.4273, allocations: 3.984 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.4273, allocations: 0 / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.4273, allocations: 8 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.4273, allocations: 0 / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4273, allocations: 3.938 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.4275, allocations: 144.9 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.4276, allocations: 84.95 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.4276, allocations: 7.938 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.509e-05/0.4277, allocations: 4 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.4277, allocations: 7.984 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.4277, allocations: 11.98 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.281e-05/0.4278, allocations: 101.5 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4278, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002649/0.4281, allocations: 40.09 kB / 1.065 GB, free: 14.26 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.0002054/0.4283, allocations: 108.9 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000485/0.4288, allocations: 366.2 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4288, allocations: 4.062 kB / 1.066 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.498e-05/0.4289, allocations: 35.98 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.4292, allocations: 23.97 kB / 1.066 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004428/0.4296, allocations: 215.4 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.4299, allocations: 0.6887 MB / 1.067 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.433e-05/0.43, allocations: 8.438 kB / 1.067 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.578e-05/0.43, allocations: 15.42 kB / 1.067 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.43, allocations: 0 / 1.067 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.005791/0.4358, allocations: 2.499 MB / 1.069 GB, free: 10.25 MB / 0.8262 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