Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001289/0.001289, allocations: 102.2 kB / 16.27 MB, free: 6 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.001234/0.001234, allocations: 191 kB / 17.2 MB, free: 5.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.432/1.432, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.524/2.524, allocations: 437.1 MB / 0.711 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 63.73 kB / 0.8699 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2975, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002232/0.2998, allocations: 0.845 MB / 1.019 GB, free: 9.793 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.3015, allocations: 1.286 MB / 1.02 GB, free: 8.492 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.149e-05/0.3016, allocations: 0 / 1.02 GB, free: 8.492 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.064e-05/0.3016, allocations: 7.875 kB / 1.02 GB, free: 8.484 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.917e-05/0.3017, allocations: 31.72 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008091/0.3026, allocations: 313.3 kB / 1.02 GB, free: 8.156 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.3029, allocations: 311.5 kB / 1.021 GB, free: 7.852 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.3031, allocations: 45.27 kB / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.3032, allocations: 123.7 kB / 1.021 GB, free: 7.684 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.3034, allocations: 91.69 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.999e-05/0.3034, allocations: 28 kB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.367e-05/0.3035, allocations: 39.98 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.293e-05/0.3036, allocations: 27.86 kB / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.3037, allocations: 99.67 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003022/0.304, allocations: 251.6 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.304, allocations: 4 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.222e-06/0.304, allocations: 0 / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.304, allocations: 0 / 1.021 GB, free: 7.152 MB / 0.795 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.0008469/0.3049, allocations: 0.5314 MB / 1.022 GB, free: 6.555 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3049, allocations: 8.031 kB / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.305, allocations: 24.75 kB / 1.022 GB, free: 6.523 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.3052, allocations: 188.7 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.3052, allocations: 12.36 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.3053, allocations: 23.94 kB / 1.022 GB, free: 6.266 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.3054, allocations: 85.66 kB / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.3055, allocations: 7.938 kB / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.3055, allocations: 0 / 1.022 GB, free: 6.168 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3055, allocations: 3.984 kB / 1.022 GB, free: 6.164 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.3056, allocations: 51.98 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007173/0.3063, allocations: 0.4884 MB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.3066, allocations: 78.61 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.686e-05/0.3066, allocations: 28.84 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.3067, allocations: 0 / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002177/0.3069, allocations: 115.2 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.3069, allocations: 0 / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0003835/0.3073, allocations: 170.4 kB / 1.023 GB, free: 5.16 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.3073, allocations: 55.41 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.3075, allocations: 164.6 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.3075, allocations: 37.7 kB / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.586e-05/0.3076, allocations: 108 kB / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.3077, allocations: 35.53 kB / 1.024 GB, free: 4.738 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.3078, allocations: 77.67 kB / 1.024 GB, free: 4.656 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.308, allocations: 318.8 kB / 1.024 GB, free: 4.336 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.3082, allocations: 99.94 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.3085, allocations: 152.5 kB / 1.024 GB, free: 4.07 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.3088, allocations: 247 kB / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3088, allocations: 0 / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006469/0.3095, allocations: 396.9 kB / 1.025 GB, free: 3.379 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.909e-05/0.3096, allocations: 105 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3096, allocations: 4 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.3096, allocations: 0 / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.899e-05/0.3097, allocations: 20.11 kB / 1.025 GB, free: 3.234 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3097, allocations: 4 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005453/0.3102, allocations: 87.73 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.115e-05/0.3103, allocations: 19.98 kB / 1.025 GB, free: 3.125 MB / 0.795 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.0001254/0.3104, allocations: 133.8 kB / 1.025 GB, free: 2.984 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.3104, allocations: 23.75 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/0.3105, allocations: 8.844 kB / 1.025 GB, free: 2.953 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3105, allocations: 7.984 kB / 1.025 GB, free: 2.945 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3105, allocations: 0 / 1.025 GB, free: 2.945 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3105, allocations: 0 / 1.025 GB, free: 2.945 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.3107, allocations: 217.5 kB / 1.025 GB, free: 2.684 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3107, allocations: 0 / 1.025 GB, free: 2.684 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.931e-05/0.3108, allocations: 19.98 kB / 1.025 GB, free: 2.664 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3108, allocations: 3.938 kB / 1.025 GB, free: 2.66 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-06/0.3108, allocations: 4 kB / 1.025 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3108, allocations: 4 kB / 1.025 GB, free: 2.652 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3108, allocations: 0 / 1.025 GB, free: 2.652 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.3111, allocations: 162.8 kB / 1.026 GB, free: 2.477 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.3111, allocations: 88.95 kB / 1.026 GB, free: 2.371 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.3112, allocations: 4 kB / 1.026 GB, free: 2.367 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.331e-05/0.3112, allocations: 3.984 kB / 1.026 GB, free: 2.363 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.3112, allocations: 19.92 kB / 1.026 GB, free: 2.344 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.3113, allocations: 8 kB / 1.026 GB, free: 2.336 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.302e-05/0.3114, allocations: 118.3 kB / 1.026 GB, free: 2.223 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3114, allocations: 0 / 1.026 GB, free: 2.223 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002808/0.3116, allocations: 55.84 kB / 1.026 GB, free: 2.168 MB / 0.795 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.0001647/0.3118, allocations: 107.2 kB / 1.026 GB, free: 2.055 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005395/0.3124, allocations: 386.3 kB / 1.026 GB, free: 1.641 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3124, allocations: 4.062 kB / 1.026 GB, free: 1.637 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.161e-05/0.3125, allocations: 55.92 kB / 1.026 GB, free: 1.582 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.3127, allocations: 29.69 kB / 1.026 GB, free: 1.555 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005738/0.3133, allocations: 259.7 kB / 1.027 GB, free: 1.273 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.3137, allocations: 0.7084 MB / 1.027 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.3138, allocations: 23.44 kB / 1.027 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of SimCode: time 2e-07/0.3138, allocations: 0 / 1.027 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of Templates: time 0.004785/0.3186, allocations: 2.266 MB / 1.03 GB, free: 14.27 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches