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.005695/0.005695, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001392/0.001392, allocations: 199.1 kB / 16.79 MB, free: 6.254 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.452/1.452, allocations: 222.9 MB / 240.5 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.803/2.803, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 68.55 kB / 0.8991 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3098, allocations: 157.4 MB / 1.053 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002558/0.3124, allocations: 0.6938 MB / 1.053 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3136, allocations: 0.8001 MB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.742e-05/0.3137, allocations: 0 / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.3138, allocations: 0 / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.057e-05/0.3139, allocations: 3.938 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001051/0.314, allocations: 8 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.519e-05/0.3141, allocations: 23.86 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.3142, allocations: 8 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.493e-05/0.3142, allocations: 7.984 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.193e-05/0.3143, allocations: 19.91 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.3143, allocations: 4 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.316e-06/0.3143, allocations: 0 / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.038e-05/0.3144, allocations: 4 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.502e-05/0.3144, allocations: 15.92 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.014e-05/0.3145, allocations: 19.97 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3145, allocations: 0 / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.51e-07/0.3145, allocations: 0 / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.3145, allocations: 0 / 1.054 GB, free: 6.645 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.0004749/0.315, allocations: 343.7 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3151, allocations: 19.91 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.665e-05/0.3151, allocations: 8.844 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.3153, allocations: 172.4 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.3153, allocations: 384 / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.3153, allocations: 4.312 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.3155, allocations: 66.17 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3155, allocations: 192 / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.3155, allocations: 3.938 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.3156, allocations: 0 / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.3157, allocations: 39.95 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.3162, allocations: 276.8 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.3163, allocations: 34.5 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.375e-05/0.3164, allocations: 24.89 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-06/0.3164, allocations: 0 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3165, allocations: 34.56 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.3165, allocations: 0 / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0003501/0.3168, allocations: 73.64 kB / 1.055 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.3169, allocations: 63.47 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.369e-05/0.317, allocations: 93.86 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.317, allocations: 29.7 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.3171, allocations: 95.97 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.3171, allocations: 0 / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.077e-05/0.3171, allocations: 13.72 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3173, allocations: 318.8 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.856e-05/0.3174, allocations: 15.98 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.625e-05/0.3174, allocations: 15.97 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3176, allocations: 32.83 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3176, allocations: 4 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001757/0.3178, allocations: 69.66 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3178, allocations: 4 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3178, allocations: 0 / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3178, allocations: 0 / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.502e-05/0.3179, allocations: 7.984 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3179, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.972e-05/0.318, allocations: 7.938 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.318, allocations: 4 kB / 1.056 GB, free: 4.578 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 8.328e-05/0.3181, allocations: 117.8 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.3181, allocations: 4.031 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.708e-05/0.3181, allocations: 7.125 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3181, allocations: 0 / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3181, allocations: 0 / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.3181, allocations: 0 / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.3183, allocations: 169.5 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3183, allocations: 3.984 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.88e-05/0.3184, allocations: 4 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3184, allocations: 0 / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.3184, allocations: 4.188 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.3184, allocations: 8 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3184, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.3186, allocations: 167.4 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.3187, allocations: 77.11 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.3187, allocations: 0 / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.418e-05/0.3188, allocations: 12.02 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.619e-05/0.3188, allocations: 0 / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.3188, allocations: 0 / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.351e-05/0.3189, allocations: 87.27 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3189, allocations: 0 / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002123/0.3191, allocations: 4 kB / 1.057 GB, free: 3.836 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.0002238/0.3193, allocations: 99.25 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002185/0.3196, allocations: 35.95 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3196, allocations: 0 / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.251e-05/0.3197, allocations: 19.92 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.32, allocations: 8.875 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003409/0.3204, allocations: 152.8 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.3207, allocations: 0.685 MB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.538e-05/0.3208, allocations: 7.438 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3208, allocations: 0 / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of Templates: time 0.001939/0.3227, allocations: 0.5564 MB / 1.058 GB, free: 2.207 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 -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