Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Routing.Validation.IntegerExtractor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|extIndInt.u.1.|extIndInt.u.2.|extIndInt.u.3.|extIndInt.u.4.|extIndInt.index|extIndInt.y|extIndInt1.index|extIndInt1.y|extIndInt2.index|extIndInt2.y|extIndInt3.index|extIndInt3.y|extIndInt4.index|extIndInt4.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|extIndInt.u.1.|extIndInt.u.2.|extIndInt.u.3.|extIndInt.u.4.|extIndInt.index|extIndInt.y|extIndInt1.index|extIndInt1.y|extIndInt2.index|extIndInt2.y|extIndInt3.index|extIndInt3.y|extIndInt4.index|extIndInt4.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001632/0.001632, allocations: 198.4 kB / 16.79 MB, free: 6.809 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.449/1.449, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.888/2.888, allocations: 461.8 MB / 0.7348 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 68.78 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2954, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor): time 0.003454/0.2989, allocations: 1.198 MB / 1.054 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003173/0.3021, allocations: 1.576 MB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000188/0.3023, allocations: 4 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.3026, allocations: 23.73 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.3028, allocations: 39.7 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.3042, allocations: 455.7 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007043/0.3049, allocations: 0.5152 MB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003922/0.3053, allocations: 152.3 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000374/0.3057, allocations: 187.4 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003697/0.3061, allocations: 171.3 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.3062, allocations: 28 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.3064, allocations: 43.98 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.3065, allocations: 71.69 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000307/0.3068, allocations: 195.1 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005417/0.3074, allocations: 475.2 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3074, allocations: 0 / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3074, allocations: 0 / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.444e-05/0.3074, allocations: 4 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001395/0.3088, allocations: 0.7434 MB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3089, allocations: 11.97 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.3091, allocations: 48.47 kB / 1.059 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.3105, allocations: 407.9 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.722e-05/0.3105, allocations: 24.81 kB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3106, allocations: 36.38 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000527/0.3112, allocations: 255.8 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3112, allocations: 3.938 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.3112, allocations: 8 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3113, allocations: 4 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003451/0.3116, allocations: 165.6 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.3134, allocations: 0.8451 MB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/0.3139, allocations: 226.7 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003594/0.3143, allocations: 215.1 kB / 1.061 GB, free: 24 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.3143, allocations: 4 kB / 1.061 GB, free: 20 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004616/0.3148, allocations: 251.8 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=28): time 2.344e-06/0.3148, allocations: 0 / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.00101/0.3158, allocations: 430.9 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.3159, allocations: 118.7 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/0.3164, allocations: 320.4 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.893e-05/0.3165, allocations: 41.69 kB / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.3167, allocations: 180.5 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.602e-05/0.3168, allocations: 63.19 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/0.3171, allocations: 145.9 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001712/0.3173, allocations: 342.8 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/0.3179, allocations: 204.7 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006962/0.3186, allocations: 329 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009305/0.3195, allocations: 0.5272 MB / 1.063 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3195, allocations: 0 / 1.063 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001582/0.3211, allocations: 0.7322 MB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001199/0.3213, allocations: 131.2 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.3213, allocations: 4 kB / 1.064 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.3213, allocations: 8 kB / 1.064 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.3216, allocations: 55.91 kB / 1.064 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.082e-05/0.3216, allocations: 15.88 kB / 1.064 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009204/0.3226, allocations: 131.5 kB / 1.065 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.3227, allocations: 63.92 kB / 1.065 GB, free: 11.72 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,conInt.y,conInt3.y,conInt2.y,extIndInt.u[4],extIndInt.u[1],extIndInt1.u[4],extIndInt2.u[4],extIndInt3.u[4],extIndInt4.u[4],extIndInt1.u[1],extIndInt2.u[1],extIndInt3.u[1],extIndInt4.u[1],intPul3.booPul.y,$PRE.intPul3.booPul.y,intPul3.y,intPul2.booPul.y,$PRE.intPul2.booPul.y,intPul2.y,intPul1.booPul.y,$PRE.intPul1.booPul.y,intPul.booPul.y,$PRE.intPul.booPul.y,extIndInt4.y,extIndInt4.u[3],extIndInt4.u[2],extIndInt3.y,extIndInt3.u[3],extIndInt3.u[2],extIndInt2.y,extIndInt2.u[3],extIndInt2.u[2],extIndInt1.y,extIndInt1.u[3],extIndInt1.u[2],extIndInt.u[3],extIndInt.u[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 4 * 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.0003342/0.323, allocations: 193.6 kB / 1.065 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.009e-05/0.3231, allocations: 39.61 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007018/0.3238, allocations: 353.8 kB / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.3239, allocations: 4 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3239, allocations: 3.938 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3239, allocations: 0 / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.3252, allocations: 0.7602 MB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3252, allocations: 0 / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.3254, allocations: 43.86 kB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.3254, allocations: 7.984 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3254, allocations: 8 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.3254, allocations: 4 kB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3255, allocations: 7.938 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007388/0.3262, allocations: 423 kB / 1.066 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.3263, allocations: 116.5 kB / 1.066 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.88e-05/0.3264, allocations: 7.984 kB / 1.066 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.3266, allocations: 11.94 kB / 1.066 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.373e-05/0.3267, allocations: 23.97 kB / 1.067 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.3267, allocations: 15.98 kB / 1.067 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002688/0.327, allocations: 215.1 kB / 1.067 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.327, allocations: 0 / 1.067 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005965/0.3276, allocations: 99.94 kB / 1.067 GB, free: 9.309 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 (extIndInt.u[2],extIndInt.u[3],$cse1,$cse2,$cse3,$cse4,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,extIndInt1.u[2],extIndInt1.u[3],extIndInt1.y,extIndInt2.u[2],extIndInt2.u[3],extIndInt2.y,extIndInt3.u[2],extIndInt3.u[3],extIndInt3.y,extIndInt4.u[2],extIndInt4.u[3],extIndInt4.y,intPul.booPul.y,intPul1.booPul.y,intPul2.y,intPul2.booPul.y,intPul3.y,intPul3.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002104/0.3278, allocations: 121.4 kB / 1.067 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001252/0.3291, allocations: 0.6779 MB / 1.068 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3291, allocations: 0 / 1.068 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.3295, allocations: 151.9 kB / 1.068 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007468/0.3302, allocations: 73.28 kB / 1.068 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.3315, allocations: 0.6764 MB / 1.068 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.3319, allocations: 0.7849 MB / 1.069 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.783e-05/0.332, allocations: 35.44 kB / 1.069 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.332, allocations: 0 / 1.069 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of Templates: time 0.01245/0.3445, allocations: 4.949 MB / 1.074 GB, free: 1.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerExtractor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerExtractor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches