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.001231/0.001231, allocations: 110.2 kB / 16.41 MB, free: 6.496 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.00127/0.001271, allocations: 187 kB / 17.34 MB, free: 5.762 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.396/1.396, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.448/2.448, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.91 kB / 0.9515 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8398/0.8412, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002013/0.8433, allocations: 0.8282 MB / 1.089 GB, free: 4.984 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001511/0.8448, allocations: 1.283 MB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.318e-05/0.8449, allocations: 2.156 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.45e-05/0.8449, allocations: 17.78 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.19e-05/0.845, allocations: 21.09 kB / 1.091 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008678/0.8459, allocations: 326.5 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.8463, allocations: 310.2 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.8464, allocations: 42.98 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.8466, allocations: 109 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.8468, allocations: 114.6 kB / 1.092 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.373e-05/0.8469, allocations: 26.5 kB / 1.092 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.847, allocations: 43.91 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.908e-05/0.8471, allocations: 23.05 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.8472, allocations: 107.5 kB / 1.092 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004009/0.8476, allocations: 256.9 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8476, allocations: 0 / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8477, allocations: 4.719 kB / 1.092 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.8477, allocations: 0 / 1.092 GB, free: 3.445 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.0006644/0.8483, allocations: 0.5201 MB / 1.093 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.8484, allocations: 9.672 kB / 1.093 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.731e-05/0.8485, allocations: 26.19 kB / 1.093 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.8486, allocations: 186.3 kB / 1.093 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.8486, allocations: 17.22 kB / 1.093 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.8487, allocations: 20.89 kB / 1.093 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.8489, allocations: 88.38 kB / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.8489, allocations: 4.797 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.8489, allocations: 0.9688 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.8489, allocations: 2.656 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.8491, allocations: 51.41 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006645/0.8497, allocations: 491.2 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.85, allocations: 69.92 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.79e-05/0.85, allocations: 33.06 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.8501, allocations: 5.547 kB / 1.094 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.8503, allocations: 116.3 kB / 1.094 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.704e-06/0.8503, allocations: 0 / 1.094 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003993/0.8507, allocations: 172.4 kB / 1.094 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.8508, allocations: 55.09 kB / 1.094 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.8509, allocations: 178.2 kB / 1.094 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.851, allocations: 35.27 kB / 1.094 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.398e-05/0.8511, allocations: 108.4 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.8511, allocations: 30.61 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.8513, allocations: 75.2 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.506e-05/0.8513, allocations: 322.6 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.8516, allocations: 96.25 kB / 1.095 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.8518, allocations: 145.7 kB / 1.095 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.8521, allocations: 256.1 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.8522, allocations: 0.8438 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008295/0.853, allocations: 397.7 kB / 1.095 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.06e-05/0.8531, allocations: 102.3 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.8531, allocations: 2.078 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.8531, allocations: 2.688 kB / 1.096 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.333e-05/0.8532, allocations: 14.98 kB / 1.096 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.8532, allocations: 7.469 kB / 1.096 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005606/0.8538, allocations: 83.28 kB / 1.096 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.606e-05/0.8538, allocations: 22.94 kB / 1.096 GB, free: 0.6875 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.0001385/0.854, allocations: 141.7 kB / 1.096 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.854, allocations: 17.44 kB / 1.096 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.8541, allocations: 17.31 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.8541, allocations: 2.125 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.8541, allocations: 0 / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.8541, allocations: 1.453 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002007/0.8543, allocations: 222 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.8543, allocations: 0 / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.851e-05/0.8544, allocations: 13.59 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.8544, allocations: 1.609 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.8544, allocations: 6.984 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.8544, allocations: 4.797 kB / 1.096 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.8544, allocations: 4.797 kB / 1.096 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.8547, allocations: 161.2 kB / 1.096 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.891e-05/0.8548, allocations: 88.88 kB / 1.096 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.8548, allocations: 1.703 kB / 1.096 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.34e-05/0.8548, allocations: 5.812 kB / 1.096 GB, free: 92 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.8549, allocations: 10.34 kB / 1.096 GB, free: 92 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.8549, allocations: 12.47 kB / 1.096 GB, free: 84 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001169/0.855, allocations: 113.7 kB / 1.096 GB, free: 0 / 0.8575 GB Notification: Performance of sort global known variables: time 2.445e-06/0.855, allocations: 128 / 1.096 GB, free: 16 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003166/0.8554, allocations: 56.89 kB / 1.096 GB, free: 15.98 MB / 0.8731 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.0002084/0.8556, allocations: 114.6 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006533/0.8562, allocations: 388.8 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.8562, allocations: 384 / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.8564, allocations: 56.41 kB / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.8567, allocations: 25.69 kB / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005666/0.8573, allocations: 273 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.8576, allocations: 0.7116 MB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.089e-05/0.8577, allocations: 15.62 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of SimCode: time 3.4e-07/0.8577, allocations: 0 / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.005355/0.863, allocations: 2.277 MB / 1.1 GB, free: 14.45 MB / 0.8731 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/jenkins1/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