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.001256/0.001256, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001699/0.002955, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001102/0.001102, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001436/0.002538, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9972/0.9972, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09677/1.094, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.367/2.367, allocations: 446.7 MB / 0.6745 GB, free: 6.188 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.3025/2.669, allocations: 145.9 MB / 0.817 GB, free: 4.184 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 0.8183 GB, free: 2.875 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.506e-05, allocations: 4.422 kB / 0.8183 GB, free: 2.871 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00162/0.001645, allocations: 0.7542 MB / 0.819 GB, free: 2.113 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.003009, allocations: 1.318 MB / 0.8203 GB, free: 0.7812 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.682e-05/0.003046, allocations: 0 / 0.8203 GB, free: 0.7812 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.585e-05/0.003072, allocations: 11.86 kB / 0.8203 GB, free: 0.7695 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 4.392e-05/0.003116, allocations: 19.81 kB / 0.8204 GB, free: 0.75 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004546/0.00357, allocations: 295.3 kB / 0.8206 GB, free: 472 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0002146/0.003785, allocations: 251.6 kB / 0.8209 GB, free: 220 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.803e-05/0.003863, allocations: 12.17 kB / 0.8209 GB, free: 204 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.00401, allocations: 147.8 kB / 0.821 GB, free: 56 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.004148, allocations: 87.73 kB / 0.8211 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.004181, allocations: 20 kB / 0.8211 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 8.01e-05/0.004261, allocations: 43.92 kB / 0.8212 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.861e-05/0.00428, allocations: 11.94 kB / 0.8212 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 5.975e-05/0.00434, allocations: 47.98 kB / 0.8212 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.004509, allocations: 147.7 kB / 0.8214 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.34e-05/0.004522, allocations: 0 / 0.8214 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.082e-06/0.004523, allocations: 0 / 0.8214 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.004536, allocations: 0 / 0.8214 GB, free: 15.7 MB / 0.8073 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.0004742/0.00501, allocations: 417.3 kB / 0.8218 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.005046, allocations: 8.031 kB / 0.8218 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.037e-05/0.005096, allocations: 24.91 kB / 0.8218 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.199e-05/0.005188, allocations: 117.7 kB / 0.8219 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.005209, allocations: 8.375 kB / 0.8219 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.005234, allocations: 20.31 kB / 0.8219 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.005348, allocations: 66.86 kB / 0.822 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.005357, allocations: 192 / 0.822 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.005366, allocations: 384 / 0.822 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.005375, allocations: 4.125 kB / 0.822 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.536e-05/0.0054, allocations: 15.97 kB / 0.822 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.005701, allocations: 204.2 kB / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.254e-05/0.005743, allocations: 26.52 kB / 0.8222 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.005759, allocations: 12.94 kB / 0.8223 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.005766, allocations: 4.078 kB / 0.8223 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/0.005867, allocations: 91.33 kB / 0.8223 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.005869, allocations: 0 / 0.8223 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0001416/0.00601, allocations: 89.53 kB / 0.8224 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.006044, allocations: 59.39 kB / 0.8225 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.347e-05/0.006117, allocations: 145.1 kB / 0.8226 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.006141, allocations: 33.7 kB / 0.8227 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.006185, allocations: 92.12 kB / 0.8227 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.006202, allocations: 27.78 kB / 0.8228 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.84e-05/0.006281, allocations: 65.64 kB / 0.8228 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.59e-05/0.006357, allocations: 318.8 kB / 0.8231 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.00646, allocations: 149.1 kB / 0.8233 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.006575, allocations: 195 kB / 0.8235 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.006719, allocations: 212.1 kB / 0.8237 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.006721, allocations: 7.938 kB / 0.8237 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002402/0.006962, allocations: 378.3 kB / 0.824 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.606e-05/0.007018, allocations: 105 kB / 0.8241 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.007024, allocations: 0 / 0.8241 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-06/0.007034, allocations: 4 kB / 0.8241 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.29e-05/0.007057, allocations: 11.94 kB / 0.8242 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.00706, allocations: 0 / 0.8242 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.007264, allocations: 64.08 kB / 0.8242 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.007287, allocations: 15.98 kB / 0.8242 GB, free: 12.45 MB / 0.8073 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.221e-05/0.00736, allocations: 125.8 kB / 0.8244 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.007371, allocations: 7.984 kB / 0.8244 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.461e-05/0.007396, allocations: 16.38 kB / 0.8244 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.007398, allocations: 3.938 kB / 0.8244 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.007399, allocations: 0 / 0.8244 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.007402, allocations: 4 kB / 0.8244 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.311e-05/0.007476, allocations: 85.86 kB / 0.8245 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.007477, allocations: 0 / 0.8245 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.546e-06/0.007485, allocations: 7.922 kB / 0.8245 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.03e-05/0.007496, allocations: 7.953 kB / 0.8245 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.007498, allocations: 0 / 0.8245 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.007507, allocations: 11.94 kB / 0.8245 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.007509, allocations: 80 / 0.8245 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.007511, allocations: 3.984 kB / 0.8245 GB, free: 12.15 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.007665, allocations: 97.03 kB / 0.8246 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.007676, allocations: 0 / 0.8246 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.69e-05/0.007693, allocations: 15.98 kB / 0.8246 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.458e-05/0.007717, allocations: 7.922 kB / 0.8246 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.007722, allocations: 4 kB / 0.8246 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.015e-05/0.007742, allocations: 28.83 kB / 0.8246 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.007742, allocations: 0 / 0.8246 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001408/0.007883, allocations: 40 kB / 0.8247 GB, free: 11.94 MB / 0.8073 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.0001115/0.007994, allocations: 86.94 kB / 0.8248 GB, free: 11.85 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002442/0.008239, allocations: 388.2 kB / 0.8251 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.008242, allocations: 4.125 kB / 0.8251 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.579e-05/0.008268, allocations: 25.31 kB / 0.8252 GB, free: 11.38 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.008405, allocations: 47.97 kB / 0.8252 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004256/0.00883, allocations: 177.3 kB / 0.8254 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.874e-05/0.008859, allocations: 59.22 kB / 0.8254 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.379e-05/0.008883, allocations: 12.48 kB / 0.8254 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.009001, allocations: 95.33 kB / 0.8255 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of SimCode: time 7.21e-07/0.009001, allocations: 0 / 0.8255 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of Templates: time 0.004203/0.0132, allocations: 3.261 MB / 0.8287 GB, free: 7.758 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.238087557256222]