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.004528/0.004528, allocations: 96.11 kB / 15.73 MB, free: 6.039 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.001033/0.001033, allocations: 201.7 kB / 16.68 MB, free: 5.969 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.708/2.708, allocations: 437 MB / 0.7105 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001322, allocations: 67.89 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2726, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.001609/0.2743, allocations: 0.6489 MB / 1.167 GB, free: 6.699 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008008/0.2751, allocations: 0.7966 MB / 1.168 GB, free: 5.891 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.023e-05/0.2751, allocations: 3.938 kB / 1.168 GB, free: 5.887 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 7.766e-05/0.2752, allocations: 0 / 1.168 GB, free: 5.887 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.245e-05/0.2753, allocations: 7.938 kB / 1.168 GB, free: 5.879 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 9.211e-05/0.2754, allocations: 8 kB / 1.168 GB, free: 5.871 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.772e-05/0.2754, allocations: 27.86 kB / 1.168 GB, free: 5.844 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.047e-05/0.2755, allocations: 7.984 kB / 1.168 GB, free: 5.836 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.287e-05/0.2756, allocations: 8 kB / 1.168 GB, free: 5.828 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.503e-05/0.2756, allocations: 15.92 kB / 1.168 GB, free: 5.812 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.2757, allocations: 4 kB / 1.168 GB, free: 5.809 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 5.601e-06/0.2757, allocations: 0 / 1.168 GB, free: 5.809 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.2757, allocations: 11.98 kB / 1.168 GB, free: 5.797 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.719e-05/0.2757, allocations: 7.938 kB / 1.168 GB, free: 5.789 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 8.51e-05/0.2758, allocations: 40.09 kB / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2759, allocations: 0 / 1.168 GB, free: 5.75 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2759, allocations: 3.938 kB / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.2759, allocations: 0 / 1.168 GB, free: 5.746 MB / 0.92 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.0003799/0.2763, allocations: 339.5 kB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2763, allocations: 8.031 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.871e-05/0.2763, allocations: 38.75 kB / 1.168 GB, free: 5.309 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.087e-05/0.2764, allocations: 4.891 kB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.2765, allocations: 180.2 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.332e-06/0.2765, allocations: 4.375 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.2765, allocations: 4.375 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.2767, allocations: 54.23 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2767, allocations: 3.938 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.2767, allocations: 4 kB / 1.168 GB, free: 5.016 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.2768, allocations: 4 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.2769, allocations: 35.95 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003574/0.2773, allocations: 280.8 kB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.748e-05/0.2774, allocations: 30.56 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.171e-05/0.2775, allocations: 20.91 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.2775, allocations: 3.984 kB / 1.169 GB, free: 4.586 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.2775, allocations: 34.56 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.452e-06/0.2775, allocations: 3.938 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0003168/0.2778, allocations: 77.59 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.2779, allocations: 55.39 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.171e-05/0.278, allocations: 101.9 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.278, allocations: 25.83 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.74e-05/0.278, allocations: 88.09 kB / 1.169 GB, free: 4.16 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.278, allocations: 3.984 kB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.2781, allocations: 13.72 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.078e-05/0.2782, allocations: 318.8 kB / 1.169 GB, free: 3.816 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.833e-05/0.2783, allocations: 11.98 kB / 1.169 GB, free: 3.805 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.868e-05/0.2783, allocations: 15.98 kB / 1.169 GB, free: 3.789 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.2785, allocations: 40.88 kB / 1.169 GB, free: 3.746 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2785, allocations: 3.938 kB / 1.169 GB, free: 3.742 MB / 0.92 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001757/0.2787, allocations: 61.61 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.2787, allocations: 7.984 kB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.2787, allocations: 0 / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2787, allocations: 0 / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.515e-05/0.2788, allocations: 12.03 kB / 1.17 GB, free: 3.656 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.2788, allocations: 0 / 1.17 GB, free: 3.656 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.74e-05/0.2789, allocations: 11.98 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.2789, allocations: 0 / 1.17 GB, free: 3.645 MB / 0.92 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.298e-05/0.279, allocations: 109.8 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.279, allocations: 7.953 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.699e-05/0.279, allocations: 7.109 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.279, allocations: 0 / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.279, allocations: 4 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.279, allocations: 0 / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.2792, allocations: 165.6 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2792, allocations: 0 / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.191e-05/0.2792, allocations: 7.984 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2793, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.2793, allocations: 0 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2793, allocations: 256 / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2793, allocations: 4 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.2795, allocations: 163.4 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-05/0.2795, allocations: 81.11 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.102e-05/0.2796, allocations: 0 / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.333e-05/0.2796, allocations: 7.984 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.2797, allocations: 0 / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.2797, allocations: 4 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.935e-05/0.2797, allocations: 87.3 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2797, allocations: 4 kB / 1.17 GB, free: 2.91 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002164/0.2799, allocations: 11.88 kB / 1.17 GB, free: 2.898 MB / 0.92 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.0004563/0.2804, allocations: 0.6967 MB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001862/0.2806, allocations: 32 kB / 1.171 GB, free: 2.141 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2806, allocations: 0 / 1.171 GB, free: 2.141 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 7.991e-05/0.2807, allocations: 15.98 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.281, allocations: 5.391 kB / 1.171 GB, free: 2.121 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.2822, allocations: 1.229 MB / 1.172 GB, free: 0.8164 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.2824, allocations: 0.6768 MB / 1.173 GB, free: 116 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.302e-05/0.2825, allocations: 4 kB / 1.173 GB, free: 112 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.2825, allocations: 11.44 kB / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.2825, allocations: 0 / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0269/0.3094, allocations: 1.304 MB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.882/8.192, allocations: 6.062 kB / 1.174 GB, free: 14.93 MB / 0.9356 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