Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.0008187/0.0008187, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009136/0.0009136, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.9036/0.9036, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.773/1.773, allocations: 389 MB / 0.633 GB, free: 12.7 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.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.998e-06/3.998e-06, allocations: 3.984 kB / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.957e-05/2.357e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001411/0.001434, allocations: 0.7677 MB / 1 GB, free: 12.7 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.002515, allocations: 1.171 MB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.328e-05/0.002558, allocations: 4 kB / 1.002 GB, free: 11.51 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.813e-05/0.002587, allocations: 11.92 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.306e-05/0.00265, allocations: 7.875 kB / 1.002 GB, free: 11.49 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003878/0.003037, allocations: 134.4 kB / 1.002 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.003181, allocations: 135.6 kB / 1.002 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.683e-05/0.003268, allocations: 11.92 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.003374, allocations: 79.81 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.146e-05/0.003446, allocations: 35.94 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.003468, allocations: 16 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.632e-05/0.003524, allocations: 27.97 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.003545, allocations: 11.94 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.626e-05/0.003591, allocations: 31.97 kB / 1.002 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.003752, allocations: 143.6 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.003754, allocations: 0 / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.62e-07/0.003755, allocations: 0 / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.003759, allocations: 0 / 1.002 GB, free: 10.88 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.0005442/0.004303, allocations: 347.8 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.004343, allocations: 12.75 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.004371, allocations: 34.73 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.665e-05/0.004408, allocations: 12.89 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.726e-05/0.004485, allocations: 124.9 kB / 1.003 GB, free: 10.29 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.004497, allocations: 4.375 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.004512, allocations: 4.375 kB / 1.003 GB, free: 10.28 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.004676, allocations: 82.14 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.004683, allocations: 192 / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.004693, allocations: 4.375 kB / 1.003 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.004698, allocations: 8.125 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.00485, allocations: 71.91 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003474/0.005197, allocations: 279.9 kB / 1.003 GB, free: 9.793 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.005312, allocations: 54.48 kB / 1.003 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.207e-05/0.005394, allocations: 52.84 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.005412, allocations: 4 kB / 1.003 GB, free: 9.672 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.005584, allocations: 91.34 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.005585, allocations: 0 / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0003423/0.005928, allocations: 169.5 kB / 1.004 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.005957, allocations: 51.41 kB / 1.004 GB, free: 9.336 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.549e-05/0.006032, allocations: 130.1 kB / 1.004 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.006049, allocations: 25.7 kB / 1.004 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.679e-05/0.006106, allocations: 92.14 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.006122, allocations: 19.8 kB / 1.004 GB, free: 9.051 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.006169, allocations: 33.69 kB / 1.004 GB, free: 9.012 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.957e-05/0.006248, allocations: 318.8 kB / 1.004 GB, free: 8.691 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.006413, allocations: 97.64 kB / 1.004 GB, free: 8.59 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.006541, allocations: 112.2 kB / 1.004 GB, free: 8.465 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.006732, allocations: 152.2 kB / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.006734, allocations: 0 / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003012/0.007035, allocations: 248.8 kB / 1.005 GB, free: 8.039 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.007065, allocations: 37.7 kB / 1.005 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.00707, allocations: 0 / 1.005 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.007081, allocations: 4 kB / 1.005 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.675e-05/0.007157, allocations: 15.97 kB / 1.005 GB, free: 7.977 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.007163, allocations: 4 kB / 1.005 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.007277, allocations: 36.02 kB / 1.005 GB, free: 7.938 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.007293, allocations: 12 kB / 1.005 GB, free: 7.926 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 6.611e-05/0.007359, allocations: 121.8 kB / 1.005 GB, free: 7.797 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-06/0.007369, allocations: 11.89 kB / 1.005 GB, free: 7.785 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.005e-05/0.007389, allocations: 12.36 kB / 1.005 GB, free: 7.773 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.007393, allocations: 4 kB / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.007397, allocations: 0 / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.007401, allocations: 0 / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.007557, allocations: 152.7 kB / 1.005 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.007558, allocations: 0 / 1.005 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.007603, allocations: 15.98 kB / 1.005 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.007605, allocations: 0 / 1.005 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.007611, allocations: 0 / 1.005 GB, free: 7.562 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.007614, allocations: 4.297 kB / 1.005 GB, free: 7.559 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.007616, allocations: 4 kB / 1.005 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.007818, allocations: 160.9 kB / 1.005 GB, free: 7.379 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.115e-06/0.007826, allocations: 7.953 kB / 1.005 GB, free: 7.371 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.007836, allocations: 4 kB / 1.005 GB, free: 7.367 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.351e-05/0.00787, allocations: 7.984 kB / 1.005 GB, free: 7.359 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.007903, allocations: 7.984 kB / 1.005 GB, free: 7.352 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.007915, allocations: 8 kB / 1.005 GB, free: 7.344 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.58e-05/0.007951, allocations: 91.27 kB / 1.005 GB, free: 7.254 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.007951, allocations: 0 / 1.005 GB, free: 7.254 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001569/0.008108, allocations: 23.94 kB / 1.005 GB, free: 7.23 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004191/0.008527, allocations: 0.6904 MB / 1.006 GB, free: 6.508 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.008817, allocations: 204.9 kB / 1.006 GB, free: 6.289 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.008818, allocations: 4.125 kB / 1.006 GB, free: 6.285 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.062e-05/0.008909, allocations: 51.89 kB / 1.006 GB, free: 6.234 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001538/0.009063, allocations: 11.97 kB / 1.006 GB, free: 6.223 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.0106, allocations: 1.747 MB / 1.008 GB, free: 4.344 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4e-05/0.01064, allocations: 79.17 kB / 1.008 GB, free: 4.246 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.036e-05/0.01067, allocations: 8 kB / 1.008 GB, free: 4.238 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.0107, allocations: 24.48 kB / 1.008 GB, free: 4.215 MB / 0.9636 GB Notification: Performance of SimCode: time 5.91e-07/0.01071, allocations: 0 / 1.008 GB, free: 4.215 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01576/0.02647, allocations: 3.488 MB / 1.012 GB, free: 0.8906 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.861/6.887, allocations: 8 kB / 1.012 GB, free: 0.8828 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable switch1.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! Error: Could not read variable switch1.u3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv. Warning: Get data of variable switch1.u3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.108830220066011]