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.001231/0.001231, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001485/0.001485, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.66/1.66, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.994/2.994, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0006586/0.0006589, allocations: 8.156 kB / 0.9021 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3889, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.0008987/0.3899, allocations: 363.4 kB / 1.058 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009325/0.3908, allocations: 0.7924 MB / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.982e-05/0.3909, allocations: 0 / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.992e-05/0.391, allocations: 0 / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.642e-05/0.391, allocations: 3.938 kB / 1.059 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 9.795e-05/0.3911, allocations: 11.98 kB / 1.059 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.633e-05/0.3912, allocations: 15.94 kB / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.3913, allocations: 15.98 kB / 1.059 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.298e-05/0.3914, allocations: 7.922 kB / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.073e-05/0.3914, allocations: 15.92 kB / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.3915, allocations: 4 kB / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.3915, allocations: 0 / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.3915, allocations: 7.984 kB / 1.059 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.3916, allocations: 25.7 kB / 1.059 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.155e-05/0.3917, allocations: 19.91 kB / 1.059 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3917, allocations: 3.938 kB / 1.059 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3917, allocations: 0 / 1.059 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.3917, allocations: 4 kB / 1.059 GB, free: 4.062 MB / 0.8106 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.0005624/0.3923, allocations: 351.5 kB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.3923, allocations: 8.031 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/0.3924, allocations: 7.906 kB / 1.06 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.3926, allocations: 159.1 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.3926, allocations: 4 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.3927, allocations: 3.953 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.3929, allocations: 65.67 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3929, allocations: 0 / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.3929, allocations: 0 / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.393, allocations: 3.984 kB / 1.06 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.3931, allocations: 51.91 kB / 1.06 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.3937, allocations: 272.9 kB / 1.06 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.3938, allocations: 46.55 kB / 1.06 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.039e-05/0.3939, allocations: 20.91 kB / 1.06 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.3939, allocations: 4 kB / 1.06 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.394, allocations: 34.5 kB / 1.06 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.394, allocations: 4 kB / 1.06 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0003798/0.3944, allocations: 93.55 kB / 1.06 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.3944, allocations: 59.53 kB / 1.06 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.457e-05/0.3945, allocations: 105.8 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.3945, allocations: 25.7 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.605e-05/0.3946, allocations: 88.08 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.3946, allocations: 3.906 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/0.3946, allocations: 0 / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3948, allocations: 318.8 kB / 1.061 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.481e-05/0.3948, allocations: 23.97 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-05/0.3949, allocations: 23.98 kB / 1.061 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.61e-05/0.395, allocations: 23.86 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.395, allocations: 64 / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001848/0.3952, allocations: 77.66 kB / 1.061 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3952, allocations: 4 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3953, allocations: 0 / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3953, allocations: 3.938 kB / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.213e-05/0.3954, allocations: 12.03 kB / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3954, allocations: 3.984 kB / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.421e-05/0.3954, allocations: 8 kB / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.3954, allocations: 0 / 1.061 GB, free: 1.973 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.174e-05/0.3955, allocations: 113.8 kB / 1.061 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.3956, allocations: 3.984 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.169e-05/0.3956, allocations: 7.125 kB / 1.061 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.3956, allocations: 4 kB / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3956, allocations: 0 / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3956, allocations: 0 / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.3958, allocations: 161.6 kB / 1.061 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3958, allocations: 0 / 1.061 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.3959, allocations: 11.98 kB / 1.061 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3959, allocations: 0 / 1.061 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.3959, allocations: 3.938 kB / 1.061 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3959, allocations: 0 / 1.061 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.3959, allocations: 0 / 1.061 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002391/0.3962, allocations: 171.5 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.3962, allocations: 81.02 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.3962, allocations: 4 kB / 1.062 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.353e-05/0.3963, allocations: 20 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.3964, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.3964, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.684e-05/0.3964, allocations: 83.52 kB / 1.062 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3964, allocations: 0 / 1.062 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002131/0.3966, allocations: 4 kB / 1.062 GB, free: 1.227 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001345/0.3968, allocations: 103.2 kB / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000201/0.397, allocations: 43.91 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.397, allocations: 0 / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.602e-05/0.3971, allocations: 28.03 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/0.3974, allocations: 7.938 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002939/0.3977, allocations: 119.3 kB / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.3979, allocations: 0.6809 MB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.231e-05/0.398, allocations: 0 / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.398, allocations: 11.5 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of SimCode: time 3.3e-07/0.398, allocations: 0 / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of Templates: time 0.002307/0.4003, allocations: 346.2 kB / 1.063 GB, free: 15.84 MB / 0.8262 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 -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/jenkins/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