Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009061/0.009061, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002088/0.002088, allocations: 194.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.598/2.598, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 68.08 kB / 0.9509 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3423, allocations: 140.4 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002115/0.3445, allocations: 0.8232 MB / 1.089 GB, free: 0.6328 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.3461, allocations: 1.285 MB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.876e-05/0.3462, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.807e-05/0.3463, allocations: 11.88 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.3464, allocations: 27.72 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008182/0.3472, allocations: 324.2 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003414/0.3476, allocations: 311.4 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.3477, allocations: 45.39 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.3479, allocations: 115.8 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.348, allocations: 111.7 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.373e-05/0.3481, allocations: 24 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.3482, allocations: 43.98 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.3482, allocations: 23.91 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.3483, allocations: 107.6 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.3487, allocations: 263.1 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3487, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3487, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.179e-05/0.3487, allocations: 0 / 1.091 GB, free: 13.95 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.0006911/0.3494, allocations: 0.5312 MB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3495, allocations: 8.031 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.999e-05/0.3495, allocations: 24.83 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.3497, allocations: 182 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.3497, allocations: 16.12 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.3498, allocations: 16 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.35, allocations: 99.42 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.35, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.35, allocations: 8 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.35, allocations: 0 / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.74e-05/0.3501, allocations: 47.97 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007057/0.3508, allocations: 492.3 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.3511, allocations: 70.61 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.322e-05/0.3511, allocations: 24.92 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.3511, allocations: 7.938 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.3514, allocations: 122.8 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.3514, allocations: 7.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003413/0.3518, allocations: 169.5 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.3518, allocations: 59.34 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.352, allocations: 166.8 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.352, allocations: 33.7 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.297e-05/0.3521, allocations: 116 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.711e-05/0.3521, allocations: 27.78 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.3523, allocations: 73.67 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3524, allocations: 330.8 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.3526, allocations: 87.95 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.3528, allocations: 144.9 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.3532, allocations: 260.4 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3532, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006064/0.3538, allocations: 406.3 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.44e-05/0.3539, allocations: 97.09 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3539, allocations: 0 / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3539, allocations: 4 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.658e-05/0.354, allocations: 11.94 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.354, allocations: 7.984 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004613/0.3544, allocations: 87.98 kB / 1.095 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.3545, allocations: 27.92 kB / 1.095 GB, free: 9.922 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.0001263/0.3546, allocations: 138.4 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.3547, allocations: 15.84 kB / 1.095 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/0.3547, allocations: 16.83 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.3547, allocations: 4 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.3547, allocations: 0 / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3547, allocations: 0 / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.3549, allocations: 225.5 kB / 1.095 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.3549, allocations: 3.984 kB / 1.095 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.58e-05/0.355, allocations: 15.92 kB / 1.095 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.355, allocations: 0 / 1.095 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.355, allocations: 4 kB / 1.095 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.355, allocations: 0 / 1.095 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.355, allocations: 0 / 1.095 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000223/0.3552, allocations: 165 kB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.3553, allocations: 92.95 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.3553, allocations: 4 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.525e-05/0.3554, allocations: 7.984 kB / 1.096 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.3554, allocations: 15.92 kB / 1.096 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3554, allocations: 4 kB / 1.096 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.721e-05/0.3555, allocations: 119.6 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3555, allocations: 0 / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002623/0.3558, allocations: 52 kB / 1.096 GB, free: 8.965 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.0001666/0.356, allocations: 115.2 kB / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005177/0.3565, allocations: 374.1 kB / 1.096 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/0.3565, allocations: 0 / 1.096 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.887e-05/0.3566, allocations: 51.92 kB / 1.096 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.3569, allocations: 34.38 kB / 1.096 GB, free: 8.359 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.3574, allocations: 250.7 kB / 1.097 GB, free: 8.094 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.3576, allocations: 0.7084 MB / 1.097 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.375e-05/0.3577, allocations: 12.66 kB / 1.097 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.126e-05/0.3577, allocations: 19.42 kB / 1.097 GB, free: 7.328 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.3577, allocations: 3.938 kB / 1.097 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of Templates: time 0.005679/0.3634, allocations: 2.807 MB / 1.1 GB, free: 4.547 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches