Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.000899/0.000899, allocations: 80.48 kB / 19.93 MB, free: 4.633 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.0008476/0.0008476, allocations: 173.9 kB / 23.21 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.8976/0.8976, allocations: 177.2 MB / 203.5 MB, free: 5.715 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.748/1.748, allocations: 389 MB / 0.6338 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: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.823e-05/1.987e-05, allocations: 9.234 kB / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001252/0.001272, allocations: 0.813 MB / 1.002 GB, free: 12.19 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.002503, allocations: 1.311 MB / 1.003 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.703e-05/0.00256, allocations: 0 / 1.003 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.493e-05/0.002595, allocations: 11.86 kB / 1.003 GB, free: 10.86 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.46e-05/0.00267, allocations: 27.73 kB / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.003266, allocations: 332 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.00024/0.003506, allocations: 291.5 kB / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.003616, allocations: 33.59 kB / 1.004 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.003752, allocations: 155.8 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.003875, allocations: 91.73 kB / 1.004 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.314e-05/0.003908, allocations: 24 kB / 1.004 GB, free: 9.922 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.591e-05/0.003974, allocations: 39.97 kB / 1.004 GB, free: 9.883 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.004, allocations: 23.92 kB / 1.004 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.244e-05/0.004083, allocations: 87.86 kB / 1.004 GB, free: 9.773 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.00435, allocations: 307.1 kB / 1.004 GB, free: 9.473 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.004353, allocations: 8 kB / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.001e-06/0.004354, allocations: 0 / 1.004 GB, free: 9.465 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.004359, allocations: 3.984 kB / 1.004 GB, free: 9.461 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004838/0.004843, allocations: 462.8 kB / 1.005 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.004877, allocations: 8.75 kB / 1.005 GB, free: 8.953 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.004933, allocations: 24.84 kB / 1.005 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.817e-05/0.005011, allocations: 122.2 kB / 1.005 GB, free: 8.785 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.005035, allocations: 16.36 kB / 1.005 GB, free: 8.77 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.005063, allocations: 16.38 kB / 1.005 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.005194, allocations: 95.77 kB / 1.005 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.005202, allocations: 0 / 1.005 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.005214, allocations: 8 kB / 1.005 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.00522, allocations: 4 kB / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.306e-05/0.005303, allocations: 47.95 kB / 1.005 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004425/0.005745, allocations: 380.1 kB / 1.005 GB, free: 8.195 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.00592, allocations: 66.61 kB / 1.006 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.614e-05/0.005956, allocations: 24.91 kB / 1.006 GB, free: 8.094 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.005966, allocations: 7.984 kB / 1.006 GB, free: 8.086 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/0.006102, allocations: 111.3 kB / 1.006 GB, free: 7.965 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.006103, allocations: 4 kB / 1.006 GB, free: 7.961 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14): time 0.000275/0.006378, allocations: 181.6 kB / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.00641, allocations: 55.41 kB / 1.006 GB, free: 7.711 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.809e-05/0.006498, allocations: 156.1 kB / 1.006 GB, free: 7.551 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.006525, allocations: 33.7 kB / 1.006 GB, free: 7.512 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.802e-05/0.006583, allocations: 116.5 kB / 1.006 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.006601, allocations: 27.78 kB / 1.006 GB, free: 7.367 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.036e-05/0.006681, allocations: 73.67 kB / 1.006 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.649e-05/0.006757, allocations: 326.8 kB / 1.007 GB, free: 6.961 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.006929, allocations: 189 kB / 1.007 GB, free: 6.758 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.00711, allocations: 235.5 kB / 1.007 GB, free: 6.488 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.007318, allocations: 256.7 kB / 1.007 GB, free: 6.199 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.007321, allocations: 7.938 kB / 1.007 GB, free: 6.191 MB / 0.9636 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004366/0.007757, allocations: 493.9 kB / 1.008 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.936e-05/0.007807, allocations: 105 kB / 1.008 GB, free: 5.547 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.007811, allocations: 0 / 1.008 GB, free: 5.547 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.007824, allocations: 7.984 kB / 1.008 GB, free: 5.539 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.537e-05/0.007859, allocations: 12 kB / 1.008 GB, free: 5.527 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.007865, allocations: 3.938 kB / 1.008 GB, free: 5.523 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.008097, allocations: 79.8 kB / 1.008 GB, free: 5.445 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.008122, allocations: 31.92 kB / 1.008 GB, free: 5.414 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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 8.818e-05/0.00821, allocations: 133.8 kB / 1.008 GB, free: 5.273 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.00822, allocations: 7.953 kB / 1.008 GB, free: 5.266 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.361e-05/0.008244, allocations: 16.72 kB / 1.008 GB, free: 5.25 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.008246, allocations: 4 kB / 1.008 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.00825, allocations: 0 / 1.008 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.008253, allocations: 0 / 1.008 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.773e-05/0.008351, allocations: 153.2 kB / 1.008 GB, free: 5.066 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.008352, allocations: 0 / 1.008 GB, free: 5.066 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.267e-05/0.008374, allocations: 15.94 kB / 1.008 GB, free: 5.051 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.008376, allocations: 0 / 1.008 GB, free: 5.051 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.008386, allocations: 7.984 kB / 1.008 GB, free: 5.043 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.008388, allocations: 3.938 kB / 1.008 GB, free: 5.039 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.008389, allocations: 0 / 1.008 GB, free: 5.039 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.008538, allocations: 156.5 kB / 1.008 GB, free: 4.871 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.083e-05/0.008549, allocations: 15.84 kB / 1.008 GB, free: 4.855 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.008563, allocations: 8 kB / 1.008 GB, free: 4.848 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.656e-05/0.00858, allocations: 3.938 kB / 1.008 GB, free: 4.844 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.008614, allocations: 15.97 kB / 1.008 GB, free: 4.828 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.00862, allocations: 7.938 kB / 1.008 GB, free: 4.82 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.617e-05/0.008666, allocations: 109.7 kB / 1.009 GB, free: 4.715 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.008666, allocations: 0 / 1.009 GB, free: 4.715 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001778/0.008844, allocations: 51.98 kB / 1.009 GB, free: 4.664 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001105/0.008955, allocations: 107.2 kB / 1.009 GB, free: 4.547 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003577/0.009312, allocations: 431.2 kB / 1.009 GB, free: 4.07 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.009314, allocations: 0 / 1.009 GB, free: 4.07 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.611e-05/0.00937, allocations: 48.28 kB / 1.009 GB, free: 4.023 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.009554, allocations: 31.97 kB / 1.009 GB, free: 3.992 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003646/0.009919, allocations: 267.8 kB / 1.009 GB, free: 3.699 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.56e-05/0.009975, allocations: 94.28 kB / 1.01 GB, free: 3.59 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.641e-05/0.01, allocations: 24.42 kB / 1.01 GB, free: 3.566 MB / 0.9636 GB Notification: Performance of SimCode: time 4.01e-07/0.01, allocations: 4 kB / 1.01 GB, free: 3.562 MB / 0.9636 GB Notification: Performance of Templates: time 0.002792/0.01279, allocations: 2.267 MB / 1.012 GB, free: 1.309 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.643791566602886]