Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart",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.001405/0.001405, allocations: 99.39 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.001878/0.001878, allocations: 177.3 kB / 15.95 MB, free: 216 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.665/1.665, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.891/2.891, allocations: 409.2 MB / 0.6838 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003692, allocations: 12 kB / 0.8375 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9362/0.9365, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.00221/0.9388, allocations: 1.61 MB / 0.9825 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009779/0.9398, allocations: 0.6238 MB / 0.9831 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.441e-05/0.9399, allocations: 0 / 0.9831 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.146e-05/0.9399, allocations: 11.86 kB / 0.9831 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.9401, allocations: 43.86 kB / 0.9831 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003798/0.9405, allocations: 123.8 kB / 0.9832 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.9408, allocations: 187.6 kB / 0.9834 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.9409, allocations: 52.3 kB / 0.9835 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.9411, allocations: 103.7 kB / 0.9836 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.9413, allocations: 131.5 kB / 0.9837 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.9414, allocations: 16 kB / 0.9837 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.686e-05/0.9414, allocations: 16 kB / 0.9837 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.9416, allocations: 63.78 kB / 0.9838 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.201e-05/0.9417, allocations: 61.58 kB / 0.9838 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.9419, allocations: 205.7 kB / 0.984 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.9419, allocations: 0 / 0.984 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.344e-06/0.942, allocations: 0 / 0.984 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.942, allocations: 4 kB / 0.984 GB, free: 3.039 MB / 0.7325 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.001378/0.9434, allocations: 0.6041 MB / 0.9846 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.9434, allocations: 12.03 kB / 0.9846 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.434e-05/0.9435, allocations: 62.53 kB / 0.9847 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.9436, allocations: 31.62 kB / 0.9847 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.9438, allocations: 195.6 kB / 0.9849 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.944, allocations: 263.7 kB / 0.9852 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.944, allocations: 39.98 kB / 0.9852 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.9445, allocations: 261.7 kB / 0.9855 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.9446, allocations: 7.984 kB / 0.9855 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.9446, allocations: 8 kB / 0.9855 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.9446, allocations: 4 kB / 0.9855 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004273/0.9451, allocations: 187.8 kB / 0.9857 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.9462, allocations: 0.7777 MB / 0.9864 GB, free: 388 kB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000484/0.9467, allocations: 216.5 kB / 0.9866 GB, free: 144 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.228e-05/0.9467, allocations: 12.17 kB / 0.9866 GB, free: 132 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006809/0.9474, allocations: 315.7 kB / 0.9869 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=48): time 1.824e-06/0.9474, allocations: 0 / 0.9869 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48): time 0.001097/0.9485, allocations: 0.4972 MB / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.9486, allocations: 110.8 kB / 0.9875 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.9488, allocations: 179.4 kB / 0.9877 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/0.9488, allocations: 41.69 kB / 0.9877 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 7.945e-05/0.9489, allocations: 121.3 kB / 0.9879 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.9491, allocations: 149.9 kB / 0.988 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.305e-05/0.9491, allocations: 8 kB / 0.988 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.9493, allocations: 350.8 kB / 0.9883 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00031/0.9496, allocations: 149.2 kB / 0.9885 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.95, allocations: 260.7 kB / 0.9887 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004312/0.9505, allocations: 171.9 kB / 0.9889 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.9505, allocations: 4 kB / 0.9889 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009009/0.9514, allocations: 0.4895 MB / 0.9894 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.9514, allocations: 5.25 kB / 0.9894 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.9514, allocations: 4 kB / 0.9894 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.9514, allocations: 4 kB / 0.9894 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/0.9518, allocations: 99.83 kB / 0.9895 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.9518, allocations: 4 kB / 0.9895 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.9522, allocations: 71.64 kB / 0.9896 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.425e-05/0.9523, allocations: 20 kB / 0.9896 GB, free: 12.99 MB / 0.7481 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.0001833/0.9524, allocations: 163.4 kB / 0.9897 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.928e-05/0.9525, allocations: 31.62 kB / 0.9898 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.81e-05/0.9526, allocations: 33.86 kB / 0.9898 GB, free: 12.76 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.9526, allocations: 4 kB / 0.9898 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.9526, allocations: 0 / 0.9898 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.9526, allocations: 4 kB / 0.9898 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.9531, allocations: 361.1 kB / 0.9901 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.9531, allocations: 0 / 0.9901 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003892/0.9535, allocations: 75.95 kB / 0.9902 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.9535, allocations: 8 kB / 0.9902 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.9536, allocations: 15.98 kB / 0.9902 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.827e-06/0.9536, allocations: 7.938 kB / 0.9902 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.9536, allocations: 3.938 kB / 0.9903 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.9547, allocations: 0.613 MB / 0.9908 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.849e-05/0.9548, allocations: 100.8 kB / 0.9909 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.9548, allocations: 16 kB / 0.991 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.9551, allocations: 43.95 kB / 0.991 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.9552, allocations: 43.94 kB / 0.991 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.9552, allocations: 19.98 kB / 0.9911 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001059/0.9553, allocations: 124.1 kB / 0.9912 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9554, allocations: 192 / 0.9912 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003299/0.9557, allocations: 83.94 kB / 0.9913 GB, free: 11.15 MB / 0.7481 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.001607/0.9573, allocations: 1.324 MB / 0.9926 GB, free: 9.785 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008676/0.9582, allocations: 390.8 kB / 0.9929 GB, free: 9.402 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.9582, allocations: 3.938 kB / 0.9929 GB, free: 9.398 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003475/0.9585, allocations: 183.7 kB / 0.9931 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.9588, allocations: 28.17 kB / 0.9931 GB, free: 9.191 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.9615, allocations: 2.689 MB / 0.9958 GB, free: 6.398 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.9621, allocations: 0.7725 MB / 0.9965 GB, free: 5.602 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000223/0.9623, allocations: 42.94 kB / 0.9966 GB, free: 5.562 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.9625, allocations: 87.41 kB / 0.9966 GB, free: 5.477 MB / 0.7481 GB Notification: Performance of SimCode: time 7.81e-07/0.9625, allocations: 0 / 0.9966 GB, free: 5.477 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9039/1.866, allocations: 5.419 MB / 1.002 GB, free: 276 kB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003171/1.867, allocations: 220.6 kB / 1.002 GB, free: 28 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.258/4.124, allocations: 3.938 kB / 1.002 GB, free: 24 kB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat does not exist to compare? outputFormat=mat