Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.776/1.776, allocations: 306.1 MB / 321.4 MB, free: 10.77 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001196, allocations: 175.5 kB / 393.1 MB, free: 4.09 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 225.7 MB / 0.6743 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007858/0.0007859, allocations: 95.83 kB / 0.7935 GB, free: 39.96 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003926, allocations: 12 kB / 0.9224 GB, free: 8.637 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6877/0.6882, allocations: 121.3 MB / 1.041 GB, free: 58 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001081/0.6893, allocations: 0.5354 MB / 1.041 GB, free: 57.68 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.691, allocations: 1.607 MB / 1.043 GB, free: 56.37 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.813e-05/0.6911, allocations: 2.031 kB / 1.043 GB, free: 56.37 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.498e-05/0.6911, allocations: 11.55 kB / 1.043 GB, free: 56.36 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 9.388e-05/0.6912, allocations: 13.52 kB / 1.043 GB, free: 56.35 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007519/0.692, allocations: 305.7 kB / 1.043 GB, free: 56.2 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.6922, allocations: 254.4 kB / 1.044 GB, free: 56.11 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.6923, allocations: 34.23 kB / 1.044 GB, free: 56.09 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.6925, allocations: 100.2 kB / 1.044 GB, free: 56.06 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.6926, allocations: 84.39 kB / 1.044 GB, free: 56.02 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 7.166e-05/0.6927, allocations: 12.88 kB / 1.044 GB, free: 56.02 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.696e-05/0.6928, allocations: 26.61 kB / 1.044 GB, free: 56.02 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.681e-05/0.6928, allocations: 19.44 kB / 1.044 GB, free: 56.01 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.6929, allocations: 112.8 kB / 1.044 GB, free: 55.94 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.6932, allocations: 247.5 kB / 1.044 GB, free: 55.88 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.6932, allocations: 2.469 kB / 1.044 GB, free: 55.88 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.433e-06/0.6932, allocations: 0 / 1.044 GB, free: 55.88 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.6932, allocations: 0 / 1.044 GB, free: 55.88 MB / 0.698 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.0004839/0.6937, allocations: 491.2 kB / 1.045 GB, free: 55.38 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.6938, allocations: 8.719 kB / 1.045 GB, free: 55.38 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.031e-05/0.6938, allocations: 22.69 kB / 1.045 GB, free: 55.38 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.582e-05/0.6939, allocations: 183.8 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.694, allocations: 15.16 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.694, allocations: 21.64 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.6942, allocations: 87.78 kB / 1.045 GB, free: 55.11 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.6942, allocations: 0 / 1.045 GB, free: 55.11 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.6943, allocations: 8.547 kB / 1.045 GB, free: 55.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.6943, allocations: 2.406 kB / 1.045 GB, free: 55.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.6944, allocations: 43.69 kB / 1.045 GB, free: 55.09 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006307/0.695, allocations: 498.6 kB / 1.045 GB, free: 54.73 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.6952, allocations: 74.16 kB / 1.046 GB, free: 54.69 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.312e-05/0.6953, allocations: 35.48 kB / 1.046 GB, free: 54.67 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.6953, allocations: 1.625 kB / 1.046 GB, free: 54.67 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001974/0.6955, allocations: 119 kB / 1.046 GB, free: 54.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=14): time 1.532e-06/0.6955, allocations: 1.344 kB / 1.046 GB, free: 54.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=14): time 0.00032/0.6959, allocations: 170.7 kB / 1.046 GB, free: 54.52 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.6959, allocations: 54.59 kB / 1.046 GB, free: 54.46 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.696, allocations: 168.9 kB / 1.046 GB, free: 54.33 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.6961, allocations: 37.86 kB / 1.046 GB, free: 54.29 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.046e-05/0.6961, allocations: 112.1 kB / 1.046 GB, free: 54.19 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.506e-05/0.6962, allocations: 29.33 kB / 1.046 GB, free: 54.17 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.007e-05/0.6962, allocations: 12.34 kB / 1.046 GB, free: 54.16 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.6963, allocations: 323.5 kB / 1.047 GB, free: 53.84 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.6965, allocations: 92.84 kB / 1.047 GB, free: 53.82 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.6967, allocations: 147.3 kB / 1.047 GB, free: 53.72 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.697, allocations: 252 kB / 1.047 GB, free: 53.51 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.697, allocations: 1.891 kB / 1.047 GB, free: 53.51 MB / 0.698 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006196/0.6976, allocations: 398 kB / 1.047 GB, free: 53.29 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.057e-05/0.6977, allocations: 101.1 kB / 1.047 GB, free: 53.19 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.6977, allocations: 1.562 kB / 1.047 GB, free: 53.19 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.6977, allocations: 2.844 kB / 1.048 GB, free: 53.19 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.192e-05/0.6978, allocations: 16.5 kB / 1.048 GB, free: 53.19 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.096e-06/0.6978, allocations: 1.031 kB / 1.048 GB, free: 53.19 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005342/0.6983, allocations: 124.2 kB / 1.048 GB, free: 53.17 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.395e-05/0.6984, allocations: 22.52 kB / 1.048 GB, free: 53.16 MB / 0.698 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,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.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 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.0001001/0.6985, allocations: 135.4 kB / 1.048 GB, free: 53.04 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.6985, allocations: 17.25 kB / 1.048 GB, free: 53.03 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.6986, allocations: 13.16 kB / 1.048 GB, free: 53.02 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.6986, allocations: 11.08 kB / 1.048 GB, free: 53.02 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.6986, allocations: 3.938 kB / 1.048 GB, free: 53.01 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.6986, allocations: 4 kB / 1.048 GB, free: 53.01 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.6987, allocations: 219.5 kB / 1.048 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.6987, allocations: 0 / 1.048 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.701e-05/0.6988, allocations: 12.42 kB / 1.048 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.6988, allocations: 6.969 kB / 1.048 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.6988, allocations: 0 / 1.048 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.6988, allocations: 2.75 kB / 1.048 GB, free: 52.79 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6988, allocations: 3.984 kB / 1.048 GB, free: 52.78 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.699, allocations: 162.8 kB / 1.048 GB, free: 52.68 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.221e-05/0.6991, allocations: 97.33 kB / 1.048 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.6991, allocations: 3.625 kB / 1.048 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.108e-05/0.6992, allocations: 0.7031 kB / 1.048 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/0.6992, allocations: 14.77 kB / 1.048 GB, free: 52.56 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.6992, allocations: 8.797 kB / 1.048 GB, free: 52.56 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.776e-05/0.6993, allocations: 117.1 kB / 1.048 GB, free: 52.48 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6993, allocations: 0 / 1.048 GB, free: 52.48 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002593/0.6996, allocations: 50.84 kB / 1.049 GB, free: 52.47 MB / 0.698 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.000155/0.6997, allocations: 110.1 kB / 1.049 GB, free: 52.38 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004531/0.7002, allocations: 387.4 kB / 1.049 GB, free: 52.11 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.7002, allocations: 0 / 1.049 GB, free: 52.11 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 8.331e-05/0.7003, allocations: 48.31 kB / 1.049 GB, free: 52.09 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.7006, allocations: 34.08 kB / 1.049 GB, free: 52.08 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004813/0.701, allocations: 283.4 kB / 1.049 GB, free: 51.87 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.7012, allocations: 0.7119 MB / 1.05 GB, free: 51.17 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.626e-05/0.7013, allocations: 10.34 kB / 1.05 GB, free: 51.17 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.149e-05/0.7013, allocations: 16.25 kB / 1.05 GB, free: 51.16 MB / 0.698 GB Notification: Performance of SimCode: time 3.71e-07/0.7013, allocations: 0 / 1.05 GB, free: 51.16 MB / 0.698 GB Notification: Performance of Templates: time 0.006252/0.7076, allocations: 2.65 MB / 1.053 GB, free: 50.94 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (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=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1)