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/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,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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.001395/0.001395, allocations: 172.7 kB / 15.95 MB, free: 208 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.556/1.556, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.618/2.618, allocations: 409.4 MB / 0.684 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 8 kB / 0.8378 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7609/0.7612, allocations: 146.8 MB / 0.9812 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.001213/0.7625, allocations: 0.7616 MB / 0.9819 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.7638, allocations: 1.092 MB / 0.983 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.027e-05/0.7638, allocations: 4 kB / 0.983 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.89e-05/0.7639, allocations: 11.81 kB / 0.983 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.764, allocations: 35.7 kB / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.7644, allocations: 127.8 kB / 0.9831 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002774/0.7647, allocations: 295.1 kB / 0.9834 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.7648, allocations: 40.31 kB / 0.9835 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.765, allocations: 115.7 kB / 0.9836 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.7652, allocations: 131.5 kB / 0.9837 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.544e-05/0.7652, allocations: 12 kB / 0.9837 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 3.402e-05/0.7653, allocations: 16 kB / 0.9837 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.692e-05/0.7653, allocations: 55.8 kB / 0.9838 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.723e-05/0.7654, allocations: 65.58 kB / 0.9838 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.7656, allocations: 217.7 kB / 0.984 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7656, allocations: 7.938 kB / 0.9841 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.263e-06/0.7656, allocations: 0 / 0.9841 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.7656, allocations: 4 kB / 0.9841 GB, free: 3.25 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.001146/0.7668, allocations: 0.6041 MB / 0.9846 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.7668, allocations: 8.031 kB / 0.9847 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.882e-05/0.7669, allocations: 58.55 kB / 0.9847 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.557e-05/0.767, allocations: 27.72 kB / 0.9847 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.7671, allocations: 195.6 kB / 0.9849 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.7674, allocations: 263.8 kB / 0.9852 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.554e-05/0.7674, allocations: 31.91 kB / 0.9852 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.7679, allocations: 273.6 kB / 0.9855 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.768, allocations: 4 kB / 0.9855 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.768, allocations: 15.98 kB / 0.9855 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.768, allocations: 4 kB / 0.9855 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004181/0.7684, allocations: 183.8 kB / 0.9857 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.7696, allocations: 0.7855 MB / 0.9864 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005248/0.7701, allocations: 212.3 kB / 0.9866 GB, free: 360 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.7704, allocations: 142.9 kB / 0.9868 GB, free: 208 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.315e-05/0.7705, allocations: 12.17 kB / 0.9868 GB, free: 196 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000633/0.7711, allocations: 311.4 kB / 0.9871 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=48): time 1.723e-06/0.7711, allocations: 0 / 0.9871 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48): time 0.001057/0.7722, allocations: 497 kB / 0.9876 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.735e-05/0.7723, allocations: 126.7 kB / 0.9877 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.7725, allocations: 183.3 kB / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.7726, allocations: 37.7 kB / 0.9879 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.554e-05/0.7727, allocations: 113.3 kB / 0.988 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.7728, allocations: 146 kB / 0.9881 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.7728, allocations: 12 kB / 0.9881 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001896/0.773, allocations: 346.8 kB / 0.9885 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.7734, allocations: 153.2 kB / 0.9886 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.7738, allocations: 260.8 kB / 0.9889 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.7741, allocations: 167.9 kB / 0.989 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.7741, allocations: 0 / 0.989 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008371/0.775, allocations: 496.8 kB / 0.9895 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.775, allocations: 4 kB / 0.9895 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.775, allocations: 8 kB / 0.9895 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.775, allocations: 8.094 kB / 0.9895 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/0.7754, allocations: 103.8 kB / 0.9896 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.7754, allocations: 7.984 kB / 0.9896 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.7757, allocations: 67.66 kB / 0.9897 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.7758, allocations: 20 kB / 0.9897 GB, free: 13.06 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.0001989/0.776, allocations: 163.4 kB / 0.9899 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.776, allocations: 27.7 kB / 0.9899 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.034e-05/0.7761, allocations: 29.88 kB / 0.9899 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.7761, allocations: 4 kB / 0.9899 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/0.7761, allocations: 8 kB / 0.9899 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.7762, allocations: 3.984 kB / 0.9899 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004263/0.7766, allocations: 365 kB / 0.9903 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.7766, allocations: 11.86 kB / 0.9903 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/0.777, allocations: 71.97 kB / 0.9904 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.777, allocations: 4 kB / 0.9904 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.777, allocations: 15.98 kB / 0.9904 GB, free: 12.31 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.777, allocations: 4 kB / 0.9904 GB, free: 12.31 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.777, allocations: 0 / 0.9904 GB, free: 12.31 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.7781, allocations: 0.5979 MB / 0.991 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.08e-05/0.7782, allocations: 104.8 kB / 0.9911 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.7782, allocations: 8.078 kB / 0.9911 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.7785, allocations: 47.91 kB / 0.9911 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.7786, allocations: 39.94 kB / 0.9912 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.7786, allocations: 16 kB / 0.9912 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.178e-05/0.7787, allocations: 124.1 kB / 0.9913 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7787, allocations: 0 / 0.9913 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003148/0.779, allocations: 83.94 kB / 0.9914 GB, free: 11.25 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.001404/0.7804, allocations: 1.16 MB / 0.9925 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006927/0.7811, allocations: 389.4 kB / 0.9929 GB, free: 9.684 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.7812, allocations: 0 / 0.9929 GB, free: 9.684 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.7815, allocations: 188.4 kB / 0.9931 GB, free: 9.5 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.7818, allocations: 46.91 kB / 0.9931 GB, free: 9.457 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002641/0.7845, allocations: 1.877 MB / 0.9949 GB, free: 7.488 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.7848, allocations: 0.7647 MB / 0.9957 GB, free: 6.699 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001694/0.785, allocations: 39.16 kB / 0.9957 GB, free: 6.664 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.7851, allocations: 87.34 kB / 0.9958 GB, free: 6.578 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.7851, allocations: 384 / 0.9958 GB, free: 6.578 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.8013, allocations: 5.524 MB / 1.001 GB, free: 1.262 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.8016, allocations: 198.5 kB / 1.001 GB, free: 1.027 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.838, allocations: 0 / 1.001 GB, free: 1.027 MB / 0.7481 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) Environment - environmentSimulation: 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