Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007626/0.0007626, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007914/0.0007914, allocations: 169.9 kB / 22.46 MB, free: 2.102 MB / 18.57 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 0.8968/0.8968, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.716/1.716, allocations: 377.8 MB / 0.6221 GB, free: 8.695 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.296e-06/3.296e-06, allocations: 0 / 0.981 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.001e-05/3.33e-05, allocations: 9.094 kB / 0.981 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002305/0.002338, allocations: 0.6507 MB / 0.9816 GB, free: 1.961 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.003467, allocations: 0.8159 MB / 0.9824 GB, free: 1.133 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.069e-05/0.003528, allocations: 0 / 0.9824 GB, free: 1.133 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.00364, allocations: 3.938 kB / 0.9824 GB, free: 1.129 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 2.285e-05/0.003663, allocations: 0 / 0.9824 GB, free: 1.129 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.000136/0.003799, allocations: 7.984 kB / 0.9824 GB, free: 1.121 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.191e-05/0.003891, allocations: 31.86 kB / 0.9824 GB, free: 1.09 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.004006, allocations: 4 kB / 0.9824 GB, free: 1.086 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 6.672e-05/0.004072, allocations: 19.92 kB / 0.9825 GB, free: 1.066 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 6.067e-05/0.004133, allocations: 3.984 kB / 0.9825 GB, free: 1.062 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.004154, allocations: 4 kB / 0.9825 GB, free: 1.059 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.955e-06/0.004162, allocations: 4 kB / 0.9825 GB, free: 1.055 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 6.231e-05/0.004225, allocations: 7.984 kB / 0.9825 GB, free: 1.047 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.004256, allocations: 15.92 kB / 0.9825 GB, free: 1.031 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 9.197e-05/0.004348, allocations: 27.95 kB / 0.9825 GB, free: 1.004 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.004351, allocations: 0 / 0.9825 GB, free: 1.004 MB / 0.9323 GB Notification: Performance of FrontEnd: time 3.016e-06/0.004354, allocations: 0 / 0.9825 GB, free: 1.004 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.78e-06/0.00436, allocations: 4 kB / 0.9825 GB, free: 1 MB / 0.9323 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.0003582/0.004718, allocations: 266.3 kB / 0.9828 GB, free: 0.707 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.004772, allocations: 8.031 kB / 0.9828 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.004815, allocations: 30.75 kB / 0.9828 GB, free: 0.6602 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.494e-05/0.00484, allocations: 8.875 kB / 0.9828 GB, free: 0.6523 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001559/0.004996, allocations: 117.8 kB / 0.9829 GB, free: 0.5117 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.005006, allocations: 4.359 kB / 0.9829 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.427e-06/0.005015, allocations: 4.375 kB / 0.9829 GB, free: 0.5039 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.00519, allocations: 58.17 kB / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.005199, allocations: 4.188 kB / 0.983 GB, free: 448 kB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.00521, allocations: 384 / 0.983 GB, free: 448 kB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.005217, allocations: 12.06 kB / 0.983 GB, free: 436 kB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.291e-05/0.0053, allocations: 31.97 kB / 0.983 GB, free: 404 kB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.005649, allocations: 240 kB / 0.9833 GB, free: 120 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 7.123e-05/0.00572, allocations: 34.5 kB / 0.9833 GB, free: 76 kB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.665e-05/0.005777, allocations: 28.84 kB / 0.9833 GB, free: 44 kB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 9.949e-06/0.005787, allocations: 0 / 0.9833 GB, free: 44 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.005809, allocations: 30.56 kB / 0.9834 GB, free: 4 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=1): time 1.563e-06/0.005811, allocations: 0 / 0.9834 GB, free: 4 kB / 0.9323 GB Notification: Performance of matching and sorting (n=1): time 0.0002271/0.006038, allocations: 73.64 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.006069, allocations: 55.34 kB / 0.9835 GB, free: 15.86 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.159e-05/0.006131, allocations: 105.8 kB / 0.9836 GB, free: 15.75 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.006142, allocations: 25.83 kB / 0.9836 GB, free: 15.71 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.929e-05/0.006181, allocations: 100 kB / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.006195, allocations: 0 / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.262e-05/0.006218, allocations: 9.719 kB / 0.9837 GB, free: 15.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.924e-05/0.006297, allocations: 318.8 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.627e-05/0.006343, allocations: 15.98 kB / 0.984 GB, free: 15.26 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.287e-05/0.006376, allocations: 11.98 kB / 0.984 GB, free: 15.25 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.343e-05/0.006449, allocations: 36.89 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.006452, allocations: 3.984 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001075/0.006559, allocations: 73.5 kB / 0.9842 GB, free: 15.13 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.006573, allocations: 4 kB / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.006578, allocations: 0 / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.00659, allocations: 0 / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.141e-05/0.006651, allocations: 7.984 kB / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.006655, allocations: 0 / 0.9842 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.168e-05/0.006677, allocations: 12.02 kB / 0.9842 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.006685, allocations: 3.938 kB / 0.9842 GB, free: 15.1 MB / 0.948 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.089e-05/0.006746, allocations: 109.8 kB / 0.9843 GB, free: 14.98 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.00676, allocations: 3.938 kB / 0.9843 GB, free: 14.98 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.739e-05/0.006777, allocations: 11.16 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.00678, allocations: 0 / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.006783, allocations: 0 / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.006786, allocations: 0 / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.006894, allocations: 132.9 kB / 0.9844 GB, free: 14.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.006897, allocations: 4 kB / 0.9844 GB, free: 14.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.592e-05/0.006923, allocations: 11.98 kB / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.006925, allocations: 0 / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.00693, allocations: 0 / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.006931, allocations: 0 / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.006932, allocations: 0 / 0.9844 GB, free: 14.79 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.007062, allocations: 163.4 kB / 0.9846 GB, free: 14.61 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.099e-06/0.007067, allocations: 3.938 kB / 0.9846 GB, free: 14.61 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-06/0.007076, allocations: 0 / 0.9846 GB, free: 14.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.445e-05/0.00711, allocations: 12.02 kB / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.928e-05/0.00715, allocations: 4 kB / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-06/0.007151, allocations: 0 / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.067e-05/0.007182, allocations: 87.27 kB / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007182, allocations: 0 / 0.9847 GB, free: 14.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000145/0.007327, allocations: 7.953 kB / 0.9847 GB, free: 14.5 MB / 0.948 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.000361/0.007688, allocations: 0.6851 MB / 0.9854 GB, free: 13.79 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000126/0.007814, allocations: 39.94 kB / 0.9854 GB, free: 13.75 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.007816, allocations: 0 / 0.9854 GB, free: 13.75 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.149e-05/0.007858, allocations: 23.97 kB / 0.9854 GB, free: 13.72 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.008127, allocations: 0 / 0.9854 GB, free: 13.72 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.009169, allocations: 1.23 MB / 0.9866 GB, free: 12.41 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.517e-05/0.009235, allocations: 63.34 kB / 0.9867 GB, free: 12.33 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.911e-05/0.009274, allocations: 4 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.479e-05/0.009319, allocations: 16.48 kB / 0.9867 GB, free: 12.31 MB / 0.948 GB Notification: Performance of SimCode: time 5.41e-07/0.009319, allocations: 0 / 0.9867 GB, free: 12.31 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01509/0.02441, allocations: 1.964 MB / 0.9886 GB, free: 10.47 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.62/6.644, allocations: 17.88 kB / 0.9887 GB, free: 10.46 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.682190695777535]