Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001484/0.001484, allocations: 79.83 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001685/0.001685, allocations: 164.8 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.528/1.528, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.714/2.714, allocations: 359 MB / 0.6037 GB, free: 14.96 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.208e-06/4.208e-06, allocations: 0 / 0.951 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.684e-05/4.105e-05, allocations: 5.094 kB / 0.951 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002476/0.002517, allocations: 0.8014 MB / 0.9518 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002323/0.00484, allocations: 1.319 MB / 0.9531 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.004963, allocations: 0 / 0.9531 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.713e-05/0.00502, allocations: 15.8 kB / 0.9531 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.005156, allocations: 19.81 kB / 0.9531 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.006218, allocations: 327.3 kB / 0.9534 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005633/0.006781, allocations: 295.5 kB / 0.9537 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.006939, allocations: 33.58 kB / 0.9537 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.007261, allocations: 159.8 kB / 0.9539 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.007511, allocations: 95.66 kB / 0.954 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.94e-05/0.00759, allocations: 28 kB / 0.954 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.007705, allocations: 35.98 kB / 0.954 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.083e-05/0.007746, allocations: 23.92 kB / 0.9541 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.007893, allocations: 87.84 kB / 0.9541 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.00837, allocations: 315.1 kB / 0.9544 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.008374, allocations: 4 kB / 0.9544 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.826e-06/0.008377, allocations: 3.984 kB / 0.9544 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.008385, allocations: 0 / 0.9544 GB, free: 7.98 MB / 0.8575 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.0008366/0.009221, allocations: 458.8 kB / 0.9549 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.009265, allocations: 8.031 kB / 0.9549 GB, free: 7.477 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.00937, allocations: 24.84 kB / 0.9549 GB, free: 7.453 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.00951, allocations: 122.2 kB / 0.955 GB, free: 7.309 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.00955, allocations: 16.36 kB / 0.955 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.009599, allocations: 16.38 kB / 0.9551 GB, free: 7.277 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.009813, allocations: 99.78 kB / 0.9552 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.009825, allocations: 4 kB / 0.9552 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.009841, allocations: 4 kB / 0.9552 GB, free: 7.168 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.009849, allocations: 4 kB / 0.9552 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.009962, allocations: 43.97 kB / 0.9552 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007888/0.01075, allocations: 380.1 kB / 0.9556 GB, free: 6.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.01104, allocations: 70.48 kB / 0.9556 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.222e-05/0.0111, allocations: 24.97 kB / 0.9557 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.01112, allocations: 0 / 0.9557 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.0114, allocations: 115.5 kB / 0.9558 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.01141, allocations: 4 kB / 0.9558 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.000483/0.01189, allocations: 178.6 kB / 0.9559 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.607e-05/0.01195, allocations: 55.41 kB / 0.956 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.01214, allocations: 151.6 kB / 0.9561 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.0122, allocations: 33.7 kB / 0.9562 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.01234, allocations: 116.5 kB / 0.9563 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.01238, allocations: 31.73 kB / 0.9563 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001691/0.01255, allocations: 73.67 kB / 0.9564 GB, free: 5.816 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001933/0.01274, allocations: 326.8 kB / 0.9567 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.01305, allocations: 192.9 kB / 0.9569 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.0134, allocations: 231 kB / 0.9571 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003935/0.01379, allocations: 257 kB / 0.9573 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.01379, allocations: 0 / 0.9573 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008402/0.01463, allocations: 491.7 kB / 0.9578 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.602e-05/0.01473, allocations: 106.6 kB / 0.9579 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.01474, allocations: 4 kB / 0.9579 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.01476, allocations: 3.984 kB / 0.9579 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.276e-05/0.01484, allocations: 19.88 kB / 0.9579 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.01484, allocations: 3.938 kB / 0.9579 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/0.01535, allocations: 83.8 kB / 0.958 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.284e-05/0.01541, allocations: 23.98 kB / 0.9581 GB, free: 3.945 MB / 0.8575 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.0001842/0.01559, allocations: 133.8 kB / 0.9582 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.01562, allocations: 15.91 kB / 0.9582 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.244e-05/0.01567, allocations: 16.72 kB / 0.9582 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.01567, allocations: 4 kB / 0.9582 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.01568, allocations: 0 / 0.9582 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.01569, allocations: 0 / 0.9582 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.01588, allocations: 149.3 kB / 0.9584 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.01589, allocations: 7.984 kB / 0.9584 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.669e-05/0.01593, allocations: 8 kB / 0.9584 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.01594, allocations: 4 kB / 0.9584 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.01596, allocations: 3.984 kB / 0.9584 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.01597, allocations: 7.938 kB / 0.9584 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01597, allocations: 0 / 0.9584 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002669/0.01623, allocations: 162.7 kB / 0.9585 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.472e-05/0.01626, allocations: 11.89 kB / 0.9586 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.01628, allocations: 4 kB / 0.9586 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.953e-05/0.01632, allocations: 7.938 kB / 0.9586 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/0.01638, allocations: 15.97 kB / 0.9586 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.01639, allocations: 8 kB / 0.9586 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.327e-05/0.01649, allocations: 104.8 kB / 0.9587 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of sort global known variables: time 7e-08/0.01649, allocations: 0 / 0.9587 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003071/0.01679, allocations: 55.94 kB / 0.9587 GB, free: 3.188 MB / 0.8575 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.0001982/0.01699, allocations: 103.2 kB / 0.9588 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00063/0.01762, allocations: 435.1 kB / 0.9593 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01762, allocations: 384 / 0.9593 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.93e-05/0.01771, allocations: 51.91 kB / 0.9593 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.018, allocations: 23.98 kB / 0.9593 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.01856, allocations: 246 kB / 0.9596 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001006/0.01866, allocations: 98.22 kB / 0.9597 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.407e-05/0.0187, allocations: 20.91 kB / 0.9597 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.01874, allocations: 12.5 kB / 0.9597 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.01874, allocations: 0 / 0.9597 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of Templates: time 0.007918/0.02666, allocations: 3.031 MB / 0.9626 GB, free: 15.14 MB / 0.8731 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.050183430314064]