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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001219/0.001219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001279/0.001279, allocations: 188.2 kB / 16.13 MB, free: 6.645 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.231/1.231, allocations: 222.9 MB / 239.8 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.341/2.341, allocations: 437 MB / 0.7099 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 63.89 kB / 0.8687 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5245/0.5257, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.001797/0.5275, allocations: 0.711 MB / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008892/0.5284, allocations: 0.7923 MB / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.709e-05/0.5285, allocations: 0 / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.491e-05/0.5286, allocations: 4 kB / 1.018 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.335e-05/0.5286, allocations: 4 kB / 1.018 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 9.039e-05/0.5287, allocations: 4 kB / 1.018 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.702e-05/0.5288, allocations: 23.92 kB / 1.018 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.358e-05/0.5289, allocations: 7.984 kB / 1.018 GB, free: 1.215 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.224e-05/0.5289, allocations: 11.92 kB / 1.018 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.875e-05/0.529, allocations: 11.98 kB / 1.018 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.529, allocations: 0 / 1.018 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.359e-05/0.529, allocations: 4 kB / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.5291, allocations: 11.88 kB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.294e-05/0.5291, allocations: 15.92 kB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.079e-05/0.5292, allocations: 27.91 kB / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.5292, allocations: 4 kB / 1.018 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.165e-06/0.5292, allocations: 7.922 kB / 1.018 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.5292, allocations: 0 / 1.018 GB, free: 1.121 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.0003974/0.5296, allocations: 341.8 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.5296, allocations: 8.031 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.19e-05/0.5297, allocations: 30.75 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.183e-05/0.5297, allocations: 12.84 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.5298, allocations: 172.3 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.5299, allocations: 4.375 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.685e-06/0.5299, allocations: 384 / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.53, allocations: 54.23 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.5301, allocations: 3.938 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.5301, allocations: 4 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5301, allocations: 0 / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.5302, allocations: 39.91 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003826/0.5306, allocations: 276.8 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.5308, allocations: 30.56 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.62e-05/0.5309, allocations: 28.84 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-06/0.5309, allocations: 0 / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.5309, allocations: 30.56 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.5309, allocations: 3.938 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0003102/0.5312, allocations: 73.64 kB / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.5313, allocations: 59.53 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.588e-05/0.5313, allocations: 105.8 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.5313, allocations: 25.7 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.795e-05/0.5314, allocations: 96.03 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.5314, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.842e-05/0.5314, allocations: 9.719 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.5316, allocations: 322.8 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.957e-05/0.5316, allocations: 23.92 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.475e-05/0.5317, allocations: 11.98 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.5319, allocations: 36.81 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5319, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001716/0.5321, allocations: 57.67 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.5321, allocations: 12.09 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.5321, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.5321, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.734e-05/0.5322, allocations: 7.984 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.5322, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.3e-05/0.5322, allocations: 7.984 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.5323, allocations: 0 / 1.02 GB, free: 15.04 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 7.159e-05/0.5323, allocations: 118.2 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.266e-05/0.5324, allocations: 8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.616e-05/0.5324, allocations: 11.05 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.5324, allocations: 4 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.5324, allocations: 0 / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.5324, allocations: 3.984 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.5326, allocations: 161.5 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5326, allocations: 0 / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.194e-05/0.5326, allocations: 11.98 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5326, allocations: 0 / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.5326, allocations: 0 / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.5326, allocations: 4 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5327, allocations: 0 / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.5329, allocations: 155.5 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/0.5329, allocations: 89.05 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.5329, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.055e-05/0.533, allocations: 7.984 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.749e-05/0.533, allocations: 7.969 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.533, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.514e-05/0.5331, allocations: 83.53 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5331, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002043/0.5333, allocations: 7.938 kB / 1.021 GB, free: 14.28 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.0004641/0.5338, allocations: 0.6968 MB / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001703/0.5339, allocations: 31.97 kB / 1.021 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.534, allocations: 0 / 1.021 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.347e-05/0.534, allocations: 15.92 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.5343, allocations: 12.16 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.5355, allocations: 1.227 MB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.5357, allocations: 0.6809 MB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.139e-05/0.5358, allocations: 8.031 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.5358, allocations: 11.44 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.5358, allocations: 0 / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01132/0.5471, allocations: 1.108 MB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/0.5474, allocations: 220.6 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/2.193, allocations: 0 / 1.025 GB, free: 10.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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