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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000936/0.0009357, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005867/0.005868, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.679/2.679, allocations: 462.6 MB / 0.7364 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004515/0.0004519, allocations: 18.25 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3593, allocations: 159.6 MB / 1.059 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001095/0.3604, allocations: 441.5 kB / 1.059 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002059/0.3625, allocations: 1.295 MB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.35e-05/0.3626, allocations: 0 / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.3626, allocations: 0 / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.3628, allocations: 19.78 kB / 1.06 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009217/0.3637, allocations: 296.7 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.364, allocations: 219.7 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3641, allocations: 12.19 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.3643, allocations: 87.8 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.3644, allocations: 67.78 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.3645, allocations: 12 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.3646, allocations: 27.98 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.3646, allocations: 15.91 kB / 1.061 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3648, allocations: 97.52 kB / 1.061 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.365, allocations: 211.6 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3651, allocations: 0 / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.495e-06/0.3651, allocations: 4 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3651, allocations: 0 / 1.061 GB, free: 2.082 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.000572/0.3657, allocations: 456.3 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3657, allocations: 15.97 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.3658, allocations: 34.73 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.943e-05/0.3658, allocations: 16.94 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.366, allocations: 176.2 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.366, allocations: 8.359 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.3661, allocations: 16.38 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001453/0.3662, allocations: 65.92 kB / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3663, allocations: 0 / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.3663, allocations: 0 / 1.062 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.3663, allocations: 4 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.428e-05/0.3664, allocations: 19.98 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006537/0.367, allocations: 432.3 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.416e-05/0.3671, allocations: 30.56 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.882e-05/0.3671, allocations: 20.94 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.3672, allocations: 0 / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.3674, allocations: 103.3 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.3674, allocations: 4 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003347/0.3678, allocations: 137.5 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.3678, allocations: 55.39 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.3679, allocations: 133.7 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.368, allocations: 37.7 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.3681, allocations: 92.05 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.3681, allocations: 23.86 kB / 1.063 GB, free: 8 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.513e-05/0.3682, allocations: 29.72 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3683, allocations: 326.8 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.3685, allocations: 91.94 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.3687, allocations: 135.3 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.369, allocations: 244.5 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.369, allocations: 0 / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005693/0.3696, allocations: 368 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.442e-05/0.3697, allocations: 105.1 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3697, allocations: 4.188 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.3697, allocations: 4 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.986e-05/0.3698, allocations: 7.938 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3698, allocations: 4.312 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/0.3704, allocations: 118.8 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.3705, allocations: 23.98 kB / 1.065 GB, free: 14.46 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.0001459/0.3706, allocations: 135.5 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.188e-05/0.3706, allocations: 11.84 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.3707, allocations: 12.36 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3707, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3707, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3707, allocations: 4 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.3709, allocations: 197.5 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3709, allocations: 0 / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.43e-05/0.3709, allocations: 3.984 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3709, allocations: 4 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.371, allocations: 4 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.371, allocations: 0 / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.371, allocations: 0 / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.3712, allocations: 144.9 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.3712, allocations: 81.02 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.3712, allocations: 4 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.323e-05/0.3713, allocations: 0 / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.3713, allocations: 15.98 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.3713, allocations: 4 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.38e-05/0.3714, allocations: 95.27 kB / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3714, allocations: 0 / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002778/0.3717, allocations: 47.98 kB / 1.065 GB, free: 13.62 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.0005174/0.3722, allocations: 0.6825 MB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004813/0.3727, allocations: 358.2 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3727, allocations: 3.938 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.848e-05/0.3728, allocations: 43.92 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.3731, allocations: 20.36 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.3755, allocations: 2.067 MB / 1.069 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.3758, allocations: 0.6965 MB / 1.069 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.912e-05/0.3759, allocations: 4.438 kB / 1.069 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.3759, allocations: 31.42 kB / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of SimCode: time 6.41e-07/0.3759, allocations: 0 / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.3901, allocations: 3.493 MB / 1.073 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.3903, allocations: 201.1 kB / 1.073 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.201, allocations: 0 / 1.073 GB, free: 5.906 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > 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/jenkins1/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