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.0007948/0.0007948, 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.0008473/0.0008473, allocations: 165.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.8957/0.8957, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.77/1.77, allocations: 389 MB / 0.633 GB, free: 12.67 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 2.084e-06/2.084e-06, allocations: 0 / 0.9997 GB, free: 13.42 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.125e-05, allocations: 6.281 kB / 0.9997 GB, free: 13.41 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001251/0.001272, allocations: 0.765 MB / 1 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.002341, allocations: 1.179 MB / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.909e-05/0.00238, allocations: 0 / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.402e-05/0.002404, allocations: 3.938 kB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.712e-05/0.002461, allocations: 19.8 kB / 1.002 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.002837, allocations: 135.5 kB / 1.002 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.002969, allocations: 127.8 kB / 1.002 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.18e-05/0.003051, allocations: 23.84 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.003156, allocations: 67.89 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.203e-05/0.003238, allocations: 47.86 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.003257, allocations: 8 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.214e-05/0.003309, allocations: 27.98 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.857e-05/0.003327, allocations: 8 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.424e-05/0.003372, allocations: 39.89 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.003519, allocations: 139.6 kB / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.00352, allocations: 0 / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.72e-07/0.003521, allocations: 0 / 1.002 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.003525, allocations: 0 / 1.002 GB, free: 10.82 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.0004079/0.003933, allocations: 343.8 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.003966, allocations: 8.75 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.528e-05/0.003991, allocations: 42.75 kB / 1.003 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.185e-05/0.004023, allocations: 8.891 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.736e-05/0.00409, allocations: 129.6 kB / 1.003 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.004101, allocations: 4.375 kB / 1.003 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.004116, allocations: 8.375 kB / 1.003 GB, free: 10.22 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.004289, allocations: 78.2 kB / 1.003 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.004296, allocations: 4.172 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.004304, allocations: 384 / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.004309, allocations: 4.125 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.00445, allocations: 75.92 kB / 1.003 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003184/0.004768, allocations: 271.8 kB / 1.003 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.00487, allocations: 62.53 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/0.004946, allocations: 44.84 kB / 1.003 GB, free: 9.629 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.004962, allocations: 4 kB / 1.003 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.005125, allocations: 91.34 kB / 1.003 GB, free: 9.523 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.005126, allocations: 3.938 kB / 1.003 GB, free: 9.52 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0003253/0.005451, allocations: 173.5 kB / 1.004 GB, free: 9.344 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.005481, allocations: 51.41 kB / 1.004 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.716e-05/0.005548, allocations: 124.3 kB / 1.004 GB, free: 9.148 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.005563, allocations: 33.64 kB / 1.004 GB, free: 9.109 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.056e-05/0.005604, allocations: 92.14 kB / 1.004 GB, free: 9.016 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/0.005619, allocations: 19.86 kB / 1.004 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-05/0.005665, allocations: 41.69 kB / 1.004 GB, free: 8.949 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.00573, allocations: 314.8 kB / 1.004 GB, free: 8.633 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.005852, allocations: 89.64 kB / 1.004 GB, free: 8.539 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.005974, allocations: 124.1 kB / 1.004 GB, free: 8.402 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.006193, allocations: 140.3 kB / 1.005 GB, free: 8.25 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.006195, allocations: 0 / 1.005 GB, free: 8.25 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002845/0.006479, allocations: 252.8 kB / 1.005 GB, free: 7.984 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.006502, allocations: 33.7 kB / 1.005 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.006506, allocations: 0 / 1.005 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.006516, allocations: 4 kB / 1.005 GB, free: 7.941 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.75e-05/0.006593, allocations: 27.91 kB / 1.005 GB, free: 7.914 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.006597, allocations: 0 / 1.005 GB, free: 7.914 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.006703, allocations: 40.02 kB / 1.005 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.006717, allocations: 4 kB / 1.005 GB, free: 7.871 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 5.898e-05/0.006776, allocations: 113.8 kB / 1.005 GB, free: 7.75 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-06/0.006786, allocations: 11.89 kB / 1.005 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.122e-05/0.006807, allocations: 16.42 kB / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.006809, allocations: 0 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.006812, allocations: 0 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.006815, allocations: 0 / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.175e-05/0.006897, allocations: 148.7 kB / 1.005 GB, free: 7.535 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.006898, allocations: 4 kB / 1.005 GB, free: 7.531 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.083e-05/0.006939, allocations: 19.98 kB / 1.005 GB, free: 7.512 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.00694, allocations: 0 / 1.005 GB, free: 7.512 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.006946, allocations: 0 / 1.005 GB, free: 7.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.006947, allocations: 4 kB / 1.005 GB, free: 7.508 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.006948, allocations: 0 / 1.005 GB, free: 7.508 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.007146, allocations: 156.9 kB / 1.005 GB, free: 7.336 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.757e-06/0.007155, allocations: 11.94 kB / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.012e-05/0.007165, allocations: 384 / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.426e-05/0.007209, allocations: 15.98 kB / 1.005 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.007242, allocations: 7.984 kB / 1.005 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.007248, allocations: 4 kB / 1.005 GB, free: 7.297 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.559e-05/0.007283, allocations: 95.2 kB / 1.005 GB, free: 7.203 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.007284, allocations: 0 / 1.005 GB, free: 7.203 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000148/0.007432, allocations: 27.94 kB / 1.005 GB, free: 7.176 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.0003858/0.007817, allocations: 0.6904 MB / 1.006 GB, free: 6.453 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002739/0.008091, allocations: 201 kB / 1.006 GB, free: 6.238 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.008092, allocations: 0 / 1.006 GB, free: 6.238 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.55e-05/0.008178, allocations: 52.03 kB / 1.006 GB, free: 6.188 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.008321, allocations: 20.02 kB / 1.006 GB, free: 6.168 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.009709, allocations: 1.743 MB / 1.008 GB, free: 4.293 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.972e-05/0.009749, allocations: 79.23 kB / 1.008 GB, free: 4.195 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.602e-05/0.009775, allocations: 4 kB / 1.008 GB, free: 4.191 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.906e-05/0.009814, allocations: 24.48 kB / 1.008 GB, free: 4.168 MB / 0.9636 GB Notification: Performance of SimCode: time 5.01e-07/0.009815, allocations: 0 / 1.008 GB, free: 4.168 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.02583, allocations: 3.499 MB / 1.012 GB, free: 0.8359 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.47/6.496, allocations: 3.938 kB / 1.012 GB, free: 0.832 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 & /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/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.549016829580069]