Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.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.RealScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",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.001687/0.001687, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 187.3 kB / 16.66 MB, free: 6.59 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.534/1.534, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.859/2.859, allocations: 469.4 MB / 0.7421 GB, free: 7.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002356, allocations: 67.89 kB / 1.064 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3822/0.3846, allocations: 159.1 MB / 1.22 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002298/0.387, allocations: 0.6582 MB / 1.22 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3883, allocations: 0.7825 MB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.241e-05/0.3885, allocations: 0 / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3886, allocations: 3.938 kB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.408e-05/0.3887, allocations: 11.92 kB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000157/0.3888, allocations: 7.984 kB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.495e-05/0.3889, allocations: 27.92 kB / 1.221 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.3891, allocations: 4 kB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.395e-05/0.3891, allocations: 11.94 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.216e-05/0.3892, allocations: 3.984 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.3892, allocations: 4 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.098e-05/0.3893, allocations: 4 kB / 1.221 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.77e-05/0.3893, allocations: 11.92 kB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.957e-05/0.3894, allocations: 11.94 kB / 1.221 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.3895, allocations: 39.81 kB / 1.221 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3895, allocations: 4 kB / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.484e-06/0.3895, allocations: 0 / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.3895, allocations: 0 / 1.221 GB, free: 13.12 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005352/0.3901, allocations: 347.3 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3901, allocations: 8.031 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.656e-05/0.3902, allocations: 30.75 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.3902, allocations: 4.938 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.3904, allocations: 168.4 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.3904, allocations: 12.31 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.3904, allocations: 384 / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.3906, allocations: 58.23 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3907, allocations: 3.938 kB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.3907, allocations: 0 / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3907, allocations: 0 / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.3909, allocations: 35.95 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004392/0.3913, allocations: 284.7 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.3914, allocations: 30.56 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.607e-05/0.3915, allocations: 28.83 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.145e-05/0.3916, allocations: 0 / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.3916, allocations: 34.56 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3916, allocations: 0 / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0003373/0.3919, allocations: 77.58 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.392, allocations: 55.41 kB / 1.222 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.336e-05/0.3921, allocations: 97.86 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.3921, allocations: 25.83 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.11e-05/0.3922, allocations: 100.1 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.534e-05/0.3922, allocations: 0 / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.3922, allocations: 9.719 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3923, allocations: 322.8 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.861e-05/0.3924, allocations: 11.98 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.377e-05/0.3925, allocations: 15.97 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.3927, allocations: 36.89 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3927, allocations: 0 / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001921/0.3929, allocations: 73.78 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3929, allocations: 8 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3929, allocations: 0 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.3929, allocations: 0 / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.714e-05/0.393, allocations: 16.02 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.393, allocations: 0 / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.37e-05/0.3931, allocations: 4 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.3931, allocations: 3.938 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 8.514e-05/0.3932, allocations: 118.3 kB / 1.223 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.3932, allocations: 3.984 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.3932, allocations: 3.125 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3932, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3932, allocations: 8 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3933, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.3934, allocations: 157.6 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3934, allocations: 0 / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.478e-05/0.3935, allocations: 7.984 kB / 1.223 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3935, allocations: 4 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.3935, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3935, allocations: 3.938 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3935, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.3938, allocations: 167.4 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.256e-05/0.3938, allocations: 77.11 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.3938, allocations: 4 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.451e-05/0.3939, allocations: 7.984 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.394, allocations: 0 / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-06/0.394, allocations: 0 / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.42e-05/0.394, allocations: 87.3 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.394, allocations: 4 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002491/0.3943, allocations: 7.953 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0005586/0.3948, allocations: 0.6889 MB / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002131/0.3951, allocations: 36 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3951, allocations: 0 / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.512e-05/0.3952, allocations: 19.97 kB / 1.224 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.3955, allocations: 6.062 kB / 1.224 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.3969, allocations: 1.232 MB / 1.226 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.3972, allocations: 0.6768 MB / 1.226 GB, free: 7.496 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.977e-05/0.3972, allocations: 4 kB / 1.226 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.967e-05/0.3973, allocations: 11.42 kB / 1.226 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3973, allocations: 0 / 1.226 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.4152, allocations: 1.331 MB / 1.228 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/8.046, allocations: 11.08 kB / 1.228 GB, free: 6.285 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_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_RealScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches