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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000994/0.000994, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8929/0.8929, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.756/1.756, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.362e-05, allocations: 6.219 kB / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001332/0.001356, allocations: 0.6842 MB / 1 GB, free: 12.82 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001293/0.002648, allocations: 1.284 MB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.205e-05/0.0027, allocations: 0 / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.632e-05/0.002737, allocations: 7.875 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.518e-05/0.002812, allocations: 23.84 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.003367, allocations: 308.9 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.003587, allocations: 255.5 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.003693, allocations: 16.11 kB / 1.002 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.003836, allocations: 143.8 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.003958, allocations: 79.8 kB / 1.002 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.003989, allocations: 20 kB / 1.002 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.538e-05/0.004055, allocations: 40 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.004079, allocations: 19.91 kB / 1.002 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.892e-05/0.004148, allocations: 71.92 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.004372, allocations: 259.4 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.004374, allocations: 0 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.01e-07/0.004374, allocations: 0 / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.004378, allocations: 0 / 1.003 GB, free: 10.31 MB / 0.9636 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.0004687/0.004847, allocations: 427.1 kB / 1.003 GB, free: 9.848 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.004894, allocations: 12.75 kB / 1.003 GB, free: 9.836 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.034e-05/0.004924, allocations: 34.73 kB / 1.003 GB, free: 9.793 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/0.004971, allocations: 20.89 kB / 1.003 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.247e-05/0.005053, allocations: 113.7 kB / 1.003 GB, free: 9.637 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.005076, allocations: 12.38 kB / 1.003 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.483e-05/0.005101, allocations: 12.38 kB / 1.003 GB, free: 9.613 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.00521, allocations: 66.09 kB / 1.003 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.005219, allocations: 8.172 kB / 1.003 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.005227, allocations: 384 / 1.003 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.005232, allocations: 3.938 kB / 1.003 GB, free: 9.531 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.358e-05/0.005276, allocations: 20 kB / 1.003 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.005688, allocations: 331.8 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.729e-05/0.005745, allocations: 38.44 kB / 1.004 GB, free: 9.098 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.838e-05/0.005774, allocations: 24.94 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.005783, allocations: 3.984 kB / 1.004 GB, free: 9.066 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.005927, allocations: 99.34 kB / 1.004 GB, free: 8.957 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.005928, allocations: 3.938 kB / 1.004 GB, free: 8.953 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0002355/0.006164, allocations: 137.5 kB / 1.004 GB, free: 8.812 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.0062, allocations: 67.33 kB / 1.004 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.435e-05/0.006274, allocations: 132.6 kB / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.0063, allocations: 33.7 kB / 1.004 GB, free: 8.559 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.632e-05/0.006356, allocations: 108.2 kB / 1.004 GB, free: 8.449 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.468e-05/0.006371, allocations: 15.89 kB / 1.004 GB, free: 8.434 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.401e-05/0.006445, allocations: 69.67 kB / 1.005 GB, free: 8.359 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.551e-05/0.00652, allocations: 322.8 kB / 1.005 GB, free: 8.035 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.006688, allocations: 181 kB / 1.005 GB, free: 7.84 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.006861, allocations: 229 kB / 1.005 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.007047, allocations: 235 kB / 1.005 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.00705, allocations: 7.938 kB / 1.005 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004091/0.007459, allocations: 479.5 kB / 1.006 GB, free: 6.789 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.897e-05/0.007508, allocations: 102.6 kB / 1.006 GB, free: 6.672 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.007513, allocations: 0 / 1.006 GB, free: 6.672 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.007524, allocations: 4 kB / 1.006 GB, free: 6.668 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.023e-05/0.007545, allocations: 3.938 kB / 1.006 GB, free: 6.664 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.007549, allocations: 4 kB / 1.006 GB, free: 6.66 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.007796, allocations: 84.05 kB / 1.006 GB, free: 6.578 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.007822, allocations: 15.98 kB / 1.006 GB, free: 6.562 MB / 0.9636 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 7.724e-05/0.007899, allocations: 139.5 kB / 1.006 GB, free: 6.418 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-06/0.007909, allocations: 7.953 kB / 1.006 GB, free: 6.41 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.146e-05/0.00793, allocations: 12.44 kB / 1.006 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.007932, allocations: 0 / 1.006 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.007936, allocations: 4 kB / 1.006 GB, free: 6.395 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.007939, allocations: 3.938 kB / 1.006 GB, free: 6.391 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.083e-05/0.00803, allocations: 156.7 kB / 1.006 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.008032, allocations: 0 / 1.006 GB, free: 6.195 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.171e-06/0.008038, allocations: 7.922 kB / 1.006 GB, free: 6.188 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.008039, allocations: 0 / 1.006 GB, free: 6.188 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.008047, allocations: 4 kB / 1.006 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.008048, allocations: 0 / 1.006 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.00805, allocations: 0 / 1.006 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.008174, allocations: 149.2 kB / 1.007 GB, free: 6.02 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.106e-06/0.008182, allocations: 7.953 kB / 1.007 GB, free: 6.012 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.008193, allocations: 4 kB / 1.007 GB, free: 6.008 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.008206, allocations: 4 kB / 1.007 GB, free: 6.004 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.008235, allocations: 11.98 kB / 1.007 GB, free: 5.992 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.008241, allocations: 4 kB / 1.007 GB, free: 5.988 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.767e-05/0.008279, allocations: 99.25 kB / 1.007 GB, free: 5.891 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008279, allocations: 4 kB / 1.007 GB, free: 5.887 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001685/0.008447, allocations: 36 kB / 1.007 GB, free: 5.852 MB / 0.9636 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.000321/0.008768, allocations: 0.6851 MB / 1.007 GB, free: 5.137 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003247/0.009093, allocations: 419.1 kB / 1.008 GB, free: 4.672 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.009094, allocations: 0 / 1.008 GB, free: 4.672 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.991e-05/0.009134, allocations: 31.98 kB / 1.008 GB, free: 4.641 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.009312, allocations: 27.92 kB / 1.008 GB, free: 4.613 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.01106, allocations: 2.441 MB / 1.01 GB, free: 1.953 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.402e-05/0.0111, allocations: 75.89 kB / 1.01 GB, free: 1.855 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.483e-05/0.01113, allocations: 8.5 kB / 1.01 GB, free: 1.848 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.659e-05/0.01116, allocations: 28.48 kB / 1.01 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of SimCode: time 6.41e-07/0.01116, allocations: 0 / 1.01 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.02794, allocations: 4.793 MB / 1.015 GB, free: 13.22 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.686/6.714, allocations: 6.641 kB / 1.015 GB, free: 13.22 MB / 0.9792 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/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) [Timeout 300] "Error: Could not read variable logicalSwitch.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.u3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.u3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! Error: Could not read variable logicalSwitch.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv. Warning: Get data of variable logicalSwitch.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.906735623255372]