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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> 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.009241/0.009241, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002823/0.002823, allocations: 194.3 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.839/2.839, allocations: 469.4 MB / 0.7422 GB, free: 7.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 63.91 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3741, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator): time 0.002831/0.377, allocations: 0.6686 MB / 1.22 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3785, allocations: 0.8291 MB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.94e-05/0.3786, allocations: 4 kB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.3788, allocations: 3.938 kB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.3789, allocations: 11.97 kB / 1.221 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001569/0.3791, allocations: 19.92 kB / 1.221 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001621/0.3793, allocations: 79.81 kB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.3794, allocations: 31.97 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.841e-05/0.3796, allocations: 39.84 kB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.3797, allocations: 39.91 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.3797, allocations: 4 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.822e-05/0.3797, allocations: 4 kB / 1.221 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.099e-05/0.3798, allocations: 35.89 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.995e-05/0.3799, allocations: 35.8 kB / 1.222 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.3801, allocations: 87.67 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3801, allocations: 0 / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.234e-06/0.3802, allocations: 0 / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.3802, allocations: 0 / 1.222 GB, free: 12.78 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007895/0.381, allocations: 411.1 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.381, allocations: 8.031 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.014e-05/0.3811, allocations: 46.67 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.3811, allocations: 4.891 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.3813, allocations: 192.3 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.3814, allocations: 4.375 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.3814, allocations: 12.36 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003903/0.3818, allocations: 163.4 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.3818, allocations: 3.938 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.3818, allocations: 8 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3818, allocations: 3.938 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004445/0.3823, allocations: 147.8 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005963/0.3829, allocations: 448.8 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.3832, allocations: 117.1 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.3834, allocations: 73.7 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.3835, allocations: 4 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.3835, allocations: 34.56 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.473e-06/0.3835, allocations: 0 / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0007943/0.3843, allocations: 233.3 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.3843, allocations: 77.11 kB / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.3845, allocations: 125.8 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.3845, allocations: 25.7 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.3846, allocations: 104 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.3846, allocations: 16.14 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.3847, allocations: 25.7 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3848, allocations: 314.8 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.385, allocations: 63.86 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.3853, allocations: 85.62 kB / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003828/0.3856, allocations: 125.6 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3857, allocations: 0 / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004686/0.3861, allocations: 169.4 kB / 1.224 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.3862, allocations: 8 kB / 1.225 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3862, allocations: 0 / 1.225 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3862, allocations: 0 / 1.225 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.3864, allocations: 23.97 kB / 1.225 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.3864, allocations: 7.938 kB / 1.225 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.3865, allocations: 15.97 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.3865, allocations: 64 / 1.225 GB, free: 9.469 MB / 0.9825 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.0001177/0.3867, allocations: 129.8 kB / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.817e-05/0.3867, allocations: 4 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.573e-05/0.3868, allocations: 11.52 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3868, allocations: 4 kB / 1.225 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3868, allocations: 4.312 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3868, allocations: 0 / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002805/0.3871, allocations: 197.6 kB / 1.225 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3871, allocations: 3.938 kB / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.3872, allocations: 31.91 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.3872, allocations: 4 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.3873, allocations: 0 / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.3873, allocations: 0 / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3873, allocations: 7.875 kB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005849/0.3879, allocations: 326.7 kB / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.3879, allocations: 89.06 kB / 1.225 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.388, allocations: 3.984 kB / 1.225 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.3881, allocations: 11.98 kB / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.624e-05/0.3882, allocations: 31.98 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.3882, allocations: 3.984 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.034e-05/0.3883, allocations: 95.27 kB / 1.225 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3883, allocations: 4 kB / 1.225 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000302/0.3886, allocations: 19.94 kB / 1.225 GB, free: 8.406 MB / 0.9825 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.0009012/0.3895, allocations: 0.8717 MB / 1.226 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005038/0.3901, allocations: 139.8 kB / 1.226 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3901, allocations: 0 / 1.226 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002485/0.3903, allocations: 92.02 kB / 1.227 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.3907, allocations: 19.34 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.3931, allocations: 1.688 MB / 1.228 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.3934, allocations: 0.7002 MB / 1.229 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.341e-05/0.3935, allocations: 24.23 kB / 1.229 GB, free: 4.738 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.3936, allocations: 23.42 kB / 1.229 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.3936, allocations: 0 / 1.229 GB, free: 4.715 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.4121, allocations: 2.418 MB / 1.231 GB, free: 2.434 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/8.056, allocations: 9.578 kB / 1.231 GB, free: 2.426 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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