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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001037/0.001037, allocations: 98.27 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.006834/0.006834, allocations: 169.9 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.37/1.37, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.35/2.35, allocations: 390.9 MB / 0.6664 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003643, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.797/0.7974, allocations: 142.4 MB / 0.9552 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0007588/0.7982, allocations: 439.5 kB / 0.9556 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001584/0.7998, allocations: 1.28 MB / 0.9569 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.585e-05/0.7998, allocations: 0.9375 kB / 0.9569 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.7998, allocations: 3.938 kB / 0.9569 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.216e-05/0.7999, allocations: 14.34 kB / 0.9569 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007226/0.8006, allocations: 295.4 kB / 0.9572 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.8008, allocations: 228.6 kB / 0.9574 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.478e-05/0.8009, allocations: 10 kB / 0.9574 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.07e-05/0.801, allocations: 86.39 kB / 0.9575 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.527e-05/0.8011, allocations: 67.44 kB / 0.9575 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.8011, allocations: 13.06 kB / 0.9575 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.422e-05/0.8012, allocations: 34.5 kB / 0.9576 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.8012, allocations: 12.52 kB / 0.9576 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.372e-05/0.8013, allocations: 100.8 kB / 0.9577 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.8015, allocations: 202.4 kB / 0.9579 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.8015, allocations: 1.75 kB / 0.9579 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.072e-06/0.8015, allocations: 0 / 0.9579 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.484e-06/0.8015, allocations: 0 / 0.9579 GB, free: 5.699 MB / 0.7169 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.0002975/0.8018, allocations: 456.7 kB / 0.9583 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.8018, allocations: 14.38 kB / 0.9583 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.8019, allocations: 39.95 kB / 0.9584 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.532e-05/0.8019, allocations: 18.47 kB / 0.9584 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.731e-05/0.802, allocations: 178.4 kB / 0.9586 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.802, allocations: 11.23 kB / 0.9586 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.8021, allocations: 22.11 kB / 0.9586 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.983e-05/0.8021, allocations: 59.72 kB / 0.9586 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-06/0.8022, allocations: 0 / 0.9586 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.8022, allocations: 4 kB / 0.9586 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.8022, allocations: 1.375 kB / 0.9586 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.109e-05/0.8022, allocations: 22.92 kB / 0.9587 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003678/0.8026, allocations: 417.9 kB / 0.9591 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.474e-05/0.8027, allocations: 32.19 kB / 0.9591 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.043e-05/0.8027, allocations: 21.19 kB / 0.9591 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.8027, allocations: 0 / 0.9591 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001267/0.8028, allocations: 105.5 kB / 0.9592 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.8028, allocations: 0 / 0.9592 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002218/0.8031, allocations: 133.5 kB / 0.9593 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/0.8031, allocations: 57.39 kB / 0.9594 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.839e-05/0.8032, allocations: 137.2 kB / 0.9595 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.8032, allocations: 35.61 kB / 0.9596 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.632e-05/0.8033, allocations: 95.36 kB / 0.9597 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.8033, allocations: 23.14 kB / 0.9597 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.346e-05/0.8033, allocations: 29.38 kB / 0.9597 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.8034, allocations: 329.5 kB / 0.96 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.8036, allocations: 89.16 kB / 0.9601 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.8038, allocations: 132.6 kB / 0.9602 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.804, allocations: 237 kB / 0.9605 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.804, allocations: 1 kB / 0.9605 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005478/0.8046, allocations: 373.5 kB / 0.9608 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.8046, allocations: 105.5 kB / 0.9609 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.8047, allocations: 1.75 kB / 0.9609 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.297e-06/0.8047, allocations: 2.75 kB / 0.9609 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.564e-05/0.8047, allocations: 2.75 kB / 0.9609 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.8047, allocations: 2.75 kB / 0.9609 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000545/0.8052, allocations: 125 kB / 0.961 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.8053, allocations: 17.73 kB / 0.9611 GB, free: 2.812 MB / 0.7169 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 9.213e-05/0.8054, allocations: 132.7 kB / 0.9612 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.8054, allocations: 8.031 kB / 0.9612 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.1e-05/0.8054, allocations: 13.73 kB / 0.9612 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.8054, allocations: 1.375 kB / 0.9612 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.8055, allocations: 1.375 kB / 0.9612 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.8055, allocations: 0 / 0.9612 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.8056, allocations: 194 kB / 0.9614 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.8056, allocations: 4 kB / 0.9614 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-05/0.8056, allocations: 5.359 kB / 0.9614 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.8056, allocations: 1.375 kB / 0.9614 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.8056, allocations: 9.312 kB / 0.9614 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.8056, allocations: 1.375 kB / 0.9614 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.8056, allocations: 0 / 0.9614 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.8058, allocations: 144.2 kB / 0.9616 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.8058, allocations: 83.58 kB / 0.9616 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.8059, allocations: 4.75 kB / 0.9616 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.418e-05/0.8059, allocations: 0.8438 kB / 0.9616 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.122e-05/0.8059, allocations: 12.17 kB / 0.9616 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.8059, allocations: 3.719 kB / 0.9617 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.6e-05/0.806, allocations: 100.4 kB / 0.9617 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.806, allocations: 3.938 kB / 0.9618 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002551/0.8062, allocations: 46.92 kB / 0.9618 GB, free: 2.113 MB / 0.7169 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.0003583/0.8066, allocations: 0.6811 MB / 0.9625 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004043/0.807, allocations: 367.4 kB / 0.9628 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.807, allocations: 0 / 0.9628 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.198e-05/0.8071, allocations: 39.77 kB / 0.9629 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.8073, allocations: 23.3 kB / 0.9629 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.8094, allocations: 2.069 MB / 0.9649 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.8096, allocations: 0.6964 MB / 0.9656 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.135e-05/0.8096, allocations: 14.84 kB / 0.9656 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.201e-05/0.8097, allocations: 27.89 kB / 0.9656 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of SimCode: time 2.71e-07/0.8097, allocations: 5.188 kB / 0.9656 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0119/0.8216, allocations: 3.489 MB / 0.969 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.8218, allocations: 212.3 kB / 0.9692 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.642, allocations: 0 / 0.9692 GB, free: 12.7 MB / 0.7325 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