Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001637/0.001637, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001823/0.001823, allocations: 190.3 kB / 16.25 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.355/2.355, allocations: 390.2 MB / 0.6644 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 71.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7988/0.8003, allocations: 140.4 MB / 0.9493 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002926/0.8033, allocations: 2.011 MB / 0.9512 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001049/0.8043, allocations: 0.638 MB / 0.9518 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.8045, allocations: 1.531 kB / 0.9518 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.041e-05/0.8046, allocations: 15.86 kB / 0.9519 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.8047, allocations: 32.27 kB / 0.9519 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.8052, allocations: 139.7 kB / 0.952 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.8055, allocations: 324.1 kB / 0.9523 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.8056, allocations: 48.28 kB / 0.9524 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002227/0.8059, allocations: 133 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001831/0.8061, allocations: 150.7 kB / 0.9527 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.8061, allocations: 33.5 kB / 0.9527 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.87e-05/0.8062, allocations: 30.16 kB / 0.9527 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.076e-05/0.8062, allocations: 80.17 kB / 0.9528 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.911e-05/0.8063, allocations: 135.4 kB / 0.9529 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.8066, allocations: 304.4 kB / 0.9532 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.8066, allocations: 0 / 0.9532 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8066, allocations: 0 / 0.9532 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.8066, allocations: 5.344 kB / 0.9532 GB, free: 6.062 MB / 0.7169 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.001061/0.8076, allocations: 0.6218 MB / 0.9538 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.8077, allocations: 8.875 kB / 0.9538 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.617e-05/0.8078, allocations: 62.09 kB / 0.9539 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.175e-05/0.8078, allocations: 34.09 kB / 0.9539 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.897e-05/0.8079, allocations: 199.3 kB / 0.9541 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.8081, allocations: 266.8 kB / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.8081, allocations: 35.41 kB / 0.9544 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.8086, allocations: 256.3 kB / 0.9546 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.8086, allocations: 1.281 kB / 0.9546 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.8086, allocations: 10.56 kB / 0.9547 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.8086, allocations: 8.969 kB / 0.9547 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003783/0.809, allocations: 174.2 kB / 0.9548 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008596/0.8099, allocations: 0.7844 MB / 0.9556 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004143/0.8103, allocations: 213.9 kB / 0.9558 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002228/0.8105, allocations: 131.2 kB / 0.9559 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.598e-05/0.8106, allocations: 11.7 kB / 0.9559 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005242/0.8111, allocations: 312.1 kB / 0.9562 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.963e-06/0.8111, allocations: 0 / 0.9562 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009022/0.8121, allocations: 488.6 kB / 0.9567 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.8121, allocations: 114.4 kB / 0.9568 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.8122, allocations: 176.3 kB / 0.957 GB, free: 3 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.8123, allocations: 45.67 kB / 0.957 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.492e-05/0.8123, allocations: 124.1 kB / 0.9571 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.641e-05/0.8124, allocations: 150 kB / 0.9573 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.8125, allocations: 105.1 kB / 0.9574 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.442e-05/0.8126, allocations: 337.2 kB / 0.9577 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.8129, allocations: 148.7 kB / 0.9578 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002978/0.8132, allocations: 255.3 kB / 0.9581 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005203/0.8137, allocations: 389.6 kB / 0.9585 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.8137, allocations: 1.094 kB / 0.9585 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007181/0.8145, allocations: 498.7 kB / 0.9589 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.8145, allocations: 6.469 kB / 0.9589 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.8145, allocations: 3.094 kB / 0.9589 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.8145, allocations: 9.594 kB / 0.959 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.8149, allocations: 98.23 kB / 0.9591 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.8149, allocations: 9.406 kB / 0.9591 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.8152, allocations: 57.39 kB / 0.9591 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.8152, allocations: 19.22 kB / 0.9591 GB, free: 1.469 MB / 0.7169 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 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.8153, allocations: 160.3 kB / 0.9593 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.84e-05/0.8154, allocations: 28.25 kB / 0.9593 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.057e-05/0.8155, allocations: 34.23 kB / 0.9593 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.8155, allocations: 5.438 kB / 0.9594 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.8155, allocations: 1.125 kB / 0.9594 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.8155, allocations: 5.047 kB / 0.9594 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.8158, allocations: 357.3 kB / 0.9597 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.8158, allocations: 9.188 kB / 0.9597 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003875/0.8162, allocations: 75.08 kB / 0.9598 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.8162, allocations: 6.438 kB / 0.9598 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.8162, allocations: 13.39 kB / 0.9598 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.8163, allocations: 2.547 kB / 0.9598 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8163, allocations: 3.984 kB / 0.9598 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009207/0.8172, allocations: 0.5821 MB / 0.9604 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.54e-05/0.8172, allocations: 109.7 kB / 0.9605 GB, free: 460 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.8173, allocations: 7.125 kB / 0.9605 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.8175, allocations: 36.08 kB / 0.9605 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.8176, allocations: 51.5 kB / 0.9606 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.8177, allocations: 19.42 kB / 0.9606 GB, free: 400 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.529e-05/0.8177, allocations: 124.4 kB / 0.9607 GB, free: 300 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8178, allocations: 1.469 kB / 0.9607 GB, free: 300 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003202/0.8181, allocations: 79 kB / 0.9608 GB, free: 284 kB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001249/0.8193, allocations: 1.153 MB / 0.9619 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007154/0.8201, allocations: 406.5 kB / 0.9623 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8201, allocations: 0 / 0.9623 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000381/0.8205, allocations: 201.5 kB / 0.9625 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.8208, allocations: 41.61 kB / 0.9625 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004066/0.8248, allocations: 3.244 MB / 0.9657 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.8252, allocations: 0.7628 MB / 0.9664 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001643/0.8253, allocations: 40.64 kB / 0.9665 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.8255, allocations: 91.59 kB / 0.9666 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.8255, allocations: 4 kB / 0.9666 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07117/0.8967, allocations: 6.083 MB / 0.9725 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.897, allocations: 238.3 kB / 0.9727 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.812, allocations: 1.281 kB / 0.9727 GB, free: 8.801 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat does not exist to compare? outputFormat=mat