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.001313/0.001313, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001347/0.001347, allocations: 189.8 kB / 17.2 MB, free: 5.59 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.346/1.346, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.301/2.301, allocations: 390.3 MB / 0.6653 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 66.91 kB / 0.8132 GB, free: 32.99 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2635, allocations: 140.4 MB / 0.9503 GB, free: 8.867 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002373/0.2659, allocations: 0.8401 MB / 0.9511 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001709/0.2677, allocations: 1.28 MB / 0.9523 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.828e-05/0.2678, allocations: 0 / 0.9523 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.012e-05/0.2679, allocations: 15.8 kB / 0.9524 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.958e-05/0.268, allocations: 19.8 kB / 0.9524 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008943/0.2689, allocations: 318.2 kB / 0.9527 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003636/0.2693, allocations: 307.5 kB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.2694, allocations: 41.42 kB / 0.953 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.2696, allocations: 115.7 kB / 0.9531 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.2698, allocations: 87.7 kB / 0.9532 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.583e-05/0.2699, allocations: 32 kB / 0.9532 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.27, allocations: 43.97 kB / 0.9533 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.226e-05/0.27, allocations: 19.92 kB / 0.9533 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.2702, allocations: 111.6 kB / 0.9534 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.2705, allocations: 255.6 kB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2705, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.452e-06/0.2705, allocations: 0 / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.2705, allocations: 0 / 0.9537 GB, free: 5.387 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.0006994/0.2712, allocations: 0.5274 MB / 0.9542 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2713, allocations: 12.03 kB / 0.9542 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.174e-05/0.2714, allocations: 24.73 kB / 0.9542 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.2715, allocations: 190.2 kB / 0.9544 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.2715, allocations: 12.38 kB / 0.9544 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.2716, allocations: 19.94 kB / 0.9544 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.2718, allocations: 91.53 kB / 0.9545 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2718, allocations: 0 / 0.9545 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.2718, allocations: 8 kB / 0.9545 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.2718, allocations: 3.938 kB / 0.9545 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.2719, allocations: 47.92 kB / 0.9546 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006929/0.2726, allocations: 496.2 kB / 0.955 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.2729, allocations: 74.53 kB / 0.9551 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.791e-05/0.2729, allocations: 32.98 kB / 0.9551 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.273, allocations: 0 / 0.9551 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.2732, allocations: 131 kB / 0.9553 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.2732, allocations: 0 / 0.9553 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0003469/0.2735, allocations: 161.6 kB / 0.9554 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.2736, allocations: 55.41 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.2737, allocations: 166.5 kB / 0.9556 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.2738, allocations: 37.7 kB / 0.9557 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.468e-05/0.2739, allocations: 108 kB / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.2739, allocations: 35.48 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.274, allocations: 73.67 kB / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2741, allocations: 326.8 kB / 0.9562 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.2744, allocations: 95.94 kB / 0.9563 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.2746, allocations: 149.9 kB / 0.9564 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.2749, allocations: 253.4 kB / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2749, allocations: 0 / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006137/0.2755, allocations: 402.2 kB / 0.957 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.2756, allocations: 101 kB / 0.9571 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2756, allocations: 0 / 0.9571 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.2756, allocations: 4 kB / 0.9571 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.677e-05/0.2757, allocations: 8 kB / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2757, allocations: 4 kB / 0.9572 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.2762, allocations: 91.92 kB / 0.9572 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.242e-05/0.2763, allocations: 19.98 kB / 0.9573 GB, free: 1.363 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.0001268/0.2764, allocations: 134.3 kB / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.2765, allocations: 23.73 kB / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.2765, allocations: 12.84 kB / 0.9574 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2765, allocations: 4 kB / 0.9574 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.2765, allocations: 4 kB / 0.9574 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2765, allocations: 0 / 0.9574 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.2767, allocations: 217.6 kB / 0.9576 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2767, allocations: 4 kB / 0.9576 GB, free: 0.9141 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-05/0.2768, allocations: 4 kB / 0.9576 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.2768, allocations: 7.938 kB / 0.9577 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.2768, allocations: 3.938 kB / 0.9577 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2768, allocations: 0 / 0.9577 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2768, allocations: 7.984 kB / 0.9577 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002128/0.277, allocations: 160.9 kB / 0.9578 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.2771, allocations: 88.94 kB / 0.9579 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.2771, allocations: 8 kB / 0.9579 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.078e-05/0.2771, allocations: 0 / 0.9579 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.2772, allocations: 11.98 kB / 0.9579 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2772, allocations: 4 kB / 0.9579 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.132e-05/0.2773, allocations: 123.2 kB / 0.958 GB, free: 476 kB / 0.7325 GB Notification: Performance of sort global known variables: time 2.31e-07/0.2773, allocations: 4 kB / 0.958 GB, free: 472 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002753/0.2776, allocations: 55.88 kB / 0.9581 GB, free: 416 kB / 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.0001542/0.2777, allocations: 116.7 kB / 0.9582 GB, free: 288 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005032/0.2783, allocations: 382.1 kB / 0.9586 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2783, allocations: 3.938 kB / 0.9586 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.166e-05/0.2784, allocations: 60.28 kB / 0.9586 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.2786, allocations: 27.97 kB / 0.9587 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004748/0.2791, allocations: 273.3 kB / 0.9589 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.2794, allocations: 0.7083 MB / 0.9596 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.2794, allocations: 19.38 kB / 0.9596 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/0.2794, allocations: 0 / 0.9596 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of Templates: time 0.004321/0.2837, allocations: 2.28 MB / 0.9619 GB, free: 12.46 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