Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002583/0.002583, allocations: 215.4 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.527/1.527, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.811/2.811, allocations: 476 MB / 0.7707 GB, free: 4.746 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002048, allocations: 67.06 kB / 1.118 GB, free: 41.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3087, allocations: 170 MB / 1.284 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002152/0.3108, allocations: 0.8136 MB / 1.285 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.3127, allocations: 1.297 MB / 1.286 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.916e-05/0.3128, allocations: 8 kB / 1.286 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.269e-05/0.3128, allocations: 7.875 kB / 1.286 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.528e-05/0.3129, allocations: 23.78 kB / 1.286 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000857/0.3138, allocations: 320.5 kB / 1.286 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003791/0.3141, allocations: 299.5 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3142, allocations: 25.62 kB / 1.287 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.3144, allocations: 123.7 kB / 1.287 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.3146, allocations: 91.67 kB / 1.287 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.496e-05/0.3147, allocations: 24 kB / 1.287 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.3148, allocations: 47.91 kB / 1.287 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.159e-05/0.3148, allocations: 23.92 kB / 1.287 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.3149, allocations: 95.73 kB / 1.287 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003532/0.3153, allocations: 259.1 kB / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3153, allocations: 0 / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.539e-06/0.3153, allocations: 4 kB / 1.287 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.403e-06/0.3153, allocations: 4 kB / 1.287 GB, free: 8.496 MB / 0.9825 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.0007096/0.316, allocations: 462.8 kB / 1.288 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.316, allocations: 8.031 kB / 1.288 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/0.3161, allocations: 24.78 kB / 1.288 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.3163, allocations: 130.9 kB / 1.288 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.3163, allocations: 16.11 kB / 1.288 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.551e-05/0.3163, allocations: 20 kB / 1.288 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.3165, allocations: 87.03 kB / 1.288 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.3165, allocations: 4 kB / 1.288 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3165, allocations: 0 / 1.288 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3165, allocations: 0 / 1.288 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.3167, allocations: 63.86 kB / 1.288 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006564/0.3173, allocations: 376.2 kB / 1.288 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.3175, allocations: 70.53 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.854e-05/0.3176, allocations: 28.91 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.3176, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.3178, allocations: 111.3 kB / 1.288 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.452e-06/0.3178, allocations: 0 / 1.288 GB, free: 6.992 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.00037/0.3182, allocations: 176.9 kB / 1.289 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.3183, allocations: 63.39 kB / 1.289 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.3184, allocations: 156.9 kB / 1.289 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.3185, allocations: 37.7 kB / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.275e-05/0.3185, allocations: 112.4 kB / 1.289 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.189e-05/0.3186, allocations: 27.84 kB / 1.289 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.3187, allocations: 77.67 kB / 1.289 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3189, allocations: 322.8 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.3192, allocations: 185 kB / 1.29 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003188/0.3195, allocations: 243 kB / 1.29 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.3198, allocations: 249.5 kB / 1.29 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.3198, allocations: 4 kB / 1.29 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007399/0.3206, allocations: 495.4 kB / 1.291 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.101e-05/0.3206, allocations: 97.09 kB / 1.291 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3207, allocations: 192 / 1.291 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3207, allocations: 11.98 kB / 1.291 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.623e-05/0.3207, allocations: 15.94 kB / 1.291 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.3207, allocations: 4 kB / 1.291 GB, free: 4.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.3212, allocations: 79.8 kB / 1.291 GB, free: 4.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.573e-05/0.3213, allocations: 19.98 kB / 1.291 GB, free: 4.461 MB / 0.9825 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.0001425/0.3214, allocations: 145.8 kB / 1.291 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.3214, allocations: 11.89 kB / 1.291 GB, free: 4.297 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.103e-05/0.3215, allocations: 16.78 kB / 1.291 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3215, allocations: 0 / 1.291 GB, free: 4.281 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.3215, allocations: 4 kB / 1.291 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.3215, allocations: 0 / 1.291 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.3217, allocations: 153.2 kB / 1.291 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3217, allocations: 7.938 kB / 1.291 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-05/0.3217, allocations: 8 kB / 1.291 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.3217, allocations: 11.88 kB / 1.291 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.3217, allocations: 3.984 kB / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3217, allocations: 0 / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3217, allocations: 0 / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.322, allocations: 169 kB / 1.291 GB, free: 3.883 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.24e-05/0.322, allocations: 15.84 kB / 1.291 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.3221, allocations: 4 kB / 1.291 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.38e-05/0.3221, allocations: 4 kB / 1.291 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.249e-05/0.3221, allocations: 15.97 kB / 1.291 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.3222, allocations: 4 kB / 1.291 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.356e-05/0.3222, allocations: 103.3 kB / 1.291 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3222, allocations: 4 kB / 1.291 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002899/0.3225, allocations: 51.98 kB / 1.291 GB, free: 3.684 MB / 0.9825 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.0001711/0.3227, allocations: 112.8 kB / 1.292 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006332/0.3233, allocations: 427.2 kB / 1.292 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3233, allocations: 0 / 1.292 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.3235, allocations: 55.91 kB / 1.292 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.3237, allocations: 30.33 kB / 1.292 GB, free: 3.012 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005373/0.3243, allocations: 265.1 kB / 1.292 GB, free: 2.719 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.192e-05/0.3244, allocations: 94.28 kB / 1.292 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.444e-05/0.3244, allocations: 23.42 kB / 1.292 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3244, allocations: 0 / 1.292 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of Templates: time 0.004628/0.329, allocations: 2.267 MB / 1.295 GB, free: 344 kB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.24970736913383]