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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u|reaRep.y.1.|reaRep.y.2.|reaRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u|reaRep.y.1.|reaRep.y.2.|reaRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 101.8 kB / 16.35 MB, free: 5.875 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.001768/0.001769, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.458/1.458, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.503/2.503, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002256/0.002256, allocations: 72.56 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3445, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.003011/0.3476, allocations: 0.6466 MB / 1.027 GB, free: 1.375 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.3491, allocations: 0.7986 MB / 1.028 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.938e-05/0.3492, allocations: 4 kB / 1.028 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.3493, allocations: 4 kB / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.53e-05/0.3494, allocations: 3.938 kB / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001289/0.3495, allocations: 3.984 kB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.3496, allocations: 27.92 kB / 1.028 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.3497, allocations: 8 kB / 1.028 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.432e-05/0.3498, allocations: 11.92 kB / 1.028 GB, free: 0.5039 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.416e-05/0.3499, allocations: 15.92 kB / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.3499, allocations: 4 kB / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.897e-06/0.3499, allocations: 0 / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.837e-05/0.35, allocations: 11.98 kB / 1.028 GB, free: 484 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.538e-05/0.3501, allocations: 15.92 kB / 1.028 GB, free: 468 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.3502, allocations: 19.91 kB / 1.028 GB, free: 448 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3502, allocations: 0 / 1.028 GB, free: 448 kB / 0.795 GB Notification: Performance of FrontEnd: time 3.186e-06/0.3502, allocations: 0 / 1.028 GB, free: 448 kB / 0.795 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.3502, allocations: 0 / 1.028 GB, free: 448 kB / 0.795 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.0005489/0.3508, allocations: 351.4 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3509, allocations: 16.02 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.539e-05/0.3509, allocations: 0.9375 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.3511, allocations: 168.3 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3511, allocations: 4.375 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.3512, allocations: 4.375 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.3514, allocations: 54.23 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3514, allocations: 4.188 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3514, allocations: 7.875 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.3515, allocations: 4 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.3517, allocations: 35.95 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005295/0.3522, allocations: 276.8 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.3523, allocations: 38.55 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.865e-05/0.3524, allocations: 20.91 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.3525, allocations: 3.984 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.3525, allocations: 30.56 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.3525, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0004306/0.3529, allocations: 85.58 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.353, allocations: 51.41 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.3532, allocations: 105.8 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.3532, allocations: 25.7 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.837e-05/0.3533, allocations: 87.98 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.3533, allocations: 0 / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.586e-05/0.3534, allocations: 21.66 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002156/0.3536, allocations: 318.9 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.991e-05/0.3537, allocations: 15.97 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.478e-05/0.3538, allocations: 15.98 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.354, allocations: 36.83 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.354, allocations: 0 / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0002443/0.3543, allocations: 65.66 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3543, allocations: 4 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.3543, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3543, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.3544, allocations: 11.98 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3545, allocations: 0 / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.078e-05/0.3545, allocations: 8 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.3545, allocations: 0 / 1.03 GB, free: 14.38 MB / 0.8106 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 0.0001009/0.3547, allocations: 117.8 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.513e-05/0.3547, allocations: 7.906 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.215e-05/0.3547, allocations: 3.125 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3547, allocations: 0 / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3548, allocations: 0 / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.3548, allocations: 0 / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.355, allocations: 173.5 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.355, allocations: 256 / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.006e-05/0.3551, allocations: 8 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.3551, allocations: 4 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.3551, allocations: 3.984 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3551, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3552, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.3554, allocations: 159.4 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.3555, allocations: 81.09 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.3555, allocations: 4.031 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.3556, allocations: 4 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.3557, allocations: 3.984 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.646e-06/0.3557, allocations: 0 / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.711e-05/0.3558, allocations: 83.28 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3558, allocations: 4 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003148/0.3561, allocations: 0 / 1.031 GB, free: 13.63 MB / 0.8106 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.0001309/0.3562, allocations: 103.2 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002393/0.3565, allocations: 39.89 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3565, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.104e-05/0.3566, allocations: 11.98 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.357, allocations: 15.88 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003641/0.3574, allocations: 117.6 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.3578, allocations: 0.6768 MB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.988e-05/0.3578, allocations: 7.984 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.856e-05/0.3579, allocations: 7.438 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of SimCode: time 2.8e-07/0.3579, allocations: 0 / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of Templates: time 0.003046/0.3609, allocations: 425 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/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