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.243/2.243, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001077/0.001077, allocations: 184.8 kB / 487.4 MB, free: 5.062 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.467/1.467, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 95.86 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.704e-05/1.683e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2837, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9161/1.2, allocations: 148.8 MB / 1.351 GB, free: 18.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/1.2, allocations: 76.92 kB / 1.351 GB, free: 18.17 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005433/1.206, allocations: 1.627 MB / 1.353 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.114e-06/1.206, allocations: 0 / 1.353 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.209e-05/1.206, allocations: 3.906 kB / 1.353 GB, free: 33.79 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.0004577/1.206, allocations: 395.3 kB / 1.353 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.001e-05/1.206, allocations: 8.562 kB / 1.353 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/1.206, allocations: 7.781 kB / 1.353 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/1.207, allocations: 182.1 kB / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/1.207, allocations: 0 / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/1.207, allocations: 4.359 kB / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001216/1.207, allocations: 32.66 kB / 1.354 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/1.207, allocations: 61.3 kB / 1.354 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/1.207, allocations: 0 / 1.354 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/1.207, allocations: 4 kB / 1.354 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/1.207, allocations: 3.812 kB / 1.354 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004328/1.207, allocations: 260.7 kB / 1.354 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.071e-05/1.208, allocations: 64.34 kB / 1.354 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.165e-05/1.208, allocations: 57.25 kB / 1.354 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/1.208, allocations: 4.703 kB / 1.354 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/1.208, allocations: 116.5 kB / 1.354 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/1.208, allocations: 0 / 1.354 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002608/1.208, allocations: 107.2 kB / 1.354 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/1.208, allocations: 113 kB / 1.354 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.59e-05/1.208, allocations: 98.06 kB / 1.355 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/1.208, allocations: 34.06 kB / 1.355 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/1.208, allocations: 96.05 kB / 1.355 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/1.208, allocations: 21.77 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/1.208, allocations: 0 / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.208, allocations: 325.6 kB / 1.355 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.891e-05/1.209, allocations: 31.95 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-05/1.209, allocations: 95.14 kB / 1.355 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.961e-05/1.209, allocations: 41.94 kB / 1.355 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/1.209, allocations: 0 / 1.355 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002043/1.209, allocations: 154.5 kB / 1.355 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/1.209, allocations: 30.44 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/1.209, allocations: 7.812 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/1.209, allocations: 3.875 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/1.209, allocations: 32.33 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/1.209, allocations: 4.984 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.799e-05/1.209, allocations: 12.69 kB / 1.355 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/1.209, allocations: 8.297 kB / 1.355 GB, free: 31.91 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.0001202/1.209, allocations: 174.2 kB / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001895/1.21, allocations: 133.2 kB / 1.356 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/1.21, allocations: 8.641 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/1.21, allocations: 8.734 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/1.21, allocations: 3.953 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/1.21, allocations: 3.781 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.21, allocations: 4.797 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/1.21, allocations: 164.1 kB / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.21, allocations: 0 / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.237e-05/1.21, allocations: 9.375 kB / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/1.21, allocations: 0 / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/1.21, allocations: 4.641 kB / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/1.21, allocations: 1.422 kB / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.21, allocations: 0 / 1.356 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/1.21, allocations: 173 kB / 1.356 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/1.21, allocations: 85.62 kB / 1.356 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/1.21, allocations: 9.062 kB / 1.356 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.047e-05/1.21, allocations: 9.219 kB / 1.356 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/1.21, allocations: 5.297 kB / 1.356 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/1.21, allocations: 4.5 kB / 1.356 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.893e-05/1.21, allocations: 84.58 kB / 1.356 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.21, allocations: 0 / 1.356 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002297/1.211, allocations: 23.11 kB / 1.356 GB, free: 31.28 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.0005129/1.211, allocations: 0.7076 MB / 1.357 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001991/1.211, allocations: 145.4 kB / 1.357 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.211, allocations: 64 / 1.357 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/1.211, allocations: 187.2 kB / 1.357 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/1.212, allocations: 9.703 kB / 1.357 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004223/1.212, allocations: 140.8 kB / 1.357 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/1.212, allocations: 0.6961 MB / 1.358 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.859e-05/1.212, allocations: 6.531 kB / 1.358 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/1.212, allocations: 24.69 kB / 1.358 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.212, allocations: 0 / 1.358 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/1.236, allocations: 1.492 MB / 1.36 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/1.237, allocations: 167.3 kB / 1.36 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.407/2.644, allocations: 6.25 kB / 1.36 GB, free: 29.41 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