Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: 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_9_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_9_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.001401/0.001401, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001708/0.001708, allocations: 190.8 kB / 16.14 MB, free: 6.711 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.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.44/2.44, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 67.89 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8484/0.8497, allocations: 140.4 MB / 0.9489 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002406/0.8521, allocations: 0.7017 MB / 0.9496 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00101/0.8532, allocations: 0.7932 MB / 0.9504 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.623e-05/0.8532, allocations: 0 / 0.9504 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.8534, allocations: 7.984 kB / 0.9504 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.982e-05/0.8534, allocations: 5.312 kB / 0.9504 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001231/0.8536, allocations: 1.375 kB / 0.9504 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.485e-05/0.8536, allocations: 25.55 kB / 0.9504 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.8537, allocations: 4.125 kB / 0.9504 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.625e-05/0.8538, allocations: 14.67 kB / 0.9505 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.918e-05/0.8539, allocations: 2.75 kB / 0.9505 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.8539, allocations: 6.75 kB / 0.9505 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.977e-06/0.8539, allocations: 1.375 kB / 0.9505 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.854e-05/0.854, allocations: 13.3 kB / 0.9505 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.854, allocations: 10.69 kB / 0.9505 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.678e-05/0.8541, allocations: 30.75 kB / 0.9505 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.8541, allocations: 0 / 0.9505 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8541, allocations: 0 / 0.9505 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.8541, allocations: 0 / 0.9505 GB, free: 7.906 MB / 0.7169 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.000428/0.8545, allocations: 340.5 kB / 0.9508 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.8546, allocations: 13.62 kB / 0.9509 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.8546, allocations: 6.219 kB / 0.9509 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.8548, allocations: 176.4 kB / 0.951 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.8548, allocations: 1.75 kB / 0.951 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.8548, allocations: 5.688 kB / 0.951 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.855, allocations: 55.98 kB / 0.9511 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.855, allocations: 1.562 kB / 0.9511 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.855, allocations: 3.938 kB / 0.9511 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.8551, allocations: 1.188 kB / 0.9511 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.8552, allocations: 40.11 kB / 0.9511 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004148/0.8556, allocations: 278.4 kB / 0.9514 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.8558, allocations: 31.61 kB / 0.9514 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.867e-05/0.8558, allocations: 29.42 kB / 0.9515 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.8559, allocations: 0 / 0.9515 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.516e-05/0.8559, allocations: 31.84 kB / 0.9515 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.8559, allocations: 0 / 0.9515 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0003261/0.8562, allocations: 78.02 kB / 0.9516 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/0.8563, allocations: 55.53 kB / 0.9516 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.861e-05/0.8563, allocations: 109.2 kB / 0.9517 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.164e-06/0.8563, allocations: 25.7 kB / 0.9517 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.8564, allocations: 90.22 kB / 0.9518 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.8564, allocations: 3.906 kB / 0.9518 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.712e-05/0.8564, allocations: 11.22 kB / 0.9518 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.814e-05/0.8565, allocations: 320.2 kB / 0.9521 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.51e-05/0.8566, allocations: 16.14 kB / 0.9522 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.614e-05/0.8566, allocations: 20.69 kB / 0.9522 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.8568, allocations: 35.14 kB / 0.9522 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8568, allocations: 0 / 0.9522 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001725/0.8569, allocations: 70.41 kB / 0.9523 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.857, allocations: 4.844 kB / 0.9523 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.857, allocations: 0 / 0.9523 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.857, allocations: 0 / 0.9523 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.504e-05/0.8571, allocations: 8.891 kB / 0.9523 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.8571, allocations: 1.438 kB / 0.9523 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.15e-05/0.8571, allocations: 2.688 kB / 0.9523 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.8572, allocations: 5.266 kB / 0.9523 GB, free: 6.062 MB / 0.7169 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 5.276e-05/0.8572, allocations: 116.4 kB / 0.9524 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.8572, allocations: 9.516 kB / 0.9524 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.038e-05/0.8573, allocations: 3.125 kB / 0.9524 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.8573, allocations: 0 / 0.9524 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.8573, allocations: 1.219 kB / 0.9524 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.8573, allocations: 0 / 0.9524 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.8574, allocations: 159.8 kB / 0.9526 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8574, allocations: 0 / 0.9526 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.8575, allocations: 9.453 kB / 0.9526 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.8575, allocations: 0 / 0.9526 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.8575, allocations: 1.531 kB / 0.9526 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.8575, allocations: 4 kB / 0.9526 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.8575, allocations: 0 / 0.9526 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.8577, allocations: 164.6 kB / 0.9528 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.004e-05/0.8577, allocations: 82.8 kB / 0.9528 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.8577, allocations: 0 / 0.9528 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.206e-05/0.8578, allocations: 12.08 kB / 0.9528 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.805e-05/0.8579, allocations: 0 / 0.9528 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.8579, allocations: 5.156 kB / 0.9529 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.674e-05/0.8579, allocations: 91.27 kB / 0.9529 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8579, allocations: 0 / 0.9529 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002107/0.8581, allocations: 8.312 kB / 0.9529 GB, free: 5.367 MB / 0.7169 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.0001021/0.8582, allocations: 96.25 kB / 0.953 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001892/0.8584, allocations: 38.52 kB / 0.9531 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.8584, allocations: 5.656 kB / 0.9531 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.25e-05/0.8585, allocations: 16.83 kB / 0.9531 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.8588, allocations: 6.594 kB / 0.9531 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002684/0.8591, allocations: 108.4 kB / 0.9532 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.8592, allocations: 0.684 MB / 0.9539 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.439e-05/0.8593, allocations: 1.281 kB / 0.9539 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/0.8593, allocations: 7.438 kB / 0.9539 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8593, allocations: 1.25 kB / 0.9539 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of Templates: time 0.002414/0.8617, allocations: 350.9 kB / 0.9542 GB, free: 4.238 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches