Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_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.0009154/0.0009154, 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.006252/0.006253, allocations: 169.9 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.358/1.358, 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 10.1.0-maint.10.0.x/package.mo): time 2.541/2.541, allocations: 437.8 MB / 0.7121 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003866, allocations: 12 kB / 0.873 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7462/0.7466, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0008305/0.7475, allocations: 440.9 kB / 1.024 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.749, allocations: 1.288 MB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.014e-05/0.7491, allocations: 0 / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.946e-05/0.7491, allocations: 3.938 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.341e-05/0.7492, allocations: 15.84 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007702/0.75, allocations: 295 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002231/0.7502, allocations: 227.5 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.7504, allocations: 20.16 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.7505, allocations: 83.86 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.7506, allocations: 75.77 kB / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.196e-05/0.7507, allocations: 12 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.191e-05/0.7508, allocations: 27.98 kB / 1.026 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.976e-05/0.7508, allocations: 11.88 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.7509, allocations: 101.5 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000228/0.7512, allocations: 201.7 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7512, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.833e-06/0.7512, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7512, allocations: 4 kB / 1.026 GB, free: 13.07 MB / 0.7794 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.0004494/0.7516, allocations: 456.4 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.7517, allocations: 12.03 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.7517, allocations: 38.69 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.143e-05/0.7518, allocations: 16.84 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.7519, allocations: 184.2 kB / 1.027 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.752, allocations: 8.312 kB / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.658e-05/0.752, allocations: 16.38 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.7521, allocations: 57.98 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.7522, allocations: 3.938 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.7522, allocations: 7.984 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.7522, allocations: 8 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.702e-05/0.7522, allocations: 12 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005167/0.7528, allocations: 416.5 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.084e-05/0.7528, allocations: 26.58 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.7529, allocations: 24.88 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.7529, allocations: 0 / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.753, allocations: 103.3 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.753, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0002898/0.7533, allocations: 137.5 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.7534, allocations: 55.47 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.7535, allocations: 139.9 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.7535, allocations: 37.7 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.7536, allocations: 96.12 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.7537, allocations: 19.72 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.7537, allocations: 37.64 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.677e-05/0.7538, allocations: 326.8 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.754, allocations: 83.95 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.7542, allocations: 134 kB / 1.028 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002608/0.7545, allocations: 234.9 kB / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.7545, allocations: 0 / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005463/0.755, allocations: 386.4 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.497e-05/0.7551, allocations: 103.3 kB / 1.029 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.7551, allocations: 0 / 1.029 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.7551, allocations: 4.375 kB / 1.029 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.258e-05/0.7552, allocations: 7.984 kB / 1.029 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.7552, allocations: 0 / 1.029 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005496/0.7557, allocations: 119.9 kB / 1.029 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.7558, allocations: 27.86 kB / 1.029 GB, free: 9.457 MB / 0.7794 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.0001135/0.7559, allocations: 138.2 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.7559, allocations: 7.906 kB / 1.029 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.635e-05/0.756, allocations: 8.375 kB / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.756, allocations: 0 / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.756, allocations: 4 kB / 1.029 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.756, allocations: 4 kB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.7561, allocations: 189.6 kB / 1.029 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.7561, allocations: 0 / 1.029 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.598e-06/0.7562, allocations: 0 / 1.029 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.7562, allocations: 3.984 kB / 1.029 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.7562, allocations: 4 kB / 1.029 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.7562, allocations: 3.938 kB / 1.029 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.7562, allocations: 3.984 kB / 1.029 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.7564, allocations: 141 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.043e-05/0.7564, allocations: 84.95 kB / 1.03 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.7565, allocations: 11.98 kB / 1.03 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.282e-05/0.7565, allocations: 0 / 1.03 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.7565, allocations: 11.98 kB / 1.03 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.7565, allocations: 4 kB / 1.03 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.048e-05/0.7566, allocations: 96.95 kB / 1.03 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7566, allocations: 0 / 1.03 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002583/0.7569, allocations: 44 kB / 1.03 GB, free: 8.617 MB / 0.7794 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.0004705/0.7574, allocations: 0.6803 MB / 1.03 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004293/0.7578, allocations: 366.1 kB / 1.031 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.7578, allocations: 4 kB / 1.031 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.362e-05/0.7579, allocations: 40.34 kB / 1.031 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.7581, allocations: 27.97 kB / 1.031 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.7604, allocations: 2.07 MB / 1.033 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.7606, allocations: 0.6926 MB / 1.034 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.773e-05/0.7607, allocations: 12.42 kB / 1.034 GB, free: 4.504 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.048e-05/0.7607, allocations: 23.44 kB / 1.034 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of SimCode: time 4.31e-07/0.7607, allocations: 0 / 1.034 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01318/0.7739, allocations: 3.511 MB / 1.037 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/0.7741, allocations: 201.1 kB / 1.037 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.498, allocations: 2.75 kB / 1.037 GB, free: 0.875 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches