Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.IntegerVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ram.1..y|reaToInt.1..y|intRep.y.1|1.|intRep.y.2|2.|intRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ram.1..y|reaToInt.1..y|intRep.y.1|1.|intRep.y.2|2.|intRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001573/0.001573, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.398/1.398, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.763/2.763, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 70.02 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3672, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator): time 0.00189/0.3691, allocations: 0.721 MB / 1.053 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008832/0.37, allocations: 0.8351 MB / 1.054 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.528e-05/0.3701, allocations: 4 kB / 1.054 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.3702, allocations: 7.938 kB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.45e-05/0.3703, allocations: 3.938 kB / 1.054 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001034/0.3704, allocations: 11.98 kB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.3705, allocations: 79.75 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.3706, allocations: 35.89 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.197e-05/0.3707, allocations: 27.91 kB / 1.054 GB, free: 7.113 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.368e-05/0.3708, allocations: 35.84 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.3708, allocations: 4 kB / 1.054 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.096e-05/0.3709, allocations: 4 kB / 1.054 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.159e-05/0.3709, allocations: 27.89 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.976e-05/0.371, allocations: 35.8 kB / 1.054 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.3711, allocations: 83.75 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3711, allocations: 0 / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3711, allocations: 0 / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.3711, allocations: 0 / 1.054 GB, free: 6.926 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006108/0.3717, allocations: 399.5 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.3718, allocations: 11.97 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.866e-05/0.3718, allocations: 8.844 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.372, allocations: 192.4 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.372, allocations: 4.375 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.372, allocations: 4.375 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.3724, allocations: 159.8 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3725, allocations: 192 / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.3725, allocations: 3.938 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.3725, allocations: 4 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.3729, allocations: 155.8 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000562/0.3735, allocations: 456.6 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.3738, allocations: 117.1 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.374, allocations: 81.69 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.3741, allocations: 4 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.123e-05/0.3741, allocations: 30.56 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3741, allocations: 0 / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0007427/0.3748, allocations: 229.6 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.3749, allocations: 77.11 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.974e-05/0.375, allocations: 133.6 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.375, allocations: 29.64 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.3751, allocations: 99.97 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.3751, allocations: 7.906 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.3751, allocations: 21.7 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.039e-05/0.3752, allocations: 322.9 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.3755, allocations: 63.91 kB / 1.056 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.3757, allocations: 73.64 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.3761, allocations: 133.6 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3761, allocations: 0 / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004485/0.3765, allocations: 161.4 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3765, allocations: 8.062 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.3766, allocations: 4 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3766, allocations: 0 / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3768, allocations: 19.97 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.3768, allocations: 11.92 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.3769, allocations: 15.92 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3769, allocations: 0 / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (intRep.y[3,1],intRep.y[3,2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001105/0.377, allocations: 141.8 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.3771, allocations: 7.906 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.3771, allocations: 7.531 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3771, allocations: 4 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3771, allocations: 3.938 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3771, allocations: 0 / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.3774, allocations: 193.8 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3774, allocations: 0 / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.3775, allocations: 19.97 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3776, allocations: 0 / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3776, allocations: 11.98 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3776, allocations: 0 / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3776, allocations: 3.938 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004967/0.3781, allocations: 338.7 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.3781, allocations: 85.02 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.3782, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.3783, allocations: 15.97 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.438e-05/0.3784, allocations: 31.84 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3784, allocations: 4 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.344e-05/0.3785, allocations: 103.6 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3785, allocations: 0 / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002771/0.3788, allocations: 12 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (intRep.y[3,1],intRep.y[3,2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000114/0.3789, allocations: 107.2 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004554/0.3794, allocations: 135.8 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3794, allocations: 0 / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002437/0.3796, allocations: 92.02 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.38, allocations: 8 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004598/0.3805, allocations: 224.2 kB / 1.058 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.3807, allocations: 0.7074 MB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.257e-05/0.3808, allocations: 27.92 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.3808, allocations: 11.42 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of SimCode: time 3.01e-07/0.3808, allocations: 0 / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of Templates: time 0.003167/0.384, allocations: 1.061 MB / 1.06 GB, free: 208 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches