Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_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.00977/0.009771, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.002254/0.002254, allocations: 190.2 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.251/2.251, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 3.982/3.982, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002155/0.002155, allocations: 67.8 kB / 0.9504 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4391/0.4413, allocations: 140.4 MB / 1.087 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002833/0.4442, allocations: 0.7079 MB / 1.088 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002004/0.4462, allocations: 1.266 MB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.4463, allocations: 0 / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.421e-05/0.4463, allocations: 7.938 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.4465, allocations: 19.78 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009748/0.4475, allocations: 309.8 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.4479, allocations: 279.6 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.448, allocations: 16.19 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.4483, allocations: 99.86 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.4485, allocations: 91.73 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.495e-05/0.4485, allocations: 20 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.4487, allocations: 35.98 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.095e-05/0.4487, allocations: 19.92 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.4488, allocations: 83.8 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003272/0.4492, allocations: 222.2 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.4492, allocations: 0 / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.176e-06/0.4492, allocations: 4 kB / 1.091 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.4492, allocations: 0 / 1.091 GB, free: 14.88 MB / 0.8575 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.000928/0.4502, allocations: 497.2 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.4502, allocations: 8.031 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.562e-05/0.4503, allocations: 34.73 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.351e-05/0.4504, allocations: 16.84 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001547/0.4505, allocations: 179 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.4506, allocations: 12.38 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.011e-05/0.4506, allocations: 16.36 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.4508, allocations: 65.92 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.4508, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.4508, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4508, allocations: 3.938 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.518e-05/0.4509, allocations: 23.98 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006713/0.4516, allocations: 400.6 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.29e-05/0.4517, allocations: 38.5 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.018e-05/0.4517, allocations: 20.86 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.4517, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.452, allocations: 99.34 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.452, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000342/0.4524, allocations: 141.5 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.4524, allocations: 55.41 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.4526, allocations: 133.8 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.4526, allocations: 37.69 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4527, allocations: 108.1 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.4528, allocations: 15.75 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.4529, allocations: 69.67 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.453, allocations: 322.8 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.4532, allocations: 91.94 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.4535, allocations: 135.7 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.4538, allocations: 250.8 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.4538, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006238/0.4544, allocations: 378.4 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/0.4545, allocations: 101.1 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4546, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.4546, allocations: 4 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.742e-05/0.4546, allocations: 0 / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.4546, allocations: 8.125 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000505/0.4551, allocations: 75.91 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.4552, allocations: 19.98 kB / 1.094 GB, free: 11.23 MB / 0.8575 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.0001524/0.4554, allocations: 135.1 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.133e-05/0.4554, allocations: 19.89 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.407e-05/0.4554, allocations: 8.375 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4554, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4554, allocations: 3.938 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4555, allocations: 0 / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.4557, allocations: 193.6 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4557, allocations: 0 / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.52e-05/0.4557, allocations: 7.938 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4557, allocations: 0 / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.4557, allocations: 0 / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.4557, allocations: 3.984 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4557, allocations: 8 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.456, allocations: 136.9 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.456, allocations: 85.02 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.4561, allocations: 3.984 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.273e-05/0.4561, allocations: 0 / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.4561, allocations: 11.98 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.4562, allocations: 4 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.017e-05/0.4562, allocations: 102.1 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4562, allocations: 0 / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002794/0.4565, allocations: 47.91 kB / 1.095 GB, free: 10.38 MB / 0.8575 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.0005992/0.4571, allocations: 0.6748 MB / 1.095 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005721/0.4577, allocations: 374 kB / 1.096 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4577, allocations: 0 / 1.096 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.569e-05/0.4578, allocations: 40.05 kB / 1.096 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.4581, allocations: 27.97 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003388/0.4615, allocations: 2.053 MB / 1.098 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.462, allocations: 0.6962 MB / 1.098 GB, free: 6.297 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.963e-05/0.462, allocations: 4.438 kB / 1.098 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.109e-05/0.4621, allocations: 31.36 kB / 1.098 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of SimCode: time 1.113e-06/0.4621, allocations: 0 / 1.098 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.4991, allocations: 3.826 MB / 1.102 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.64, allocations: 9.141 kB / 1.102 GB, free: 2.543 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches