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.0008121/0.0008121, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 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.0008655/0.0008655, allocations: 177.9 kB / 23.22 MB, free: 1.352 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.8843/0.8843, allocations: 177.1 MB / 203.5 MB, free: 5.719 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.814/1.814, allocations: 389 MB / 0.6338 GB, free: 12.66 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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.946e-06/2.946e-06, allocations: 0 / 1.001 GB, free: 12.92 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.753e-05, allocations: 5.234 kB / 1.001 GB, free: 12.91 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001403/0.001431, allocations: 0.769 MB / 1.002 GB, free: 12.14 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.002496, allocations: 1.175 MB / 1.003 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.01e-05/0.002536, allocations: 0 / 1.003 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.582e-05/0.002562, allocations: 3.938 kB / 1.003 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.566e-05/0.002627, allocations: 15.81 kB / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.003029, allocations: 142.7 kB / 1.003 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.003174, allocations: 135.7 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.36e-05/0.003257, allocations: 7.984 kB / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.003359, allocations: 75.88 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.211e-05/0.003431, allocations: 35.94 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.224e-05/0.003453, allocations: 12 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.271e-05/0.003506, allocations: 23.98 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.331e-05/0.003529, allocations: 15.92 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.593e-05/0.003575, allocations: 35.97 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.003739, allocations: 135.6 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.983e-06/0.003741, allocations: 0 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.11e-07/0.003742, allocations: 0 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.003746, allocations: 4 kB / 1.003 GB, free: 10.33 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.0004725/0.004219, allocations: 343.8 kB / 1.004 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.004259, allocations: 17.33 kB / 1.004 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.331e-05/0.004302, allocations: 8.891 kB / 1.004 GB, free: 9.93 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.862e-05/0.00438, allocations: 121.6 kB / 1.004 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.004392, allocations: 8.375 kB / 1.004 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.734e-05/0.004409, allocations: 12.31 kB / 1.004 GB, free: 9.766 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001624/0.004572, allocations: 78.2 kB / 1.004 GB, free: 9.684 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.004579, allocations: 192 / 1.004 GB, free: 9.684 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.004589, allocations: 384 / 1.004 GB, free: 9.684 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.004593, allocations: 384 / 1.004 GB, free: 9.684 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.004745, allocations: 75.86 kB / 1.004 GB, free: 9.609 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003461/0.005092, allocations: 256.4 kB / 1.004 GB, free: 9.328 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.005199, allocations: 54.53 kB / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.869e-05/0.005277, allocations: 44.91 kB / 1.004 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.005295, allocations: 0 / 1.004 GB, free: 9.219 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.005465, allocations: 107.3 kB / 1.005 GB, free: 9.102 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 7.21e-07/0.005465, allocations: 0 / 1.005 GB, free: 9.102 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0003402/0.005806, allocations: 161.5 kB / 1.005 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.005836, allocations: 59.41 kB / 1.005 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.72e-05/0.005914, allocations: 122.1 kB / 1.005 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.005934, allocations: 33.69 kB / 1.005 GB, free: 8.695 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.262e-05/0.005976, allocations: 88.14 kB / 1.005 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.005996, allocations: 27.86 kB / 1.005 GB, free: 8.578 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.006041, allocations: 29.7 kB / 1.005 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.829e-05/0.00612, allocations: 322.8 kB / 1.005 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.00625, allocations: 89.64 kB / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.006378, allocations: 120.1 kB / 1.006 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.006571, allocations: 144.3 kB / 1.006 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.006573, allocations: 0 / 1.006 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003001/0.006873, allocations: 248.9 kB / 1.006 GB, free: 7.574 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.006903, allocations: 37.69 kB / 1.006 GB, free: 7.531 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.006908, allocations: 0 / 1.006 GB, free: 7.531 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.006918, allocations: 0 / 1.006 GB, free: 7.531 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.006998, allocations: 19.92 kB / 1.006 GB, free: 7.512 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.007005, allocations: 7.984 kB / 1.006 GB, free: 7.504 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.007121, allocations: 39.91 kB / 1.006 GB, free: 7.465 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.007143, allocations: 8 kB / 1.006 GB, free: 7.457 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.93e-05/0.007212, allocations: 117.8 kB / 1.006 GB, free: 7.332 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.054e-05/0.007223, allocations: 11.89 kB / 1.006 GB, free: 7.32 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.007247, allocations: 12.42 kB / 1.006 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.00725, allocations: 0 / 1.006 GB, free: 7.309 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.007254, allocations: 7.938 kB / 1.006 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.007257, allocations: 0 / 1.006 GB, free: 7.301 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.944e-05/0.007337, allocations: 121.3 kB / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.007338, allocations: 0 / 1.006 GB, free: 7.152 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.194e-05/0.00738, allocations: 15.97 kB / 1.006 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.007382, allocations: 8 kB / 1.006 GB, free: 7.129 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.00739, allocations: 3.938 kB / 1.006 GB, free: 7.125 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.007392, allocations: 0 / 1.006 GB, free: 7.125 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.007393, allocations: 320 / 1.006 GB, free: 7.125 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.007598, allocations: 156.9 kB / 1.006 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.183e-06/0.007605, allocations: 4 kB / 1.006 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.007619, allocations: 7.938 kB / 1.007 GB, free: 6.941 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.703e-05/0.007656, allocations: 19.97 kB / 1.007 GB, free: 6.922 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.007694, allocations: 4 kB / 1.007 GB, free: 6.918 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.007701, allocations: 3.984 kB / 1.007 GB, free: 6.914 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.858e-05/0.00774, allocations: 98.41 kB / 1.007 GB, free: 6.82 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.00774, allocations: 0 / 1.007 GB, free: 6.82 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001602/0.0079, allocations: 31.88 kB / 1.007 GB, free: 6.789 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.0001112/0.008011, allocations: 95.25 kB / 1.007 GB, free: 6.684 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002839/0.008295, allocations: 208.9 kB / 1.007 GB, free: 6.461 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.008297, allocations: 0 / 1.007 GB, free: 6.461 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.874e-05/0.008385, allocations: 47.95 kB / 1.007 GB, free: 6.414 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.008537, allocations: 16.02 kB / 1.007 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002901/0.008827, allocations: 194.6 kB / 1.007 GB, free: 6.176 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.371e-05/0.008871, allocations: 71.33 kB / 1.007 GB, free: 6.086 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.008898, allocations: 12.5 kB / 1.007 GB, free: 6.074 MB / 0.9636 GB Notification: Performance of SimCode: time 4.81e-07/0.008898, allocations: 0 / 1.007 GB, free: 6.074 MB / 0.9636 GB Notification: Performance of Templates: time 0.001958/0.01086, allocations: 1.33 MB / 1.009 GB, free: 4.754 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 800] 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: 6.7133870627731085]