Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_latest_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_latest_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/Buildings 10.0.0-master/package.mo): time 2.359/2.359, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 179.9 kB / 0.4901 GB, free: 2.227 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.644/1.644, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009391/0.000939, allocations: 102.6 kB / 0.9396 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003629, allocations: 15.88 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2684, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1945/0.4629, allocations: 150.3 MB / 1.376 GB, free: 3.074 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.4633, allocations: 79.94 kB / 1.376 GB, free: 2.996 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004872/0.4681, allocations: 1.651 MB / 1.378 GB, free: 1.344 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4682, allocations: 0 / 1.378 GB, free: 1.344 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.202e-05/0.4682, allocations: 4 kB / 1.378 GB, free: 1.34 MB / 0.8698 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.0004563/0.4687, allocations: 396.9 kB / 1.378 GB, free: 0.8984 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.4687, allocations: 8.562 kB / 1.378 GB, free: 0.8906 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.313e-05/0.4688, allocations: 34.56 kB / 1.378 GB, free: 0.8477 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.147e-05/0.4688, allocations: 15.84 kB / 1.378 GB, free: 0.832 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.469, allocations: 175.1 kB / 1.378 GB, free: 0.6211 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.469, allocations: 7.938 kB / 1.378 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.4691, allocations: 0 / 1.378 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.4693, allocations: 81.53 kB / 1.378 GB, free: 0.5273 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.4693, allocations: 0 / 1.378 GB, free: 0.5273 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.4693, allocations: 4 kB / 1.378 GB, free: 0.5234 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.4693, allocations: 0 / 1.378 GB, free: 0.5234 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.4695, allocations: 47.97 kB / 1.379 GB, free: 488 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004473/0.4699, allocations: 292.7 kB / 1.379 GB, free: 144 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.4701, allocations: 82.48 kB / 1.379 GB, free: 52 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.4701, allocations: 0 / 1.379 GB, free: 52 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.4703, allocations: 125.1 kB / 1.379 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.4703, allocations: 0 / 1.379 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0004713/0.4708, allocations: 284.4 kB / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/0.4709, allocations: 122.8 kB / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.856e-05/0.471, allocations: 113 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.471, allocations: 33.7 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.471, allocations: 80.14 kB / 1.38 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.4711, allocations: 27.7 kB / 1.38 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-06/0.4711, allocations: 4 kB / 1.38 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4712, allocations: 318.8 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-05/0.4713, allocations: 39.98 kB / 1.38 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.4714, allocations: 105.2 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.4716, allocations: 85.62 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.4716, allocations: 4 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003321/0.4719, allocations: 207.3 kB / 1.38 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.472, allocations: 29.7 kB / 1.38 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.472, allocations: 7.953 kB / 1.38 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.472, allocations: 4 kB / 1.38 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.4721, allocations: 23.92 kB / 1.38 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.4722, allocations: 4 kB / 1.38 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.841e-05/0.4722, allocations: 19.84 kB / 1.38 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.4723, allocations: 4 kB / 1.38 GB, free: 14.29 MB / 0.8855 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.0001465/0.4724, allocations: 176.2 kB / 1.381 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.97e-05/0.4724, allocations: 7.906 kB / 1.381 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.4725, allocations: 8.375 kB / 1.381 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4725, allocations: 15.97 kB / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4725, allocations: 0 / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4725, allocations: 0 / 1.381 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.4727, allocations: 189.6 kB / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4727, allocations: 0 / 1.381 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.612e-05/0.4727, allocations: 8 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4727, allocations: 3.938 kB / 1.381 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.4728, allocations: 8 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4728, allocations: 0 / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4728, allocations: 3.953 kB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003473/0.4731, allocations: 230.9 kB / 1.381 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.4732, allocations: 89.11 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/0.4732, allocations: 4 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.21e-05/0.4733, allocations: 4 kB / 1.381 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.4734, allocations: 11.94 kB / 1.381 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.4734, allocations: 8 kB / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.542e-05/0.4734, allocations: 87.2 kB / 1.381 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4734, allocations: 0 / 1.381 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002346/0.4737, allocations: 27.94 kB / 1.381 GB, free: 13.31 MB / 0.8855 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.0006504/0.4743, allocations: 0.7808 MB / 1.382 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000289/0.4746, allocations: 175.3 kB / 1.382 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4746, allocations: 0 / 1.382 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002031/0.4749, allocations: 195.3 kB / 1.382 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001536/0.475, allocations: 4 kB / 1.382 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.4762, allocations: 1.807 MB / 1.384 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.4765, allocations: 0.6887 MB / 1.385 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.716e-05/0.4765, allocations: 16.59 kB / 1.385 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.797e-05/0.4766, allocations: 19.44 kB / 1.385 GB, free: 9.457 MB / 0.8855 GB Notification: Performance of SimCode: time 3.91e-07/0.4766, allocations: 0 / 1.385 GB, free: 9.457 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.4933, allocations: 1.809 MB / 1.387 GB, free: 7.824 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002847/0.4936, allocations: 201.6 kB / 1.387 GB, free: 7.582 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/2.08, allocations: 0 / 1.387 GB, free: 7.582 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean_res.mat does not exist to compare? outputFormat=mat