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.001167/0.001167, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001362/0.001362, allocations: 177.3 kB / 15.94 MB, free: 228 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.452/1.452, allocations: 223.2 MB / 239.9 MB, free: 5.383 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.393/2.393, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003421, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7725/0.7728, allocations: 142.3 MB / 0.9536 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001312/0.7742, allocations: 1.105 MB / 0.9547 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004452/0.7747, allocations: 256 kB / 0.9549 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4e-05/0.7747, allocations: 0 / 0.9549 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.806e-05/0.7748, allocations: 7.922 kB / 0.9549 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.7749, allocations: 15.98 kB / 0.955 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000115/0.7751, allocations: 31.75 kB / 0.955 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.19e-05/0.7751, allocations: 36.84 kB / 0.955 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.366e-05/0.7752, allocations: 7.875 kB / 0.955 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.692e-05/0.7753, allocations: 29.78 kB / 0.9551 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000108/0.7754, allocations: 26.84 kB / 0.9551 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.7755, allocations: 2.062 kB / 0.9551 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.377e-05/0.7755, allocations: 3.094 kB / 0.9551 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.987e-05/0.7755, allocations: 10.94 kB / 0.9551 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.987e-05/0.7756, allocations: 34.89 kB / 0.9551 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.584e-05/0.7757, allocations: 45.64 kB / 0.9552 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.7757, allocations: 0 / 0.9552 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.893e-06/0.7757, allocations: 0 / 0.9552 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.7757, allocations: 0 / 0.9552 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.0004187/0.7761, allocations: 383.9 kB / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.7762, allocations: 8.562 kB / 0.9555 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.782e-05/0.7762, allocations: 40.81 kB / 0.9556 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.7762, allocations: 15.67 kB / 0.9556 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.7764, allocations: 180.3 kB / 0.9558 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.7764, allocations: 10.8 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.7764, allocations: 2.781 kB / 0.9558 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.7766, allocations: 69.2 kB / 0.9559 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.7766, allocations: 0 / 0.9559 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.7766, allocations: 2.156 kB / 0.9559 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.7766, allocations: 0 / 0.9559 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.7767, allocations: 57.73 kB / 0.9559 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003658/0.7771, allocations: 289.2 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.7772, allocations: 71.78 kB / 0.9563 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.7773, allocations: 1.469 kB / 0.9563 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001816/0.7775, allocations: 115.5 kB / 0.9564 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.7775, allocations: 0 / 0.9564 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004153/0.7779, allocations: 301.7 kB / 0.9567 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.7779, allocations: 117.7 kB / 0.9568 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.866e-05/0.778, allocations: 111.5 kB / 0.9569 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.778, allocations: 29.08 kB / 0.9569 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.113e-05/0.7781, allocations: 93.2 kB / 0.957 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.7781, allocations: 25.12 kB / 0.957 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.524e-06/0.7781, allocations: 4.969 kB / 0.957 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.005e-05/0.7782, allocations: 321.3 kB / 0.9573 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.332e-05/0.7782, allocations: 42.56 kB / 0.9574 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.7784, allocations: 106.7 kB / 0.9575 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.7785, allocations: 83.95 kB / 0.9575 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.7785, allocations: 1.25 kB / 0.9575 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002866/0.7788, allocations: 210.4 kB / 0.9577 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.7788, allocations: 35.7 kB / 0.9578 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.7788, allocations: 2.375 kB / 0.9578 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.7788, allocations: 3.625 kB / 0.9578 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.779, allocations: 22.92 kB / 0.9578 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.779, allocations: 6.156 kB / 0.9578 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.045e-05/0.7791, allocations: 19.48 kB / 0.9578 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.7791, allocations: 14.78 kB / 0.9578 GB, free: 4.348 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.0001038/0.7792, allocations: 164.7 kB / 0.958 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.7792, allocations: 13.67 kB / 0.958 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.14e-05/0.7792, allocations: 6.031 kB / 0.958 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.7792, allocations: 0 / 0.958 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.7793, allocations: 3.984 kB / 0.958 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7793, allocations: 0.9375 kB / 0.958 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.678e-05/0.7794, allocations: 194.8 kB / 0.9582 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.7794, allocations: 3.938 kB / 0.9582 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/0.7794, allocations: 4.594 kB / 0.9582 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7794, allocations: 0 / 0.9582 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.7794, allocations: 14.75 kB / 0.9582 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.7794, allocations: 1.219 kB / 0.9582 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.7795, allocations: 0 / 0.9582 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.7797, allocations: 234.8 kB / 0.9585 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.365e-05/0.7798, allocations: 82.61 kB / 0.9585 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.456e-05/0.7798, allocations: 13.7 kB / 0.9586 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.11e-05/0.7799, allocations: 9.078 kB / 0.9586 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.7799, allocations: 2.625 kB / 0.9586 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.7799, allocations: 6.984 kB / 0.9586 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.221e-05/0.78, allocations: 89.39 kB / 0.9587 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.78, allocations: 0 / 0.9587 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002361/0.7802, allocations: 27.47 kB / 0.9587 GB, free: 3.559 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.000501/0.7807, allocations: 0.778 MB / 0.9594 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.781, allocations: 173.7 kB / 0.9596 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.781, allocations: 0 / 0.9596 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.7812, allocations: 188.8 kB / 0.9598 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001572/0.7813, allocations: 20.66 kB / 0.9598 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007084/0.7821, allocations: 1.799 MB / 0.9616 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.7822, allocations: 0.6956 MB / 0.9622 GB, free: 56 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.48e-05/0.7822, allocations: 5.359 kB / 0.9622 GB, free: 52 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.822e-05/0.7823, allocations: 27.64 kB / 0.9623 GB, free: 28 kB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7823, allocations: 0 / 0.9623 GB, free: 28 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.7939, allocations: 1.793 MB / 0.964 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.7941, allocations: 198.8 kB / 0.9642 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/2.494, allocations: 0 / 0.9642 GB, free: 14.96 MB / 0.7325 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