Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|movMea.u|movMea.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 107.4 kB / 16.36 MB, free: 6.285 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.001669/0.001669, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.282/1.282, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.16 kB / 0.814 GB, free: 32.66 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2288, allocations: 140.4 MB / 0.9511 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002361/0.2312, allocations: 1.403 MB / 0.9525 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004811/0.2317, allocations: 267.2 kB / 0.9528 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.134e-05/0.2318, allocations: 0 / 0.9528 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.077e-05/0.2318, allocations: 3.938 kB / 0.9528 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.232, allocations: 27.84 kB / 0.9528 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001346/0.2321, allocations: 27.91 kB / 0.9528 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001304/0.2322, allocations: 71.78 kB / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.263e-05/0.2323, allocations: 15.97 kB / 0.9529 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.632e-05/0.2324, allocations: 27.86 kB / 0.9529 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.2325, allocations: 31.89 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.2326, allocations: 8 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.293e-05/0.2326, allocations: 8 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.496e-05/0.2326, allocations: 7.938 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.302e-05/0.2327, allocations: 27.86 kB / 0.953 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.2328, allocations: 55.84 kB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2328, allocations: 3.938 kB / 0.9531 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.343e-06/0.2328, allocations: 0 / 0.9531 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.2328, allocations: 0 / 0.9531 GB, free: 6.016 MB / 0.7325 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.000472/0.2333, allocations: 396.9 kB / 0.9534 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2333, allocations: 12.03 kB / 0.9535 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.2334, allocations: 12.84 kB / 0.9535 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.2335, allocations: 184.2 kB / 0.9536 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.2336, allocations: 4.375 kB / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.2336, allocations: 384 / 0.9537 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.2337, allocations: 70.23 kB / 0.9537 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.2338, allocations: 192 / 0.9537 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.2338, allocations: 3.938 kB / 0.9537 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2338, allocations: 0 / 0.9537 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.2339, allocations: 43.97 kB / 0.9538 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004024/0.2343, allocations: 288.8 kB / 0.954 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.2344, allocations: 70.44 kB / 0.9541 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.12e-05/0.2345, allocations: 60.89 kB / 0.9542 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.2346, allocations: 0 / 0.9542 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.2347, allocations: 113.1 kB / 0.9543 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.2347, allocations: 0 / 0.9543 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003838/0.2351, allocations: 199.3 kB / 0.9545 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.2352, allocations: 118.8 kB / 0.9546 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.368e-05/0.2353, allocations: 105.8 kB / 0.9547 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.2353, allocations: 37.69 kB / 0.9547 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.214e-05/0.2354, allocations: 88.08 kB / 0.9548 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.2354, allocations: 35.69 kB / 0.9548 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.2354, allocations: 33.72 kB / 0.9549 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.2356, allocations: 322.8 kB / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.844e-05/0.2356, allocations: 39.97 kB / 0.9552 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.2358, allocations: 106.4 kB / 0.9553 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.236, allocations: 211.8 kB / 0.9555 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.236, allocations: 3.938 kB / 0.9555 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003049/0.2363, allocations: 203.3 kB / 0.9557 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.2364, allocations: 33.73 kB / 0.9557 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2364, allocations: 4 kB / 0.9557 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2364, allocations: 4 kB / 0.9558 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.2365, allocations: 23.92 kB / 0.9558 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.2365, allocations: 4 kB / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.577e-05/0.2366, allocations: 15.89 kB / 0.9558 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.2366, allocations: 8 kB / 0.9558 GB, free: 2.875 MB / 0.7325 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 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * 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.0001293/0.2368, allocations: 177.4 kB / 0.956 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.132e-05/0.2368, allocations: 15.89 kB / 0.956 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.088e-05/0.2368, allocations: 8.359 kB / 0.956 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.2368, allocations: 3.938 kB / 0.956 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2369, allocations: 0 / 0.956 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2369, allocations: 4 kB / 0.956 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.237, allocations: 185.6 kB / 0.9562 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.237, allocations: 0 / 0.9562 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.354e-05/0.237, allocations: 7.984 kB / 0.9562 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2371, allocations: 0 / 0.9562 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2371, allocations: 12 kB / 0.9562 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.2371, allocations: 7.938 kB / 0.9562 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2371, allocations: 0 / 0.9562 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003165/0.2374, allocations: 222.9 kB / 0.9564 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.398e-05/0.2375, allocations: 85.02 kB / 0.9565 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.2375, allocations: 11.98 kB / 0.9565 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.132e-05/0.2376, allocations: 4 kB / 0.9565 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.2376, allocations: 8 kB / 0.9565 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.468e-05/0.2376, allocations: 11.97 kB / 0.9565 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.227e-05/0.2377, allocations: 83.28 kB / 0.9566 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2377, allocations: 0 / 0.9566 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002302/0.2379, allocations: 24 kB / 0.9566 GB, free: 1.914 MB / 0.7325 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.0001003/0.238, allocations: 113.1 kB / 0.9567 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00029/0.2383, allocations: 175.2 kB / 0.9569 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2383, allocations: 0 / 0.9569 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.2385, allocations: 187.3 kB / 0.9571 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.2387, allocations: 15.94 kB / 0.9571 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.2391, allocations: 183.1 kB / 0.9573 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.2393, allocations: 0.6968 MB / 0.958 GB, free: 480 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.489e-05/0.2393, allocations: 8.672 kB / 0.958 GB, free: 468 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.479e-05/0.2394, allocations: 11.44 kB / 0.958 GB, free: 456 kB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.2394, allocations: 0 / 0.958 GB, free: 456 kB / 0.7325 GB Notification: Performance of Templates: time 0.0029/0.2423, allocations: 0.9656 MB / 0.9589 GB, free: 15.48 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & ./Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches