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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001669/0.001669, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.538/1.538, allocations: 222.9 MB / 239.9 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.916/2.916, allocations: 461.9 MB / 0.7344 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.48 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3685, allocations: 157.4 MB / 1.052 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator): time 0.002463/0.371, allocations: 0.7287 MB / 1.053 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.3722, allocations: 0.8429 MB / 1.054 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.53e-05/0.3723, allocations: 7.938 kB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.3724, allocations: 3.984 kB / 1.054 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.3725, allocations: 3.938 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.3727, allocations: 19.98 kB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.3728, allocations: 71.83 kB / 1.054 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.373, allocations: 31.98 kB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.939e-05/0.3731, allocations: 39.83 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.3732, allocations: 43.83 kB / 1.054 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.671e-05/0.3732, allocations: 8 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.911e-05/0.3733, allocations: 4 kB / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.406e-05/0.3734, allocations: 23.98 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.457e-05/0.3734, allocations: 35.8 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.3736, allocations: 84.02 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3736, allocations: 0 / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.018e-06/0.3736, allocations: 4 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.3736, allocations: 0 / 1.054 GB, free: 6.727 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.0007368/0.3743, allocations: 399.2 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.3744, allocations: 12.62 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.191e-05/0.3745, allocations: 38.75 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.3745, allocations: 8.844 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.3748, allocations: 196.2 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.3748, allocations: 8.312 kB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.3748, allocations: 4.375 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.3755, allocations: 155.8 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3755, allocations: 7.938 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.385e-05/0.3755, allocations: 7.984 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.3755, allocations: 4 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/0.376, allocations: 151.8 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006346/0.3767, allocations: 448.7 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.377, allocations: 113.2 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.3773, allocations: 81.62 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.3773, allocations: 7.938 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.3773, allocations: 30.56 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.3773, allocations: 0 / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0007466/0.3781, allocations: 225.4 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.3782, allocations: 81.11 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.3783, allocations: 137.6 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.3783, allocations: 25.7 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.141e-05/0.3784, allocations: 92.05 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.3784, allocations: 8.156 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/0.3785, allocations: 29.64 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3786, allocations: 318.8 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.3788, allocations: 63.91 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.379, allocations: 73.64 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.3794, allocations: 137.5 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3794, allocations: 0 / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0006062/0.38, allocations: 161.5 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.3801, allocations: 4 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3801, allocations: 4 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3801, allocations: 4.031 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.3803, allocations: 27.94 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.3803, allocations: 7.938 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.3804, allocations: 15.92 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.3805, allocations: 4.062 kB / 1.057 GB, free: 3.422 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.0001205/0.3806, allocations: 133.8 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.3806, allocations: 7.906 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.3807, allocations: 7.531 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3807, allocations: 0 / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3807, allocations: 7.938 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.3807, allocations: 0 / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.381, allocations: 193.8 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.381, allocations: 4 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.3811, allocations: 23.97 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3811, allocations: 3.984 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.3812, allocations: 4 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3812, allocations: 0 / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3812, allocations: 3.938 kB / 1.058 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005378/0.3817, allocations: 334.6 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.3818, allocations: 85.02 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.883e-05/0.3818, allocations: 384 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.382, allocations: 19.97 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.095e-05/0.3821, allocations: 31.91 kB / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.3821, allocations: 0 / 1.058 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.469e-05/0.3821, allocations: 103.2 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3821, allocations: 0 / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002752/0.3824, allocations: 12 kB / 1.058 GB, free: 2.371 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.0008146/0.3832, allocations: 0.8716 MB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004371/0.3837, allocations: 143.8 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.3837, allocations: 0 / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.3839, allocations: 92.02 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.3843, allocations: 9.312 kB / 1.059 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.3865, allocations: 1.707 MB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3868, allocations: 0.7002 MB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.459e-05/0.3869, allocations: 23.97 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.398e-05/0.387, allocations: 19.44 kB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.387, allocations: 0 / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/0.3992, allocations: 2.153 MB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003344/0.3996, allocations: 230.8 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.229/2.628, allocations: 6.031 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator.fmu > 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/jenkins1/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