Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator,fileNamePrefix="Buildings_9_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.008571/0.008571, allocations: 95.58 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.002077/0.002077, allocations: 205.6 kB / 16.68 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.447/2.447, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 64.19 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3125, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator): time 0.003032/0.3156, allocations: 0.6755 MB / 1.088 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.3173, allocations: 0.8277 MB / 1.089 GB, free: 468 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.11e-05/0.3174, allocations: 4 kB / 1.089 GB, free: 464 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.3175, allocations: 7.922 kB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.3177, allocations: 7.938 kB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.3179, allocations: 23.91 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.3181, allocations: 71.83 kB / 1.089 GB, free: 352 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.3183, allocations: 36.25 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.3184, allocations: 31.92 kB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.3186, allocations: 43.83 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.3186, allocations: 4 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.118e-05/0.3186, allocations: 11.94 kB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.3187, allocations: 27.97 kB / 1.089 GB, free: 196 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.043e-05/0.3188, allocations: 35.78 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.319, allocations: 87.69 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.319, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.292e-06/0.319, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.178e-05/0.3191, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 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.0009193/0.32, allocations: 399.1 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.136e-05/0.3201, allocations: 12.03 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.769e-05/0.3201, allocations: 46.73 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.895e-05/0.3202, allocations: 8.891 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.3205, allocations: 196.2 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.998e-05/0.3205, allocations: 8.375 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.191e-05/0.3206, allocations: 8.359 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005395/0.3211, allocations: 151.8 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.3212, allocations: 7.938 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.3212, allocations: 4 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3212, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006432/0.3219, allocations: 155.8 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008443/0.3227, allocations: 452.7 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.3232, allocations: 117.2 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.3235, allocations: 73.58 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.3235, allocations: 8 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.3236, allocations: 38.48 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.663e-06/0.3236, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.001202/0.3248, allocations: 221.6 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.3249, allocations: 85.11 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.325, allocations: 129.7 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.3251, allocations: 25.7 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.008e-05/0.3252, allocations: 100 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.3252, allocations: 7.953 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.3253, allocations: 21.7 kB / 1.091 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3254, allocations: 322.9 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.3257, allocations: 63.91 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.3261, allocations: 73.64 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006713/0.3267, allocations: 133.5 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3268, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0007158/0.3275, allocations: 165.4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3275, allocations: 4.062 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3275, allocations: 8 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3276, allocations: 0 / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.3278, allocations: 19.97 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3278, allocations: 7.938 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.328, allocations: 19.97 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.328, allocations: 0 / 1.092 GB, free: 12.77 MB / 0.8575 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.0001459/0.3282, allocations: 125.8 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/0.3283, allocations: 11.95 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.3283, allocations: 11.61 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/0.3284, allocations: 7.984 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.3284, allocations: 3.938 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3284, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004269/0.3288, allocations: 189.6 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.3289, allocations: 4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3291, allocations: 19.97 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.3291, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.3291, allocations: 12.31 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3291, allocations: 4 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.3291, allocations: 11.86 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005953/0.3297, allocations: 328.1 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.3298, allocations: 96.97 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.3298, allocations: 0 / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.33, allocations: 15.98 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3301, allocations: 31.89 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.3302, allocations: 0 / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.178e-05/0.3302, allocations: 95.27 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3302, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003471/0.3306, allocations: 15.95 kB / 1.093 GB, free: 11.7 MB / 0.8575 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.0008671/0.3315, allocations: 0.864 MB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004922/0.332, allocations: 143.8 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.332, allocations: 0 / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002468/0.3322, allocations: 87.89 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.3326, allocations: 16.17 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.335, allocations: 1.686 MB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.3353, allocations: 0.7041 MB / 1.097 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.137e-05/0.3354, allocations: 24.23 kB / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.629e-05/0.3354, allocations: 19.44 kB / 1.097 GB, free: 8.023 MB / 0.8575 GB Notification: Performance of SimCode: time 4.21e-07/0.3354, allocations: 0 / 1.097 GB, free: 8.023 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.3566, allocations: 2.406 MB / 1.099 GB, free: 5.762 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/7.956, allocations: 25.84 kB / 1.099 GB, free: 5.742 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_IntegerVectorReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches