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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001813/0.001813, 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.001988/0.001988, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.942/2.942, allocations: 469.4 MB / 0.742 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 66 kB / 0.9083 GB, free: 34.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.326, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002192/0.3282, allocations: 0.6545 MB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3293, allocations: 0.7885 MB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.09e-05/0.3294, allocations: 7.938 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.341e-05/0.3295, allocations: 4 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.33e-05/0.3295, allocations: 3.938 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000122/0.3297, allocations: 7.984 kB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.018e-05/0.3297, allocations: 23.92 kB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3299, allocations: 11.98 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.244e-05/0.3299, allocations: 11.94 kB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.004e-05/0.33, allocations: 3.984 kB / 1.065 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.33, allocations: 4 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.976e-06/0.33, allocations: 3.938 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.876e-05/0.3301, allocations: 15.98 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.3301, allocations: 11.94 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.511e-05/0.3302, allocations: 31.88 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3302, allocations: 0 / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.125e-06/0.3303, allocations: 4 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.3303, allocations: 0 / 1.065 GB, free: 12.92 MB / 0.8262 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.0004627/0.3307, allocations: 339.7 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3308, allocations: 12.03 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.721e-05/0.3308, allocations: 34.75 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.374e-05/0.3309, allocations: 0.9375 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.331, allocations: 176.3 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.331, allocations: 4.375 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.331, allocations: 384 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.3312, allocations: 62.17 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3312, allocations: 3.938 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.3313, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3313, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.3314, allocations: 39.95 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003985/0.3318, allocations: 268.9 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.332, allocations: 38.48 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.331e-05/0.332, allocations: 24.91 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.3321, allocations: 0 / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.3321, allocations: 38.48 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3321, allocations: 0 / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0003291/0.3324, allocations: 73.59 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.3325, allocations: 55.53 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.157e-05/0.3326, allocations: 106 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.3326, allocations: 25.7 kB / 1.066 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.828e-05/0.3326, allocations: 95.98 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.3327, allocations: 3.938 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.3327, allocations: 13.7 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.809e-05/0.3328, allocations: 314.8 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-05/0.3329, allocations: 23.98 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.044e-05/0.333, allocations: 16.05 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.3331, allocations: 36.81 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3331, allocations: 0 / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001889/0.3333, allocations: 61.61 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.3333, allocations: 12.09 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.3334, allocations: 3.984 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3334, allocations: 0 / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.946e-05/0.3335, allocations: 4 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3335, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.587e-05/0.3335, allocations: 7.984 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.3335, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 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 7.408e-05/0.3336, allocations: 117.8 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.3336, allocations: 7.906 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.808e-05/0.3337, allocations: 3.125 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3337, allocations: 3.984 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3337, allocations: 0 / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.3337, allocations: 4 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.3338, allocations: 157.6 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3338, allocations: 0 / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.3339, allocations: 7.984 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.3339, allocations: 4 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.3339, allocations: 0 / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3339, allocations: 4 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3339, allocations: 0 / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.3342, allocations: 167.3 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.925e-05/0.3342, allocations: 77.11 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.3343, allocations: 4 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.033e-05/0.3343, allocations: 3.984 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.3344, allocations: 8.031 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.3344, allocations: 0 / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.917e-05/0.3344, allocations: 83.28 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3344, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002148/0.3347, allocations: 8 kB / 1.068 GB, free: 10.09 MB / 0.8262 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.0005166/0.3352, allocations: 0.6972 MB / 1.068 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001967/0.3354, allocations: 31.91 kB / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3354, allocations: 4 kB / 1.068 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.996e-05/0.3355, allocations: 19.92 kB / 1.068 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.3358, allocations: 12.14 kB / 1.068 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.3372, allocations: 1.215 MB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.3374, allocations: 0.6807 MB / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.981e-05/0.3375, allocations: 4.031 kB / 1.07 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.867e-05/0.3375, allocations: 11.44 kB / 1.07 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3375, allocations: 4 kB / 1.07 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01732/0.3548, allocations: 1.271 MB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.568/7.922, allocations: 7.375 kB / 1.072 GB, free: 6.121 MB / 0.8262 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