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.001689/0.001689, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 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.001547/0.001547, allocations: 218.5 kB / 22.26 MB, free: 5.121 MB / 14.72 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 1.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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 3.245/3.245, allocations: 0.505 GB / 0.8101 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 72 kB / 1.177 GB, free: 16.96 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.4077, allocations: 180.2 MB / 1.353 GB, free: 8.371 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002238/0.4099, allocations: 0.7922 MB / 1.354 GB, free: 7.582 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.4116, allocations: 1.19 MB / 1.355 GB, free: 6.379 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-05/0.4117, allocations: 0 / 1.355 GB, free: 6.379 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.4117, allocations: 3.938 kB / 1.355 GB, free: 6.375 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.24e-05/0.4118, allocations: 15.86 kB / 1.355 GB, free: 6.359 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.4123, allocations: 143.8 kB / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.00022/0.4125, allocations: 119.8 kB / 1.355 GB, free: 6.105 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.4126, allocations: 19.98 kB / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.4127, allocations: 47.84 kB / 1.355 GB, free: 6.039 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.4128, allocations: 51.88 kB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.4128, allocations: 8 kB / 1.355 GB, free: 5.98 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.848e-05/0.4129, allocations: 31.92 kB / 1.355 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.696e-05/0.413, allocations: 15.92 kB / 1.355 GB, free: 5.934 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.768e-05/0.413, allocations: 55.83 kB / 1.355 GB, free: 5.879 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.4132, allocations: 115.8 kB / 1.355 GB, free: 5.766 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.4133, allocations: 4 kB / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.794e-06/0.4133, allocations: 0 / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.4133, allocations: 0 / 1.355 GB, free: 5.762 MB / 1.045 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.0007388/0.414, allocations: 349.6 kB / 1.356 GB, free: 5.383 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.414, allocations: 12.03 kB / 1.356 GB, free: 5.371 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.792e-05/0.4141, allocations: 34.75 kB / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.4141, allocations: 12.89 kB / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.4143, allocations: 118.5 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.4143, allocations: 384 / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.4143, allocations: 8.375 kB / 1.356 GB, free: 5.168 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.4146, allocations: 86.12 kB / 1.356 GB, free: 5.078 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4146, allocations: 3.938 kB / 1.356 GB, free: 5.074 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.4146, allocations: 0 / 1.356 GB, free: 5.074 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.4146, allocations: 4 kB / 1.356 GB, free: 5.07 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.4149, allocations: 67.92 kB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.4154, allocations: 307.7 kB / 1.356 GB, free: 4.66 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.4156, allocations: 58.42 kB / 1.356 GB, free: 4.594 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.4157, allocations: 44.91 kB / 1.357 GB, free: 4.547 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.4158, allocations: 0 / 1.357 GB, free: 4.547 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.4161, allocations: 103.3 kB / 1.357 GB, free: 4.434 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.4161, allocations: 0 / 1.357 GB, free: 4.434 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0006198/0.4167, allocations: 169.7 kB / 1.357 GB, free: 4.262 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.4167, allocations: 51.41 kB / 1.357 GB, free: 4.199 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.4169, allocations: 124.6 kB / 1.357 GB, free: 4.066 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.4169, allocations: 29.7 kB / 1.357 GB, free: 4.031 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.705e-05/0.417, allocations: 100.1 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.417, allocations: 11.89 kB / 1.357 GB, free: 3.918 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.477e-05/0.4171, allocations: 37.7 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.4172, allocations: 318.8 kB / 1.357 GB, free: 3.555 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.4174, allocations: 60 kB / 1.357 GB, free: 3.496 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.4176, allocations: 90.52 kB / 1.358 GB, free: 3.398 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.418, allocations: 136.1 kB / 1.358 GB, free: 3.25 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.418, allocations: 0 / 1.358 GB, free: 3.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005509/0.4186, allocations: 227.3 kB / 1.358 GB, free: 3.016 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.4186, allocations: 39.42 kB / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.4186, allocations: 0 / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.4186, allocations: 0 / 1.358 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.4188, allocations: 19.97 kB / 1.358 GB, free: 2.953 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.4188, allocations: 0 / 1.358 GB, free: 2.953 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.419, allocations: 43.95 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.419, allocations: 4 kB / 1.358 GB, free: 2.906 MB / 1.045 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 0.0001259/0.4191, allocations: 133.6 kB / 1.358 GB, free: 2.766 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.4192, allocations: 3.953 kB / 1.358 GB, free: 2.762 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.4192, allocations: 12.38 kB / 1.358 GB, free: 2.746 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.4192, allocations: 0 / 1.358 GB, free: 2.746 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.4192, allocations: 0 / 1.358 GB, free: 2.746 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.4192, allocations: 4 kB / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.4194, allocations: 160.6 kB / 1.358 GB, free: 2.543 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4194, allocations: 0 / 1.358 GB, free: 2.543 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.943e-05/0.4195, allocations: 11.98 kB / 1.358 GB, free: 2.531 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.4195, allocations: 4 kB / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.4195, allocations: 0 / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4195, allocations: 3.938 kB / 1.358 GB, free: 2.523 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4195, allocations: 0 / 1.358 GB, free: 2.523 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004082/0.4199, allocations: 160.9 kB / 1.358 GB, free: 2.348 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.359e-05/0.4199, allocations: 7.953 kB / 1.358 GB, free: 2.34 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.4199, allocations: 3.984 kB / 1.358 GB, free: 2.336 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.585e-05/0.42, allocations: 16.08 kB / 1.358 GB, free: 2.32 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.4201, allocations: 7.922 kB / 1.359 GB, free: 2.312 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.4201, allocations: 8.125 kB / 1.359 GB, free: 2.305 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.975e-05/0.4201, allocations: 91.27 kB / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4201, allocations: 0 / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002291/0.4203, allocations: 24 kB / 1.359 GB, free: 2.191 MB / 1.045 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.0007517/0.4211, allocations: 0.6865 MB / 1.359 GB, free: 1.477 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004649/0.4216, allocations: 175.2 kB / 1.359 GB, free: 1.293 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4216, allocations: 0 / 1.359 GB, free: 1.293 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.4218, allocations: 56.02 kB / 1.36 GB, free: 1.238 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.422, allocations: 15.92 kB / 1.36 GB, free: 1.223 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.4243, allocations: 1.63 MB / 1.361 GB, free: 15.49 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.4247, allocations: 0.6885 MB / 1.362 GB, free: 14.77 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.778e-05/0.4247, allocations: 11.94 kB / 1.362 GB, free: 14.76 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.316e-05/0.4248, allocations: 27.42 kB / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.4248, allocations: 0 / 1.362 GB, free: 14.74 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03169/0.4565, allocations: 2.818 MB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.63, allocations: 0 / 1.365 GB, free: 12.07 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.548640080029145]