Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001437/0.001437, 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.001565/0.001565, allocations: 198.1 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.525/1.525, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.871/2.871, allocations: 437 MB / 0.7099 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002218, allocations: 75.86 kB / 0.8686 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7772/0.7794, allocations: 151.6 MB / 1.017 GB, free: 2.965 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.002294/0.7818, allocations: 0.7108 MB / 1.017 GB, free: 2.258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.7829, allocations: 0.7962 MB / 1.018 GB, free: 1.449 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.783, allocations: 4 kB / 1.018 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.7831, allocations: 0 / 1.018 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.831e-05/0.7831, allocations: 3.938 kB / 1.018 GB, free: 1.441 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001145/0.7832, allocations: 7.984 kB / 1.018 GB, free: 1.434 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.396e-05/0.7833, allocations: 23.94 kB / 1.018 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.7834, allocations: 7.984 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.762e-05/0.7835, allocations: 3.938 kB / 1.018 GB, free: 1.398 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.161e-05/0.7836, allocations: 19.92 kB / 1.018 GB, free: 1.379 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.7836, allocations: 4 kB / 1.018 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.016e-06/0.7836, allocations: 0 / 1.018 GB, free: 1.375 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.369e-05/0.7837, allocations: 11.98 kB / 1.018 GB, free: 1.363 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.7837, allocations: 3.938 kB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.7838, allocations: 39.88 kB / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.7838, allocations: 0 / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.022e-06/0.7838, allocations: 0 / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.7838, allocations: 0 / 1.018 GB, free: 1.32 MB / 0.7637 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.000552/0.7844, allocations: 345.6 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.7845, allocations: 8.031 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.035e-05/0.7845, allocations: 8.844 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.7847, allocations: 168.3 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.7847, allocations: 8.375 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.7847, allocations: 384 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.7849, allocations: 58.17 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.785, allocations: 192 / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.785, allocations: 3.938 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.785, allocations: 0 / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.7852, allocations: 39.97 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004644/0.7856, allocations: 272.8 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001185/0.7858, allocations: 46.44 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.443e-05/0.7859, allocations: 20.91 kB / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 8.485e-06/0.7859, allocations: 0 / 1.019 GB, free: 212 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.7859, allocations: 34.56 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.7859, allocations: 0 / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.0003385/0.7863, allocations: 81.67 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.7863, allocations: 55.41 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.7864, allocations: 101.8 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.7865, allocations: 25.7 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.7865, allocations: 84.14 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.7865, allocations: 7.906 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.7866, allocations: 13.66 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.7867, allocations: 322.8 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.233e-05/0.7868, allocations: 20.02 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.92e-05/0.7869, allocations: 11.98 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.7871, allocations: 36.81 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.7871, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001871/0.7873, allocations: 65.67 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.7873, allocations: 8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.7873, allocations: 0 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.7873, allocations: 0 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.316e-05/0.7874, allocations: 7.984 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.7874, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.649e-05/0.7875, allocations: 7.984 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.7875, allocations: 0 / 1.02 GB, free: 15.27 MB / 0.7794 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 9.755e-05/0.7876, allocations: 117.8 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/0.7876, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.7876, allocations: 7.125 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.7876, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.7876, allocations: 4 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.7876, allocations: 3.984 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.7878, allocations: 157.6 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7878, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.288e-05/0.7879, allocations: 7.984 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.7879, allocations: 4 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.7879, allocations: 7.938 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.7879, allocations: 0 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.7879, allocations: 0 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.7882, allocations: 163.3 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.7882, allocations: 81.09 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.7882, allocations: 4.25 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.37e-05/0.7883, allocations: 12.02 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.047e-05/0.7884, allocations: 8 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.7884, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.502e-05/0.7884, allocations: 79.28 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7884, allocations: 0 / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002034/0.7886, allocations: 4 kB / 1.021 GB, free: 14.53 MB / 0.7794 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.0001308/0.7888, allocations: 103.7 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002014/0.789, allocations: 35.97 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.789, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.472e-05/0.7891, allocations: 23.92 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.7894, allocations: 11.86 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003106/0.7897, allocations: 119.4 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.7901, allocations: 0.6808 MB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.159e-05/0.7901, allocations: 4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.466e-05/0.7901, allocations: 7.438 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of SimCode: time 4.81e-07/0.7901, allocations: 3.938 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of Templates: time 0.002643/0.7928, allocations: 357.1 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches