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.00166/0.00166, allocations: 114.6 kB / 16.37 MB, free: 6.012 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.001681/0.001681, allocations: 192.6 kB / 17.31 MB, free: 5.613 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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.31/2.31, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 67.5 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3131, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002061/0.3152, allocations: 0.827 MB / 0.952 GB, free: 7.188 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001626/0.3169, allocations: 1.284 MB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.12e-05/0.317, allocations: 4 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.035e-05/0.317, allocations: 11.81 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.114e-05/0.3171, allocations: 19.73 kB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008336/0.318, allocations: 323 kB / 0.9536 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.3183, allocations: 311.5 kB / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3184, allocations: 37.38 kB / 0.9539 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.3186, allocations: 115.8 kB / 0.954 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.3188, allocations: 115.7 kB / 0.9541 GB, free: 4.969 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.231e-05/0.3188, allocations: 24 kB / 0.9541 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.031e-05/0.3189, allocations: 43.92 kB / 0.9542 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.627e-05/0.319, allocations: 31.86 kB / 0.9542 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.3191, allocations: 99.67 kB / 0.9543 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.3194, allocations: 267.1 kB / 0.9545 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3194, allocations: 0 / 0.9545 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3194, allocations: 0 / 0.9545 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.3194, allocations: 0 / 0.9545 GB, free: 4.512 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.0006462/0.3201, allocations: 0.5274 MB / 0.9551 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3201, allocations: 16.03 kB / 0.9551 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.3202, allocations: 20.75 kB / 0.9551 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.3203, allocations: 182.8 kB / 0.9553 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.3204, allocations: 12.38 kB / 0.9553 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.51e-05/0.3204, allocations: 27.92 kB / 0.9553 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.3206, allocations: 87.48 kB / 0.9554 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.3206, allocations: 0 / 0.9554 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.3206, allocations: 8 kB / 0.9554 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3206, allocations: 4 kB / 0.9554 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.3207, allocations: 47.97 kB / 0.9555 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.3214, allocations: 496.2 kB / 0.9559 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.3217, allocations: 70.61 kB / 0.956 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.149e-05/0.3217, allocations: 24.92 kB / 0.956 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.3218, allocations: 3.938 kB / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001882/0.3219, allocations: 127.1 kB / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.322, allocations: 0 / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0003425/0.3223, allocations: 169.3 kB / 0.9563 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.3224, allocations: 51.41 kB / 0.9564 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.3225, allocations: 173.6 kB / 0.9565 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.606e-05/0.3226, allocations: 33.7 kB / 0.9565 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.574e-05/0.3226, allocations: 116 kB / 0.9567 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.3227, allocations: 31.56 kB / 0.9567 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.3228, allocations: 77.66 kB / 0.9568 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3229, allocations: 322.8 kB / 0.9571 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.3231, allocations: 91.95 kB / 0.9572 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.3233, allocations: 138 kB / 0.9573 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.3237, allocations: 253.8 kB / 0.9575 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3237, allocations: 7.938 kB / 0.9575 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006472/0.3243, allocations: 402.3 kB / 0.9579 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.724e-05/0.3244, allocations: 97.03 kB / 0.958 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3244, allocations: 4 kB / 0.958 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.3245, allocations: 4 kB / 0.958 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.116e-05/0.3245, allocations: 15.98 kB / 0.958 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3246, allocations: 7.875 kB / 0.958 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004389/0.325, allocations: 91.88 kB / 0.9581 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.45e-05/0.3251, allocations: 19.98 kB / 0.9582 GB, free: 500 kB / 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.0001482/0.3252, allocations: 126.4 kB / 0.9583 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.3253, allocations: 19.75 kB / 0.9583 GB, free: 344 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.292e-05/0.3253, allocations: 20.83 kB / 0.9583 GB, free: 324 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3253, allocations: 7.984 kB / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3253, allocations: 0 / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3253, allocations: 0 / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.3255, allocations: 209.6 kB / 0.9585 GB, free: 56 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3256, allocations: 0 / 0.9585 GB, free: 56 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.3256, allocations: 15.92 kB / 0.9585 GB, free: 40 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3256, allocations: 3.938 kB / 0.9585 GB, free: 36 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.3256, allocations: 8 kB / 0.9585 GB, free: 28 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3256, allocations: 3.984 kB / 0.9586 GB, free: 24 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3257, allocations: 4 kB / 0.9586 GB, free: 20 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.3259, allocations: 164.9 kB / 0.9587 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.755e-05/0.326, allocations: 88.95 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.326, allocations: 3.984 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.518e-05/0.326, allocations: 8 kB / 0.9588 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.3261, allocations: 7.984 kB / 0.9588 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.3261, allocations: 11.94 kB / 0.9588 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.003e-05/0.3262, allocations: 117.6 kB / 0.9589 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3262, allocations: 0 / 0.9589 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002758/0.3265, allocations: 55.94 kB / 0.959 GB, free: 15.54 MB / 0.7481 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.0001734/0.3267, allocations: 115.2 kB / 0.9591 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005084/0.3272, allocations: 382.1 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3272, allocations: 0 / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.305e-05/0.3273, allocations: 51.92 kB / 0.9595 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.3276, allocations: 32.34 kB / 0.9595 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004888/0.3281, allocations: 231.6 kB / 0.9598 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003682/0.3284, allocations: 0.7161 MB / 0.9605 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.327e-05/0.3285, allocations: 20.52 kB / 0.9605 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.3285, allocations: 19.38 kB / 0.9605 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of SimCode: time 5.41e-07/0.3285, allocations: 4 kB / 0.9605 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of Templates: time 0.005783/0.3343, allocations: 2.797 MB / 0.9632 GB, free: 11.12 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 -s cvode -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