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.007733/0.007733, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.001748/0.001748, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.792/2.792, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 63.91 kB / 1.054 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3738, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator): time 0.002111/0.376, allocations: 0.6707 MB / 1.208 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001133/0.3771, allocations: 0.8234 MB / 1.209 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.258e-05/0.3772, allocations: 0 / 1.209 GB, free: 8.656 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.3773, allocations: 7.922 kB / 1.209 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.3775, allocations: 15.92 kB / 1.209 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001362/0.3776, allocations: 15.98 kB / 1.209 GB, free: 8.617 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.3778, allocations: 79.75 kB / 1.209 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.3779, allocations: 39.97 kB / 1.209 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.55e-05/0.378, allocations: 31.91 kB / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.3781, allocations: 35.91 kB / 1.209 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.3782, allocations: 8 kB / 1.209 GB, free: 8.426 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.3782, allocations: 4 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.566e-05/0.3783, allocations: 35.83 kB / 1.209 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.794e-05/0.3783, allocations: 31.8 kB / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.3785, allocations: 95.95 kB / 1.209 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3785, allocations: 0 / 1.209 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.126e-06/0.3785, allocations: 4 kB / 1.209 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.3785, allocations: 0 / 1.209 GB, free: 8.258 MB / 0.9669 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.0007185/0.3792, allocations: 399.2 kB / 1.209 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/0.3793, allocations: 12.62 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.674e-05/0.3794, allocations: 38.73 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.3794, allocations: 8.844 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.3796, allocations: 192.2 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.3797, allocations: 8.312 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.3797, allocations: 4.375 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.3801, allocations: 167.8 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3801, allocations: 3.938 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3801, allocations: 0 / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.3801, allocations: 4 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000452/0.3806, allocations: 163.7 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005986/0.3812, allocations: 440.7 kB / 1.21 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.3815, allocations: 117.1 kB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.3817, allocations: 73.7 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.3817, allocations: 0 / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.3818, allocations: 38.5 kB / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.3818, allocations: 0 / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0007625/0.3826, allocations: 229.3 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.3826, allocations: 85.11 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.3827, allocations: 125.8 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3827, allocations: 25.7 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.3828, allocations: 108.1 kB / 1.211 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.3828, allocations: 11.84 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.3829, allocations: 21.7 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.383, allocations: 318.8 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.3832, allocations: 59.92 kB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.3834, allocations: 81.62 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.3838, allocations: 129.5 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3838, allocations: 0 / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004555/0.3843, allocations: 161.5 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3843, allocations: 4 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3843, allocations: 0 / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.3843, allocations: 4 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3845, allocations: 23.91 kB / 1.212 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.3845, allocations: 3.938 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.3847, allocations: 27.94 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.3847, allocations: 8.375 kB / 1.212 GB, free: 4.949 MB / 0.9669 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.0001072/0.3848, allocations: 125.8 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.301e-05/0.3848, allocations: 0 / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/0.3849, allocations: 15.52 kB / 1.212 GB, free: 4.797 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3849, allocations: 3.938 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3849, allocations: 3.938 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3849, allocations: 4 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.3851, allocations: 193.8 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3852, allocations: 0 / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.3853, allocations: 23.97 kB / 1.212 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3853, allocations: 0 / 1.212 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.3853, allocations: 0 / 1.212 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3853, allocations: 4 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3853, allocations: 3.938 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005184/0.3859, allocations: 342.5 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.3859, allocations: 81.11 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.3859, allocations: 3.984 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.3861, allocations: 15.98 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.222e-05/0.3862, allocations: 27.89 kB / 1.213 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.3862, allocations: 8 kB / 1.213 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.94e-05/0.3863, allocations: 95.27 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3863, allocations: 0 / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002712/0.3865, allocations: 11.91 kB / 1.213 GB, free: 3.906 MB / 0.9669 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.00083/0.3874, allocations: 0.8758 MB / 1.214 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004636/0.3879, allocations: 139.8 kB / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3879, allocations: 128 / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002456/0.3881, allocations: 91.89 kB / 1.214 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000333/0.3885, allocations: 17.92 kB / 1.214 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.3907, allocations: 1.701 MB / 1.216 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.391, allocations: 0.7002 MB / 1.216 GB, free: 252 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.639e-05/0.3911, allocations: 24.25 kB / 1.216 GB, free: 228 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.663e-05/0.3911, allocations: 19.44 kB / 1.216 GB, free: 208 kB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.3911, allocations: 0 / 1.216 GB, free: 208 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.4101, allocations: 2.467 MB / 1.219 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.449/7.859, allocations: 1.75 kB / 1.219 GB, free: 13.88 MB / 0.9825 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