Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.706/1.706, allocations: 306.1 MB / 321.4 MB, free: 10.76 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 183.5 kB / 393.1 MB, free: 4.078 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 225.7 MB / 0.6743 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008253/0.0008253, allocations: 99.77 kB / 0.7935 GB, free: 40.04 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004374/0.0004375, allocations: 8.531 kB / 0.9224 GB, free: 8.672 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6166/0.617, allocations: 121.3 MB / 1.041 GB, free: 58.2 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001452/0.6185, allocations: 1.115 MB / 1.042 GB, free: 57.47 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0005327/0.6191, allocations: 348.9 kB / 1.042 GB, free: 57.2 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.148e-05/0.6191, allocations: 1.375 kB / 1.042 GB, free: 57.2 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 8.041e-05/0.6192, allocations: 3.938 kB / 1.042 GB, free: 57.2 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.6194, allocations: 13.88 kB / 1.042 GB, free: 57.19 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001309/0.6195, allocations: 29.94 kB / 1.042 GB, free: 57.17 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.836e-05/0.6196, allocations: 58.95 kB / 1.042 GB, free: 57.15 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.339e-05/0.6197, allocations: 5.812 kB / 1.042 GB, free: 57.15 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 8.518e-05/0.6198, allocations: 27.28 kB / 1.042 GB, free: 57.14 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.604e-05/0.6199, allocations: 29.78 kB / 1.042 GB, free: 57.12 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.6199, allocations: 2.75 kB / 1.042 GB, free: 57.12 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 1.587e-05/0.62, allocations: 4 kB / 1.042 GB, free: 57.12 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.62, allocations: 5 kB / 1.042 GB, free: 57.12 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.842e-05/0.6201, allocations: 51.84 kB / 1.043 GB, free: 57.08 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.6202, allocations: 62.61 kB / 1.043 GB, free: 57.06 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.6202, allocations: 0 / 1.043 GB, free: 57.06 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.744e-06/0.6202, allocations: 0 / 1.043 GB, free: 57.06 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.6202, allocations: 1.375 kB / 1.043 GB, free: 57.06 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003703/0.6206, allocations: 384.9 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.6206, allocations: 9.359 kB / 1.043 GB, free: 56.66 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.6207, allocations: 16.88 kB / 1.043 GB, free: 56.64 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.6208, allocations: 175 kB / 1.043 GB, free: 56.45 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.6208, allocations: 6.5 kB / 1.043 GB, free: 56.44 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.6208, allocations: 7.594 kB / 1.043 GB, free: 56.44 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.621, allocations: 73.98 kB / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.621, allocations: 192 / 1.043 GB, free: 56.4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.621, allocations: 3.938 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.621, allocations: 1.625 kB / 1.043 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.6211, allocations: 51.97 kB / 1.043 GB, free: 56.38 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003715/0.6215, allocations: 291.5 kB / 1.044 GB, free: 56.09 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.6216, allocations: 71.66 kB / 1.044 GB, free: 56.04 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.44e-05/0.6217, allocations: 60.16 kB / 1.044 GB, free: 56.01 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.6218, allocations: 2.25 kB / 1.044 GB, free: 56.01 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001757/0.6219, allocations: 119.2 kB / 1.044 GB, free: 55.91 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.622, allocations: 0.5312 kB / 1.044 GB, free: 55.91 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0003646/0.6223, allocations: 199.9 kB / 1.044 GB, free: 55.81 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.6224, allocations: 120.7 kB / 1.044 GB, free: 55.68 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.881e-05/0.6224, allocations: 110 kB / 1.044 GB, free: 55.57 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.6225, allocations: 32.58 kB / 1.044 GB, free: 55.54 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.548e-05/0.6225, allocations: 91.39 kB / 1.044 GB, free: 55.45 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.6225, allocations: 28.16 kB / 1.044 GB, free: 55.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/0.6225, allocations: 6.531 kB / 1.044 GB, free: 55.43 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.515e-05/0.6226, allocations: 320.3 kB / 1.045 GB, free: 55.11 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.228e-05/0.6227, allocations: 36.09 kB / 1.045 GB, free: 55.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.6228, allocations: 110.1 kB / 1.045 GB, free: 55 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001949/0.623, allocations: 216 kB / 1.045 GB, free: 54.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.623, allocations: 7.344 kB / 1.045 GB, free: 54.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000267/0.6233, allocations: 202.5 kB / 1.045 GB, free: 54.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.6233, allocations: 36.44 kB / 1.045 GB, free: 54.67 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.6233, allocations: 4.375 kB / 1.045 GB, free: 54.67 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.6234, allocations: 2.547 kB / 1.045 GB, free: 54.67 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.6235, allocations: 25.55 kB / 1.045 GB, free: 54.66 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.6235, allocations: 4.672 kB / 1.045 GB, free: 54.66 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.051e-05/0.6236, allocations: 19.06 kB / 1.045 GB, free: 54.65 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.6236, allocations: 10.72 kB / 1.045 GB, free: 54.65 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001174/0.6237, allocations: 176.4 kB / 1.045 GB, free: 54.49 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.6238, allocations: 5.281 kB / 1.046 GB, free: 54.49 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.151e-05/0.6238, allocations: 9.406 kB / 1.046 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.6238, allocations: 3.688 kB / 1.046 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.6238, allocations: 1.781 kB / 1.046 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.6238, allocations: 0 / 1.046 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.6239, allocations: 194.7 kB / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6239, allocations: 4 kB / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.624, allocations: 5.578 kB / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.624, allocations: 0 / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.624, allocations: 7.922 kB / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.624, allocations: 3.938 kB / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.624, allocations: 0 / 1.046 GB, free: 54.27 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.6243, allocations: 243.7 kB / 1.046 GB, free: 54.11 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.03e-05/0.6243, allocations: 79.39 kB / 1.046 GB, free: 54.02 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.6244, allocations: 10.25 kB / 1.046 GB, free: 54.01 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.931e-05/0.6244, allocations: 7.922 kB / 1.046 GB, free: 54.01 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.6245, allocations: 4.484 kB / 1.046 GB, free: 54.01 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.6245, allocations: 9.578 kB / 1.046 GB, free: 54 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.893e-05/0.6245, allocations: 94.36 kB / 1.046 GB, free: 53.92 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6245, allocations: 0 / 1.046 GB, free: 53.92 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000206/0.6248, allocations: 24.16 kB / 1.046 GB, free: 53.92 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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.0001093/0.6249, allocations: 122.5 kB / 1.046 GB, free: 53.82 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002608/0.6251, allocations: 166.1 kB / 1.046 GB, free: 53.73 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.6252, allocations: 2.812 kB / 1.046 GB, free: 53.73 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.6253, allocations: 190.1 kB / 1.047 GB, free: 53.59 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/0.6255, allocations: 20.17 kB / 1.047 GB, free: 53.59 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003475/0.6259, allocations: 201.7 kB / 1.047 GB, free: 53.43 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.626, allocations: 0.6923 MB / 1.048 GB, free: 52.73 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.716e-05/0.626, allocations: 10.77 kB / 1.048 GB, free: 52.73 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.889e-05/0.6261, allocations: 13.41 kB / 1.048 GB, free: 52.72 MB / 0.698 GB Notification: Performance of SimCode: time 3.3e-07/0.6261, allocations: 0 / 1.048 GB, free: 52.72 MB / 0.698 GB Notification: Performance of Templates: time 0.002804/0.6289, allocations: 0.8847 MB / 1.048 GB, free: 52.63 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)