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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001412/0.001412, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 195.8 kB / 16.63 MB, free: 6.609 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.467/1.467, allocations: 222.9 MB / 240.3 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.634/2.634, allocations: 390.3 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 60.16 kB / 0.9509 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3482, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002138/0.3503, allocations: 0.8373 MB / 1.089 GB, free: 0.6133 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001834/0.3522, allocations: 1.278 MB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.46e-05/0.3523, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.252e-05/0.3524, allocations: 11.88 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.907e-05/0.3525, allocations: 23.73 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008727/0.3534, allocations: 328.1 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.3537, allocations: 315.4 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.3539, allocations: 37.44 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.354, allocations: 115.8 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.3542, allocations: 111.6 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.3542, allocations: 28 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.211e-05/0.3543, allocations: 39.98 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3544, allocations: 23.92 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.3545, allocations: 103.6 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.3548, allocations: 267.1 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3548, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3548, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.736e-06/0.3548, allocations: 4 kB / 1.091 GB, free: 13.94 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.0007226/0.3556, allocations: 0.5197 MB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.3556, allocations: 12.03 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.3557, allocations: 20.75 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.3558, allocations: 177.9 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/0.3559, allocations: 24.11 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.3559, allocations: 20 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.3561, allocations: 89.59 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.3561, allocations: 0 / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.3561, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3562, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.3563, allocations: 51.92 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006918/0.357, allocations: 492.2 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.3572, allocations: 70.62 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.601e-05/0.3573, allocations: 32.91 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.3573, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.3575, allocations: 126.6 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.3575, allocations: 3.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003519/0.3579, allocations: 165.5 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.3579, allocations: 55.34 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.3581, allocations: 170.8 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.221e-05/0.3581, allocations: 33.7 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.338e-05/0.3582, allocations: 112 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.3583, allocations: 31.56 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.3584, allocations: 77.66 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3585, allocations: 322.8 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.3587, allocations: 99.94 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.359, allocations: 146 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.3593, allocations: 248.8 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3593, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006194/0.36, allocations: 402.3 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/0.3601, allocations: 105 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3601, allocations: 4 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3601, allocations: 0 / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.994e-05/0.3601, allocations: 19.92 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3602, allocations: 192 / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/0.3606, allocations: 87.75 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.823e-05/0.3607, allocations: 23.92 kB / 1.095 GB, free: 9.918 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.000134/0.3608, allocations: 134.4 kB / 1.095 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.512e-05/0.3608, allocations: 27.73 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.3609, allocations: 12.84 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.3609, allocations: 4 kB / 1.095 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3609, allocations: 0 / 1.095 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3609, allocations: 0 / 1.095 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.3611, allocations: 213.6 kB / 1.095 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3611, allocations: 3.938 kB / 1.095 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.391e-05/0.3611, allocations: 11.94 kB / 1.095 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3612, allocations: 0 / 1.095 GB, free: 9.461 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.3612, allocations: 4 kB / 1.095 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3612, allocations: 4 kB / 1.095 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3612, allocations: 7.984 kB / 1.095 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.3614, allocations: 156.9 kB / 1.096 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.3615, allocations: 96.88 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.3615, allocations: 0 / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.234e-05/0.3615, allocations: 4 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.3616, allocations: 15.92 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.3616, allocations: 8 kB / 1.096 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.05e-05/0.3617, allocations: 119.6 kB / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3617, allocations: 0 / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002652/0.362, allocations: 51.91 kB / 1.096 GB, free: 8.969 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.0001768/0.3621, allocations: 111.2 kB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004984/0.3626, allocations: 382.1 kB / 1.096 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/0.3627, allocations: 4.375 kB / 1.096 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.67e-05/0.3628, allocations: 59.91 kB / 1.096 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.363, allocations: 33.78 kB / 1.096 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004834/0.3635, allocations: 243.4 kB / 1.097 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.3638, allocations: 0.7122 MB / 1.097 GB, free: 7.352 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.064e-05/0.3639, allocations: 12.64 kB / 1.097 GB, free: 7.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.3639, allocations: 19.44 kB / 1.097 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.3639, allocations: 3.938 kB / 1.097 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of Templates: time 0.005506/0.3694, allocations: 2.791 MB / 1.1 GB, free: 4.555 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