Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",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.366/2.366, allocations: 393.5 MB / 408.4 MB, free: 11.08 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.001076, allocations: 184 kB / 0.4901 GB, free: 2.246 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.576/1.576, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.001117/0.001117, allocations: 106 kB / 0.9396 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004794/0.0004795, allocations: 14.34 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2981, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.4928, allocations: 150.6 MB / 1.376 GB, free: 2.82 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003457/0.4932, allocations: 75.94 kB / 1.376 GB, free: 2.746 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02497/0.5182, allocations: 8.741 MB / 1.385 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.054e-06/0.5183, allocations: 0 / 1.385 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.213e-05/0.5183, allocations: 4 kB / 1.385 GB, free: 9.98 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0013/0.5196, allocations: 0.6338 MB / 1.386 GB, free: 9.297 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.5197, allocations: 8.562 kB / 1.386 GB, free: 9.289 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.5198, allocations: 62.53 kB / 1.386 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.866e-05/0.5199, allocations: 31.72 kB / 1.386 GB, free: 9.188 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.5201, allocations: 199.5 kB / 1.386 GB, free: 8.949 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/0.5203, allocations: 263.8 kB / 1.386 GB, free: 8.637 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.146e-05/0.5204, allocations: 27.95 kB / 1.386 GB, free: 8.609 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.5209, allocations: 265.7 kB / 1.386 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.5209, allocations: 3.906 kB / 1.386 GB, free: 8.332 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.521, allocations: 16 kB / 1.386 GB, free: 8.316 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.521, allocations: 4 kB / 1.386 GB, free: 8.312 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000532/0.5215, allocations: 187.8 kB / 1.387 GB, free: 8.129 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.5231, allocations: 0.8012 MB / 1.387 GB, free: 7.266 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005446/0.5236, allocations: 208.5 kB / 1.388 GB, free: 7.035 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.5237, allocations: 8.188 kB / 1.388 GB, free: 7.027 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006457/0.5243, allocations: 315.7 kB / 1.388 GB, free: 6.695 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.835e-06/0.5244, allocations: 0 / 1.388 GB, free: 6.695 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001187/0.5255, allocations: 498 kB / 1.388 GB, free: 6.203 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.5256, allocations: 118.8 kB / 1.389 GB, free: 6.062 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.5258, allocations: 162.6 kB / 1.389 GB, free: 5.895 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.5259, allocations: 41.64 kB / 1.389 GB, free: 5.848 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.526, allocations: 117.3 kB / 1.389 GB, free: 5.73 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.5261, allocations: 153.9 kB / 1.389 GB, free: 5.578 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.5261, allocations: 8 kB / 1.389 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5263, allocations: 346.8 kB / 1.389 GB, free: 5.223 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.5266, allocations: 153.2 kB / 1.389 GB, free: 5.074 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.527, allocations: 248.8 kB / 1.39 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.5274, allocations: 175.9 kB / 1.39 GB, free: 4.621 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.5274, allocations: 4 kB / 1.39 GB, free: 4.617 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009781/0.5284, allocations: 489.4 kB / 1.39 GB, free: 4.133 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.5284, allocations: 4 kB / 1.39 GB, free: 4.129 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.5284, allocations: 12.14 kB / 1.39 GB, free: 4.117 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.5284, allocations: 4.094 kB / 1.39 GB, free: 4.113 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004094/0.5289, allocations: 99.83 kB / 1.39 GB, free: 4.016 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.5289, allocations: 7.984 kB / 1.39 GB, free: 4.008 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.5292, allocations: 79.55 kB / 1.391 GB, free: 3.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.5293, allocations: 20 kB / 1.391 GB, free: 3.91 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.movAve1.mode,movAve1.mode,$whenCondition6,$PRE.movAve2.mode,movAve2.mode,$whenCondition7,$PRE.movAve3.mode,movAve3.mode,$whenCondition8,$PRE.movAve4.mode,movAve4.mode,$whenCondition9,$PRE.movAve5.mode,movAve5.mode,$whenCondition3,$PRE.movAve6.mode,movAve6.mode,$whenCondition4,$PRE.movAve7.mode,movAve7.mode,$whenCondition1,$PRE.movAve8.mode,movAve8.mode,$whenCondition2,$PRE.movAve9.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * 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.0001977/0.5295, allocations: 167.3 kB / 1.391 GB, free: 3.738 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.5296, allocations: 27.72 kB / 1.391 GB, free: 3.711 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.184e-05/0.5296, allocations: 29.88 kB / 1.391 GB, free: 3.68 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.5296, allocations: 7.984 kB / 1.391 GB, free: 3.672 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.5297, allocations: 4 kB / 1.391 GB, free: 3.668 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.5297, allocations: 4 kB / 1.391 GB, free: 3.664 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003837/0.5301, allocations: 357.1 kB / 1.391 GB, free: 3.266 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5301, allocations: 0 / 1.391 GB, free: 3.266 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.5305, allocations: 75.89 kB / 1.391 GB, free: 3.191 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/0.5305, allocations: 4 kB / 1.391 GB, free: 3.188 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/0.5306, allocations: 15.94 kB / 1.391 GB, free: 3.172 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.5306, allocations: 4 kB / 1.391 GB, free: 3.168 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.5306, allocations: 3.984 kB / 1.391 GB, free: 3.164 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.5317, allocations: 0.6178 MB / 1.392 GB, free: 2.504 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.488e-05/0.5318, allocations: 104.8 kB / 1.392 GB, free: 2.383 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.5318, allocations: 4 kB / 1.392 GB, free: 2.379 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.5321, allocations: 51.95 kB / 1.392 GB, free: 2.328 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.5322, allocations: 43.94 kB / 1.392 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.5323, allocations: 15.98 kB / 1.392 GB, free: 2.27 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.5e-05/0.5324, allocations: 125.2 kB / 1.392 GB, free: 2.148 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5324, allocations: 0 / 1.392 GB, free: 2.148 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003573/0.5327, allocations: 79.91 kB / 1.392 GB, free: 2.07 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001558/0.5343, allocations: 1.328 MB / 1.394 GB, free: 0.7031 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0007752/0.5351, allocations: 400.3 kB / 1.394 GB, free: 324 kB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5351, allocations: 0 / 1.394 GB, free: 324 kB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000366/0.5355, allocations: 192.6 kB / 1.394 GB, free: 132 kB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.5358, allocations: 28.92 kB / 1.394 GB, free: 104 kB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.5383, allocations: 2.687 MB / 1.397 GB, free: 13.31 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.5387, allocations: 0.7725 MB / 1.397 GB, free: 12.51 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001958/0.5389, allocations: 39.14 kB / 1.398 GB, free: 12.47 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.5391, allocations: 87.41 kB / 1.398 GB, free: 12.38 MB / 0.9011 GB Notification: Performance of SimCode: time 5.01e-07/0.5391, allocations: 0 / 1.398 GB, free: 12.38 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.5586, allocations: 5.42 MB / 1.403 GB, free: 7.164 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002162/0.5589, allocations: 189.4 kB / 1.403 GB, free: 6.93 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.553, allocations: 0.5 kB / 1.403 GB, free: 6.93 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat does not exist to compare? outputFormat=mat