Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triMovMea.u|triMovMea.y|triMovMea1.y|booPul.y|triMovMea2.y|booPul1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000993/0.0009931, allocations: 99.86 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.001035/0.001035, 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.424/1.424, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.691/2.691, allocations: 436.5 MB / 0.7104 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 15.98 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8764/0.8768, allocations: 153.7 MB / 1.021 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001326/0.8782, allocations: 0.5638 MB / 1.021 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001773/0.88, allocations: 1.249 MB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.726e-05/0.88, allocations: 8 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.8802, allocations: 15.84 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.8803, allocations: 27.95 kB / 1.023 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006585/0.881, allocations: 237 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.8813, allocations: 151.7 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.8814, allocations: 25.09 kB / 1.023 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.8816, allocations: 111.7 kB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.8818, allocations: 99.69 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.8818, allocations: 12 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.149e-05/0.8819, allocations: 19.98 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.121e-05/0.882, allocations: 35.89 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.63e-05/0.8821, allocations: 61.62 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.8823, allocations: 181.5 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.8823, allocations: 0 / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8823, allocations: 0 / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.8823, allocations: 0 / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008442/0.8832, allocations: 498.6 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.8832, allocations: 15.98 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.398e-05/0.8833, allocations: 19.81 kB / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.8836, allocations: 226.7 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.8836, allocations: 19.98 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.8837, allocations: 23.94 kB / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.884, allocations: 195.6 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.8841, allocations: 0 / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.8841, allocations: 4 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.8841, allocations: 4 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.8843, allocations: 92.11 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.885, allocations: 476.7 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.8852, allocations: 142.6 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.8853, allocations: 4 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003359/0.8856, allocations: 207.9 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.8856, allocations: 0 / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.0009969/0.8866, allocations: 0.6024 MB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.8867, allocations: 67.28 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.8869, allocations: 135.6 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.523e-05/0.8869, allocations: 45.69 kB / 1.026 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.015e-05/0.887, allocations: 104.6 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.8871, allocations: 63.25 kB / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.8871, allocations: 8 kB / 1.026 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001773/0.8873, allocations: 334.8 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.8876, allocations: 148.7 kB / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003549/0.888, allocations: 205.2 kB / 1.027 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.8883, allocations: 224.4 kB / 1.027 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.8883, allocations: 0 / 1.027 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008048/0.8891, allocations: 0.4907 MB / 1.028 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.23e-05/0.8892, allocations: 71.39 kB / 1.028 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.8892, allocations: 0 / 1.028 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.8892, allocations: 4 kB / 1.028 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.8895, allocations: 52.03 kB / 1.028 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.8895, allocations: 8 kB / 1.028 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004287/0.8899, allocations: 95.62 kB / 1.028 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-05/0.89, allocations: 23.98 kB / 1.028 GB, free: 9.445 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition5,$whenCondition6,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 35 * Array equations: 2 * Algorithm blocks: 2 * 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.0002637/0.8903, allocations: 169.8 kB / 1.028 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.8903, allocations: 15.81 kB / 1.028 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.42e-05/0.8903, allocations: 13.88 kB / 1.028 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.8904, allocations: 7.984 kB / 1.028 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.8904, allocations: 8 kB / 1.028 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.8904, allocations: 0 / 1.028 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009093/0.8913, allocations: 0.659 MB / 1.029 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.8913, allocations: 4 kB / 1.029 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.406e-05/0.8914, allocations: 11.92 kB / 1.029 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.8914, allocations: 0 / 1.029 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.8914, allocations: 15.98 kB / 1.029 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.8914, allocations: 7.938 kB / 1.029 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8914, allocations: 0 / 1.029 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006237/0.8921, allocations: 463.1 kB / 1.029 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/0.8921, allocations: 88.92 kB / 1.029 GB, free: 7.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.8922, allocations: 15.98 kB / 1.029 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.8923, allocations: 15.98 kB / 1.029 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.516e-05/0.8924, allocations: 15.97 kB / 1.029 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.8924, allocations: 19.98 kB / 1.029 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.577e-05/0.8925, allocations: 100.5 kB / 1.03 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8925, allocations: 4 kB / 1.03 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000348/0.8929, allocations: 67.83 kB / 1.03 GB, free: 7.664 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triMovMea.y,triMovMea.iSample,triMovMea.counter,triMovMea.index,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.y,triMovMea1.iSample,triMovMea1.counter,triMovMea1.index,triMovMea1.ySample[1],triMovMea2.y,triMovMea2.iSample,triMovMea2.counter,triMovMea2.index,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],booPul1.y) * Number of discrete states: 13 (triMovMea2.iSample,triMovMea2.ySample[1],triMovMea2.ySample[2],triMovMea2.ySample[3],triMovMea2.counter,triMovMea.iSample,triMovMea.counter,triMovMea.ySample[1],triMovMea.ySample[2],triMovMea.ySample[3],triMovMea1.iSample,triMovMea1.counter,triMovMea1.ySample[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0002883/0.8932, allocations: 141.4 kB / 1.03 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007226/0.8939, allocations: 455.4 kB / 1.03 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.8939, allocations: 0 / 1.03 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.8941, allocations: 112 kB / 1.03 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.8944, allocations: 36.17 kB / 1.03 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006146/0.895, allocations: 344.6 kB / 1.031 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.8954, allocations: 0.7247 MB / 1.031 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.728e-05/0.8955, allocations: 25.53 kB / 1.031 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.995e-05/0.8956, allocations: 15.44 kB / 1.031 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.8956, allocations: 0 / 1.031 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of Templates: time 0.006599/0.9022, allocations: 3.264 MB / 1.035 GB, free: 2.523 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches