Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 118 kB / 17.13 MB, free: 5.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002244/0.002244, allocations: 197.2 kB / 20.08 MB, free: 3.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 248.5 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 443.5 MB / 0.7293 GB, free: 14.54 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_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_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 75.88 kB / 1.057 GB, free: 1.969 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3127, allocations: 160.7 MB / 1.214 GB, free: 0.9453 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002194/0.3148, allocations: 0.8383 MB / 1.215 GB, free: 100 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.3166, allocations: 1.293 MB / 1.216 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.033e-05/0.3167, allocations: 4 kB / 1.216 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.859e-05/0.3168, allocations: 11.86 kB / 1.216 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.812e-05/0.3169, allocations: 23.8 kB / 1.216 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008945/0.3177, allocations: 321.4 kB / 1.216 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003924/0.3181, allocations: 291.5 kB / 1.217 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.3183, allocations: 41.39 kB / 1.217 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.3184, allocations: 119.7 kB / 1.217 GB, free: 14 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.3187, allocations: 115.6 kB / 1.217 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.3187, allocations: 28 kB / 1.217 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.3188, allocations: 39.98 kB / 1.217 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.612e-05/0.3189, allocations: 23.92 kB / 1.217 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.319, allocations: 103.7 kB / 1.217 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003441/0.3193, allocations: 259.2 kB / 1.217 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3193, allocations: 0 / 1.217 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3193, allocations: 0 / 1.217 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.3194, allocations: 3.938 kB / 1.217 GB, free: 13.43 MB / 0.9669 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.0007924/0.3201, allocations: 0.5311 MB / 1.218 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.3202, allocations: 8.031 kB / 1.218 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.728e-05/0.3203, allocations: 24.89 kB / 1.218 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.3204, allocations: 188.7 kB / 1.218 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.3205, allocations: 16.12 kB / 1.218 GB, free: 12.57 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.3205, allocations: 20 kB / 1.218 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.3207, allocations: 92.05 kB / 1.218 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3207, allocations: 3.938 kB / 1.218 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.3207, allocations: 0 / 1.218 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.3207, allocations: 4 kB / 1.218 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.3209, allocations: 47.98 kB / 1.218 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000752/0.3216, allocations: 496.4 kB / 1.219 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.3219, allocations: 66.61 kB / 1.219 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.731e-05/0.3219, allocations: 28.91 kB / 1.219 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.3219, allocations: 0 / 1.219 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.3222, allocations: 119.2 kB / 1.219 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.3222, allocations: 0 / 1.219 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003813/0.3225, allocations: 172.8 kB / 1.219 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.3226, allocations: 55.41 kB / 1.219 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.3227, allocations: 165 kB / 1.219 GB, free: 11.22 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.568e-05/0.3228, allocations: 37.7 kB / 1.219 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3229, allocations: 116.1 kB / 1.22 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.4e-05/0.3229, allocations: 31.78 kB / 1.22 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.3231, allocations: 69.67 kB / 1.22 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.3232, allocations: 326.8 kB / 1.22 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.3234, allocations: 103.9 kB / 1.22 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.3237, allocations: 143.9 kB / 1.22 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.324, allocations: 251 kB / 1.22 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.324, allocations: 0 / 1.22 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006852/0.3247, allocations: 412.2 kB / 1.221 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.389e-05/0.3248, allocations: 105.1 kB / 1.221 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3248, allocations: 0 / 1.221 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3248, allocations: 4 kB / 1.221 GB, free: 9.527 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.918e-05/0.3249, allocations: 8 kB / 1.221 GB, free: 9.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.3249, allocations: 7.938 kB / 1.221 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.3254, allocations: 91.94 kB / 1.221 GB, free: 9.422 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.404e-05/0.3254, allocations: 19.98 kB / 1.221 GB, free: 9.402 MB / 0.9669 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 0.0001351/0.3256, allocations: 129.8 kB / 1.221 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.3256, allocations: 19.89 kB / 1.221 GB, free: 9.246 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.3256, allocations: 8.844 kB / 1.221 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.3256, allocations: 8 kB / 1.221 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3257, allocations: 0 / 1.221 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.3257, allocations: 7.969 kB / 1.221 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.3259, allocations: 221.5 kB / 1.221 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3259, allocations: 4 kB / 1.221 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.387e-05/0.3259, allocations: 19.88 kB / 1.221 GB, free: 8.934 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3259, allocations: 0 / 1.221 GB, free: 8.934 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.3259, allocations: 3.984 kB / 1.221 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.326, allocations: 0 / 1.221 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.326, allocations: 4 kB / 1.221 GB, free: 8.926 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.3262, allocations: 157 kB / 1.222 GB, free: 8.754 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.3262, allocations: 88.95 kB / 1.222 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.3263, allocations: 8 kB / 1.222 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.077e-05/0.3263, allocations: 0 / 1.222 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.3263, allocations: 11.98 kB / 1.222 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.3264, allocations: 7.984 kB / 1.222 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.146e-05/0.3264, allocations: 117 kB / 1.222 GB, free: 8.508 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.3264, allocations: 0 / 1.222 GB, free: 8.508 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002762/0.3267, allocations: 59.92 kB / 1.222 GB, free: 8.449 MB / 0.9669 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.0001679/0.3269, allocations: 107.1 kB / 1.222 GB, free: 8.336 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005449/0.3274, allocations: 350 kB / 1.222 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3274, allocations: 0 / 1.222 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.3275, allocations: 43.92 kB / 1.222 GB, free: 7.914 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.3278, allocations: 36.28 kB / 1.222 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005301/0.3284, allocations: 277 kB / 1.223 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.3287, allocations: 0.7045 MB / 1.223 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.3287, allocations: 19.42 kB / 1.223 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of SimCode: time 4.11e-07/0.3287, allocations: 4 kB / 1.223 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of Templates: time 0.006003/0.3347, allocations: 2.273 MB / 1.226 GB, free: 4.574 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 10.399925017962232]