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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002735/0.002735, allocations: 212.6 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.544/1.544, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.393/3.393, allocations: 0.5107 GB / 0.8158 GB, free: 17.88 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 68.52 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4022, allocations: 181.9 MB / 1.363 GB, free: 14.15 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002238/0.4045, allocations: 0.6496 MB / 1.364 GB, free: 13.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.4057, allocations: 0.8241 MB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.735e-05/0.4057, allocations: 0 / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.571e-05/0.4058, allocations: 0 / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.269e-05/0.4058, allocations: 7.938 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000132/0.406, allocations: 7.984 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.295e-05/0.4061, allocations: 27.86 kB / 1.365 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.863e-05/0.4062, allocations: 4 kB / 1.365 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.843e-05/0.4062, allocations: 11.98 kB / 1.365 GB, free: 12.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.923e-05/0.4063, allocations: 11.94 kB / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.42e-05/0.4063, allocations: 0 / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.476e-06/0.4063, allocations: 4 kB / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.632e-05/0.4064, allocations: 11.98 kB / 1.365 GB, free: 12.58 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.63e-05/0.4064, allocations: 11.92 kB / 1.365 GB, free: 12.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.4065, allocations: 27.89 kB / 1.365 GB, free: 12.54 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4065, allocations: 0 / 1.365 GB, free: 12.54 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.954e-06/0.4065, allocations: 3.938 kB / 1.365 GB, free: 12.54 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.4065, allocations: 0 / 1.365 GB, free: 12.54 MB / 1.061 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.000485/0.407, allocations: 270.3 kB / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.4071, allocations: 12.03 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.614e-05/0.4071, allocations: 34.75 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.4071, allocations: 0.9375 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.4073, allocations: 122.4 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.4073, allocations: 4.375 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.4073, allocations: 4.375 kB / 1.365 GB, free: 12.03 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.4075, allocations: 54.23 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.4075, allocations: 3.938 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.4075, allocations: 0 / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4076, allocations: 4 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.4077, allocations: 39.95 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.4082, allocations: 243.9 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.4083, allocations: 30.56 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.344e-05/0.4084, allocations: 20.89 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.4084, allocations: 4 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.4084, allocations: 34.56 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.4084, allocations: 0 / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0003435/0.4088, allocations: 77.59 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.4088, allocations: 55.39 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.4089, allocations: 101.9 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.4089, allocations: 25.7 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.356e-05/0.409, allocations: 88.08 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.409, allocations: 4.125 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-05/0.409, allocations: 13.72 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4092, allocations: 318.8 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.626e-05/0.4093, allocations: 11.98 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.082e-05/0.4093, allocations: 15.98 kB / 1.366 GB, free: 10.79 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.4095, allocations: 40.75 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4095, allocations: 4.062 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001924/0.4097, allocations: 65.61 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.4097, allocations: 4 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.4097, allocations: 0 / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.4097, allocations: 4 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.228e-05/0.4098, allocations: 4.25 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.4098, allocations: 0 / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.914e-05/0.4098, allocations: 11.98 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.4098, allocations: 4.031 kB / 1.367 GB, free: 10.64 MB / 1.061 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 9.458e-05/0.4099, allocations: 121.7 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.41, allocations: 3.938 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.731e-05/0.41, allocations: 11.08 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.41, allocations: 0 / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.41, allocations: 0 / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.41, allocations: 0 / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.4102, allocations: 132.7 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4102, allocations: 0 / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.002e-05/0.4102, allocations: 4 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.4102, allocations: 11.98 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.4102, allocations: 3.938 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4102, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4102, allocations: 0 / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.4105, allocations: 155.5 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.356e-05/0.4105, allocations: 7.984 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.4105, allocations: 0 / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.986e-05/0.4106, allocations: 4 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.4106, allocations: 8.016 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.4107, allocations: 0 / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.899e-05/0.4107, allocations: 83.28 kB / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4107, allocations: 0 / 1.367 GB, free: 10.03 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002388/0.4109, allocations: 7.953 kB / 1.367 GB, free: 10.02 MB / 1.061 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.0006283/0.4116, allocations: 0.6928 MB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002179/0.4118, allocations: 31.98 kB / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4118, allocations: 4 kB / 1.368 GB, free: 9.266 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.393e-05/0.4119, allocations: 15.98 kB / 1.368 GB, free: 9.25 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.4122, allocations: 4 kB / 1.368 GB, free: 9.246 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.4139, allocations: 1.222 MB / 1.369 GB, free: 7.945 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.894e-05/0.414, allocations: 63.34 kB / 1.369 GB, free: 7.863 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.445e-05/0.4141, allocations: 3.984 kB / 1.369 GB, free: 7.859 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.301e-05/0.4141, allocations: 11.53 kB / 1.369 GB, free: 7.848 MB / 1.061 GB Notification: Performance of SimCode: time 8.91e-07/0.4141, allocations: 0 / 1.369 GB, free: 7.848 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03235/0.4465, allocations: 1.84 MB / 1.371 GB, free: 6.145 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.83, allocations: 0 / 1.371 GB, free: 6.145 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.904751401860267]