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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009106/0.0009107, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001109/0.001109, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.528/2.528, allocations: 390.4 MB / 0.6655 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005455/0.0005456, allocations: 15.98 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8084/0.809, allocations: 142.3 MB / 0.9539 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001513/0.8105, allocations: 1.104 MB / 0.955 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005293/0.8111, allocations: 261 kB / 0.9552 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.103e-05/0.8112, allocations: 1.625 kB / 0.9552 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.118e-05/0.8113, allocations: 7.875 kB / 0.9552 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.8114, allocations: 18.58 kB / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001623/0.8116, allocations: 22.69 kB / 0.9552 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.985e-05/0.8117, allocations: 53.27 kB / 0.9553 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.607e-05/0.8118, allocations: 7.953 kB / 0.9553 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.845e-05/0.8119, allocations: 30.94 kB / 0.9553 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.812, allocations: 26.91 kB / 0.9554 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.812, allocations: 7.156 kB / 0.9554 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.43e-05/0.8121, allocations: 1.562 kB / 0.9554 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.179e-05/0.8121, allocations: 7 kB / 0.9554 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.289e-05/0.8122, allocations: 30.92 kB / 0.9554 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.292e-05/0.8122, allocations: 53.27 kB / 0.9555 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.8123, allocations: 1.875 kB / 0.9555 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8123, allocations: 0 / 0.9555 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.8123, allocations: 0 / 0.9555 GB, free: 6.91 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004384/0.8127, allocations: 386.8 kB / 0.9558 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.8128, allocations: 9.438 kB / 0.9558 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.8128, allocations: 32.59 kB / 0.9559 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.8128, allocations: 7.453 kB / 0.9559 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.813, allocations: 180.7 kB / 0.956 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.813, allocations: 10.38 kB / 0.9561 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.813, allocations: 3.531 kB / 0.9561 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.8132, allocations: 72.5 kB / 0.9561 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.8132, allocations: 5.125 kB / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.8132, allocations: 1.031 kB / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.8132, allocations: 0 / 0.9561 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.8134, allocations: 50.2 kB / 0.9562 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000365/0.8137, allocations: 284.4 kB / 0.9565 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.8139, allocations: 76.45 kB / 0.9565 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.737e-05/0.814, allocations: 57.48 kB / 0.9566 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.814, allocations: 5.375 kB / 0.9566 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001771/0.8142, allocations: 124.4 kB / 0.9567 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.8142, allocations: 0 / 0.9567 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003923/0.8146, allocations: 209.8 kB / 0.9569 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.8147, allocations: 126 kB / 0.957 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.006e-05/0.8147, allocations: 108.1 kB / 0.9571 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.8148, allocations: 31.89 kB / 0.9572 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.323e-05/0.8148, allocations: 86.86 kB / 0.9572 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.8148, allocations: 31.98 kB / 0.9573 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.8148, allocations: 5.469 kB / 0.9573 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.8149, allocations: 321.7 kB / 0.9576 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-05/0.815, allocations: 41.27 kB / 0.9576 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.8151, allocations: 105.9 kB / 0.9577 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.8152, allocations: 84.22 kB / 0.9578 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.8153, allocations: 0 / 0.9578 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003014/0.8156, allocations: 211.4 kB / 0.958 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.8156, allocations: 37.41 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.8156, allocations: 2.312 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.8156, allocations: 4.094 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.8158, allocations: 26.2 kB / 0.9581 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.8158, allocations: 2.781 kB / 0.9581 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.174e-05/0.8159, allocations: 14.53 kB / 0.9581 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.8159, allocations: 14.59 kB / 0.9581 GB, free: 4.414 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001192/0.816, allocations: 178 kB / 0.9583 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.816, allocations: 13.52 kB / 0.9583 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.8161, allocations: 4.375 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.8161, allocations: 1.406 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.8161, allocations: 0 / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.8161, allocations: 0 / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.8162, allocations: 187.8 kB / 0.9585 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8162, allocations: 4 kB / 0.9585 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.864e-05/0.8162, allocations: 7.672 kB / 0.9585 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.8163, allocations: 5.016 kB / 0.9585 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.8163, allocations: 2.656 kB / 0.9585 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.8163, allocations: 0 / 0.9585 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8163, allocations: 1.531 kB / 0.9585 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003005/0.8166, allocations: 245.1 kB / 0.9587 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.8166, allocations: 84.23 kB / 0.9588 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.8167, allocations: 13.23 kB / 0.9588 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.015e-05/0.8167, allocations: 7.75 kB / 0.9588 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.164e-05/0.8168, allocations: 6.609 kB / 0.9588 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.8168, allocations: 3.656 kB / 0.9588 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.506e-05/0.8168, allocations: 92.75 kB / 0.9589 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8168, allocations: 0 / 0.9589 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002311/0.8171, allocations: 23.84 kB / 0.9589 GB, free: 3.617 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005143/0.8176, allocations: 0.7685 MB / 0.9597 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002818/0.8179, allocations: 177.5 kB / 0.9599 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.8179, allocations: 1.188 kB / 0.9599 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.8181, allocations: 191.8 kB / 0.9601 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.8183, allocations: 19.69 kB / 0.9601 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009152/0.8192, allocations: 0.6613 MB / 0.9607 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.8193, allocations: 0.6944 MB / 0.9614 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.89e-05/0.8194, allocations: 14.47 kB / 0.9614 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.8194, allocations: 18.19 kB / 0.9614 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.8194, allocations: 0 / 0.9614 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/0.8311, allocations: 1.818 MB / 0.9632 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/0.8313, allocations: 204 kB / 0.9634 GB, free: 292 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.526, allocations: 0.9688 kB / 0.9634 GB, free: 292 kB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat does not exist to compare? outputFormat=mat