Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.RealScalarReplicator,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,fileNamePrefix="Buildings_10_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.001082/0.001082, allocations: 108 kB / 15.6 MB, free: 132 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.001113/0.001114, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.558/2.558, allocations: 437.1 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 67.88 kB / 0.8694 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5983/0.5997, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.001727/0.6014, allocations: 0.6495 MB / 1.018 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007611/0.6022, allocations: 0.7884 MB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.537e-05/0.6023, allocations: 0 / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.521e-05/0.6024, allocations: 7.922 kB / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 1.84e-05/0.6024, allocations: 0 / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 8.807e-05/0.6025, allocations: 4 kB / 1.019 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.123e-05/0.6025, allocations: 27.92 kB / 1.019 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.982e-05/0.6026, allocations: 11.98 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.066e-05/0.6027, allocations: 15.92 kB / 1.019 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.229e-05/0.6027, allocations: 11.98 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.6027, allocations: 0 / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-06/0.6028, allocations: 8 kB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.454e-05/0.6028, allocations: 3.938 kB / 1.019 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.6028, allocations: 15.92 kB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.21e-05/0.6029, allocations: 23.91 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.6029, allocations: 4 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.484e-06/0.6029, allocations: 0 / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.6029, allocations: 3.938 kB / 1.019 GB, free: 0.918 MB / 0.7637 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.0003784/0.6033, allocations: 345.7 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.6034, allocations: 12.03 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.982e-05/0.6034, allocations: 34.75 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.105e-05/0.6034, allocations: 8.844 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.6036, allocations: 176.2 kB / 1.02 GB, free: 264 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.6036, allocations: 4.375 kB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-06/0.6036, allocations: 384 / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.6038, allocations: 58.23 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.6038, allocations: 3.938 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-06/0.6038, allocations: 0 / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.6038, allocations: 0 / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.604, allocations: 39.91 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003831/0.6044, allocations: 284.9 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.6045, allocations: 26.56 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.116e-05/0.6046, allocations: 24.91 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-06/0.6046, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.6046, allocations: 34.41 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.6046, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0003144/0.6049, allocations: 73.73 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.605, allocations: 59.34 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.345e-05/0.605, allocations: 101.8 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.6051, allocations: 25.7 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.6051, allocations: 88.14 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.6051, allocations: 3.906 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.6052, allocations: 13.72 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.6053, allocations: 326.8 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.874e-05/0.6053, allocations: 16.02 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.902e-05/0.6054, allocations: 15.92 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.6056, allocations: 32.83 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.6056, allocations: 3.984 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001762/0.6057, allocations: 61.73 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.6058, allocations: 10.03 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.6058, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.6058, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.319e-05/0.6059, allocations: 7.984 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.6059, allocations: 0 / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.48e-05/0.6059, allocations: 7.984 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-06/0.6059, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 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 6.882e-05/0.606, allocations: 122.5 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.606, allocations: 256 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.546e-05/0.6061, allocations: 7.062 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.6061, allocations: 4 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6061, allocations: 4 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.6061, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.6062, allocations: 161.6 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6062, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.101e-05/0.6063, allocations: 15.92 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.6063, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.6063, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.6063, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.6063, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002094/0.6065, allocations: 167.3 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.975e-05/0.6066, allocations: 81.11 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.6066, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.202e-05/0.6067, allocations: 15.95 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.6067, allocations: 0 / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.6067, allocations: 0 / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.608e-05/0.6067, allocations: 83.28 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6068, allocations: 3.938 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002119/0.607, allocations: 7.938 kB / 1.021 GB, free: 14.06 MB / 0.7794 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.0004355/0.6074, allocations: 0.689 MB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001952/0.6076, allocations: 35.95 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.6076, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.386e-05/0.6077, allocations: 24.02 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.608, allocations: 9.312 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.6092, allocations: 1.218 MB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.6094, allocations: 0.6846 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.004e-05/0.6094, allocations: 7.984 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.988e-05/0.6094, allocations: 7.438 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6094, allocations: 0 / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.6254, allocations: 1.254 MB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.88/7.505, allocations: 13.39 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches