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.001562/0.001562, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001822/0.001822, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.492/1.492, allocations: 222.9 MB / 240.6 MB, free: 13.71 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.242/2.242, allocations: 390.2 MB / 0.665 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 68.19 kB / 0.8127 GB, free: 32.49 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2651, allocations: 140.4 MB / 0.9498 GB, free: 9.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002297/0.2674, allocations: 0.8824 MB / 0.9506 GB, free: 8.336 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.2689, allocations: 1.284 MB / 0.9519 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.102e-05/0.269, allocations: 0 / 0.9519 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.312e-05/0.2691, allocations: 7.922 kB / 0.9519 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.695e-05/0.2692, allocations: 19.86 kB / 0.9519 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007495/0.2699, allocations: 301.8 kB / 0.9522 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002917/0.2702, allocations: 303.5 kB / 0.9525 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2703, allocations: 49.39 kB / 0.9526 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.2705, allocations: 115.7 kB / 0.9527 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.2706, allocations: 99.67 kB / 0.9528 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.2707, allocations: 27.94 kB / 0.9528 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.954e-05/0.2708, allocations: 43.98 kB / 0.9528 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.538e-05/0.2708, allocations: 19.92 kB / 0.9528 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.2709, allocations: 107.6 kB / 0.9529 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.2711, allocations: 191.8 kB / 0.9531 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2711, allocations: 0 / 0.9531 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.805e-06/0.2711, allocations: 4 kB / 0.9531 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.2711, allocations: 0 / 0.9531 GB, free: 5.777 MB / 0.7325 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.0005964/0.2717, allocations: 0.5157 MB / 0.9536 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.2718, allocations: 8.031 kB / 0.9536 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.25e-05/0.2719, allocations: 20.75 kB / 0.9537 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.272, allocations: 184.7 kB / 0.9538 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.272, allocations: 16.31 kB / 0.9539 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.2721, allocations: 23.94 kB / 0.9539 GB, free: 4.91 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/0.2723, allocations: 89.64 kB / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2723, allocations: 0 / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.2723, allocations: 8 kB / 0.954 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.2723, allocations: 0 / 0.954 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.779e-05/0.2724, allocations: 50.05 kB / 0.954 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.2731, allocations: 496.2 kB / 0.9545 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.2733, allocations: 70.56 kB / 0.9546 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.517e-05/0.2733, allocations: 36.91 kB / 0.9546 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.2734, allocations: 0 / 0.9546 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002302/0.2736, allocations: 123.2 kB / 0.9547 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.263e-06/0.2736, allocations: 0 / 0.9547 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0003428/0.274, allocations: 169.5 kB / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.274, allocations: 59.39 kB / 0.9549 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.2741, allocations: 163.2 kB / 0.9551 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.2742, allocations: 41.69 kB / 0.9551 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.2743, allocations: 108 kB / 0.9552 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.2743, allocations: 31.55 kB / 0.9553 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.2745, allocations: 73.67 kB / 0.9553 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2746, allocations: 326.8 kB / 0.9556 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.2748, allocations: 99.94 kB / 0.9557 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.275, allocations: 138 kB / 0.9559 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.2753, allocations: 257.3 kB / 0.9561 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2753, allocations: 0 / 0.9561 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005951/0.2759, allocations: 398.5 kB / 0.9565 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.659e-05/0.276, allocations: 109 kB / 0.9566 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.276, allocations: 0 / 0.9566 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2761, allocations: 7.938 kB / 0.9566 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.775e-05/0.2761, allocations: 11.94 kB / 0.9566 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.2761, allocations: 4 kB / 0.9566 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004935/0.2766, allocations: 91.77 kB / 0.9567 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.2767, allocations: 19.98 kB / 0.9567 GB, free: 1.762 MB / 0.7325 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.0001188/0.2768, allocations: 125.8 kB / 0.9568 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.2768, allocations: 19.75 kB / 0.9569 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.506e-05/0.2769, allocations: 20.77 kB / 0.9569 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2769, allocations: 4 kB / 0.9569 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2769, allocations: 3.938 kB / 0.9569 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2769, allocations: 0 / 0.9569 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.2771, allocations: 213.6 kB / 0.9571 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.2771, allocations: 3.984 kB / 0.9571 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.399e-05/0.2771, allocations: 8 kB / 0.9571 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.2772, allocations: 7.922 kB / 0.9571 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.2772, allocations: 4 kB / 0.9571 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2772, allocations: 0 / 0.9571 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.2772, allocations: 4 kB / 0.9571 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.2774, allocations: 164.8 kB / 0.9573 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.2775, allocations: 88.95 kB / 0.9574 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.2775, allocations: 7.984 kB / 0.9574 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.806e-05/0.2775, allocations: 4 kB / 0.9574 GB, free: 1 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.2776, allocations: 11.98 kB / 0.9574 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.2776, allocations: 8 kB / 0.9574 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.449e-05/0.2777, allocations: 119.2 kB / 0.9575 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2777, allocations: 0 / 0.9575 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002781/0.278, allocations: 51.94 kB / 0.9576 GB, free: 0.8125 MB / 0.7325 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.0002001/0.2782, allocations: 116.1 kB / 0.9577 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005352/0.2787, allocations: 390 kB / 0.958 GB, free: 276 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2787, allocations: 0 / 0.958 GB, free: 276 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.2788, allocations: 55.42 kB / 0.9581 GB, free: 224 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/0.2791, allocations: 34.81 kB / 0.9581 GB, free: 192 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004763/0.2796, allocations: 293.6 kB / 0.9584 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.2799, allocations: 0.7122 MB / 0.9591 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.712e-05/0.2799, allocations: 15.44 kB / 0.9591 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of SimCode: time 2.6e-07/0.28, allocations: 0 / 0.9591 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of Templates: time 0.004356/0.2843, allocations: 2.268 MB / 0.9613 GB, free: 12.86 MB / 0.7481 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