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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.527/2.527, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001677/0.001677, allocations: 171.7 kB / 492.3 MB, free: 0.6367 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.852/1.852, allocations: 221.3 MB / 0.7871 GB, free: 12.98 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.0009686/0.0009686, allocations: 96.83 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.494e-05/4.516e-05, allocations: 0 / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3238, allocations: 142.3 MB / 1.213 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.397/1.721, allocations: 149.5 MB / 1.358 GB, free: 19.13 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003558/1.722, allocations: 77.78 kB / 1.359 GB, free: 19.13 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00594/1.728, allocations: 1.638 MB / 1.36 GB, free: 34.75 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.463e-06/1.728, allocations: 0 / 1.36 GB, free: 34.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.414e-05/1.728, allocations: 0 / 1.36 GB, free: 34.75 MB / 0.8386 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.000499/1.728, allocations: 392.9 kB / 1.361 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/1.728, allocations: 7.781 kB / 1.361 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/1.728, allocations: 43 kB / 1.361 GB, free: 34.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/1.728, allocations: 7.781 kB / 1.361 GB, free: 34.31 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/1.729, allocations: 179.1 kB / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/1.729, allocations: 0 / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/1.729, allocations: 3.875 kB / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/1.729, allocations: 65.22 kB / 1.361 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/1.729, allocations: 0 / 1.361 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/1.729, allocations: 7.828 kB / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.371e-06/1.729, allocations: 0 / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.276e-05/1.729, allocations: 37.47 kB / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005497/1.73, allocations: 292.1 kB / 1.361 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/1.73, allocations: 60.3 kB / 1.361 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.495e-05/1.73, allocations: 55.42 kB / 1.361 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/1.73, allocations: 0 / 1.361 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001573/1.73, allocations: 134.7 kB / 1.361 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/1.73, allocations: 0 / 1.361 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0003097/1.73, allocations: 141.4 kB / 1.362 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/1.73, allocations: 120.6 kB / 1.362 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/1.73, allocations: 102.5 kB / 1.362 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/1.73, allocations: 35.23 kB / 1.362 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.434e-05/1.731, allocations: 87.98 kB / 1.362 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/1.731, allocations: 26.73 kB / 1.362 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/1.731, allocations: 7.5 kB / 1.362 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000153/1.731, allocations: 319.7 kB / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.668e-05/1.731, allocations: 34.28 kB / 1.362 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.521e-05/1.731, allocations: 94.14 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.92e-05/1.731, allocations: 75.3 kB / 1.362 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.731, allocations: 0 / 1.362 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002641/1.731, allocations: 202 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/1.731, allocations: 38.39 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.731, allocations: 0 / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/1.731, allocations: 7.922 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/1.732, allocations: 27.3 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/1.732, allocations: 3.812 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.892e-05/1.732, allocations: 11.98 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/1.732, allocations: 9.438 kB / 1.363 GB, free: 32.69 MB / 0.8386 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 () * 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.0001508/1.732, allocations: 169.4 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/1.732, allocations: 11.59 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.668e-05/1.732, allocations: 7.938 kB / 1.363 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/1.732, allocations: 5.266 kB / 1.363 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/1.732, allocations: 0 / 1.363 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.732, allocations: 0 / 1.363 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/1.732, allocations: 189.6 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.732, allocations: 4 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.759e-05/1.732, allocations: 5.656 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/1.732, allocations: 0 / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/1.732, allocations: 5.672 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.732, allocations: 0 / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.732, allocations: 7.422 kB / 1.363 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/1.732, allocations: 219.3 kB / 1.363 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.202e-05/1.733, allocations: 89.97 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/1.733, allocations: 8.656 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.847e-05/1.733, allocations: 5.297 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.407e-05/1.733, allocations: 9.672 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/1.733, allocations: 9.312 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.711e-05/1.733, allocations: 86.42 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.733, allocations: 3.844 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002063/1.733, allocations: 22.91 kB / 1.363 GB, free: 32.04 MB / 0.8386 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) * 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.0006263/1.734, allocations: 0.7636 MB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002454/1.734, allocations: 163.2 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.734, allocations: 4.5 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/1.734, allocations: 183.7 kB / 1.365 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/1.734, allocations: 7.844 kB / 1.365 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004735/1.735, allocations: 147.5 kB / 1.365 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/1.735, allocations: 0.7002 MB / 1.365 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.012e-05/1.735, allocations: 10.98 kB / 1.365 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.861e-05/1.735, allocations: 17.91 kB / 1.365 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.735, allocations: 4 kB / 1.365 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01581/1.751, allocations: 1.795 MB / 1.367 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/1.751, allocations: 174.3 kB / 1.367 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/3.591, allocations: 2.25 kB / 1.367 GB, free: 30.02 MB / 0.8386 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