Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.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 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.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",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.001183/0.001183, allocations: 100.5 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.00138/0.00138, allocations: 177.3 kB / 15.94 MB, free: 228 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.837/1.837, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.199/3.199, allocations: 409.2 MB / 0.6838 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.000442, allocations: 20 kB / 0.8375 GB, free: 6.551 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7994/0.7999, allocations: 146.8 MB / 0.9809 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001034/0.8009, allocations: 0.5656 MB / 0.9814 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001613/0.8026, allocations: 1.249 MB / 0.9827 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.307e-05/0.8027, allocations: 4 kB / 0.9827 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.636e-05/0.8027, allocations: 7.875 kB / 0.9827 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.8029, allocations: 39.92 kB / 0.9827 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00069/0.8036, allocations: 233.3 kB / 0.9829 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001814/0.8038, allocations: 155.7 kB / 0.9831 GB, free: 4.039 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.8039, allocations: 21.11 kB / 0.9831 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.8041, allocations: 103.8 kB / 0.9832 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.8042, allocations: 103.7 kB / 0.9833 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.8043, allocations: 15.94 kB / 0.9833 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.198e-05/0.8044, allocations: 19.98 kB / 0.9833 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.8044, allocations: 35.89 kB / 0.9834 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.486e-05/0.8045, allocations: 57.64 kB / 0.9834 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001997/0.8047, allocations: 177.8 kB / 0.9836 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.8047, allocations: 4 kB / 0.9836 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8047, allocations: 0 / 0.9836 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.8048, allocations: 0 / 0.9836 GB, free: 3.508 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007664/0.8055, allocations: 0.4908 MB / 0.9841 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.8056, allocations: 15.97 kB / 0.9841 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.651e-05/0.8056, allocations: 46.55 kB / 0.9841 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.349e-05/0.8057, allocations: 19.81 kB / 0.9841 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.806, allocations: 222.8 kB / 0.9844 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.806, allocations: 23.98 kB / 0.9844 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.8061, allocations: 16 kB / 0.9844 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003564/0.8065, allocations: 195.4 kB / 0.9846 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.8065, allocations: 0 / 0.9846 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.8065, allocations: 4 kB / 0.9846 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.8065, allocations: 0 / 0.9846 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.8067, allocations: 100.1 kB / 0.9847 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006211/0.8073, allocations: 476.7 kB / 0.9851 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.8076, allocations: 146.6 kB / 0.9853 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.247e-05/0.8076, allocations: 0 / 0.9853 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003215/0.808, allocations: 203.9 kB / 0.9855 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=28): time 1.903e-06/0.808, allocations: 0 / 0.9855 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.000889/0.8089, allocations: 0.6039 MB / 0.9861 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.8089, allocations: 67.2 kB / 0.9861 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.8091, allocations: 139.5 kB / 0.9863 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.251e-05/0.8091, allocations: 45.69 kB / 0.9863 GB, free: 480 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.737e-05/0.8092, allocations: 100.6 kB / 0.9864 GB, free: 376 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.8092, allocations: 63.25 kB / 0.9865 GB, free: 312 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-05/0.8093, allocations: 12 kB / 0.9865 GB, free: 300 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.8094, allocations: 338.8 kB / 0.9868 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.8097, allocations: 140.7 kB / 0.9869 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.81, allocations: 213.2 kB / 0.9871 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.8104, allocations: 208.5 kB / 0.9873 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.8104, allocations: 4 kB / 0.9873 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007851/0.8112, allocations: 0.4984 MB / 0.9878 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.8112, allocations: 67.39 kB / 0.9879 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.8112, allocations: 7.938 kB / 0.9879 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.8113, allocations: 0 / 0.9879 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/0.8115, allocations: 55.91 kB / 0.9879 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.8115, allocations: 8.125 kB / 0.988 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.8119, allocations: 93.25 kB / 0.988 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/0.812, allocations: 23.98 kB / 0.9881 GB, free: 14.59 MB / 0.7481 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.0001768/0.8122, allocations: 165.7 kB / 0.9882 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.8122, allocations: 15.81 kB / 0.9882 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.8123, allocations: 13.88 kB / 0.9882 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.8123, allocations: 7.938 kB / 0.9883 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.8123, allocations: 7.984 kB / 0.9883 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.8123, allocations: 0 / 0.9883 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007809/0.8131, allocations: 0.6738 MB / 0.9889 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.8131, allocations: 4 kB / 0.9889 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.453e-05/0.8131, allocations: 7.984 kB / 0.9889 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.8131, allocations: 0 / 0.9889 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.8132, allocations: 11.98 kB / 0.9889 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.8132, allocations: 4 kB / 0.9889 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8132, allocations: 0 / 0.9889 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000594/0.8138, allocations: 455.9 kB / 0.9894 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.022e-05/0.8139, allocations: 92.91 kB / 0.9895 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.8139, allocations: 15.98 kB / 0.9895 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.814, allocations: 11.98 kB / 0.9895 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.8141, allocations: 19.97 kB / 0.9895 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.8142, allocations: 15.98 kB / 0.9895 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.436e-05/0.8142, allocations: 104.2 kB / 0.9896 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8142, allocations: 0 / 0.9896 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000353/0.8146, allocations: 75.83 kB / 0.9897 GB, free: 12.81 MB / 0.7481 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.001091/0.8157, allocations: 1.023 MB / 0.9907 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007247/0.8164, allocations: 456.1 kB / 0.9911 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.8164, allocations: 4.25 kB / 0.9911 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.8167, allocations: 115.9 kB / 0.9913 GB, free: 11.17 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.8169, allocations: 23.97 kB / 0.9913 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.8184, allocations: 1.506 MB / 0.9927 GB, free: 9.566 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.8187, allocations: 0.7206 MB / 0.9935 GB, free: 8.82 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.627e-05/0.8188, allocations: 21.55 kB / 0.9935 GB, free: 8.797 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.668e-05/0.8189, allocations: 47.41 kB / 0.9935 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of SimCode: time 3.1e-07/0.8189, allocations: 4 kB / 0.9935 GB, free: 8.75 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08731/0.9062, allocations: 4.759 MB / 0.9982 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003821/0.9066, allocations: 197.9 kB / 0.9984 GB, free: 3.965 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.926/3.833, allocations: 0 / 0.9984 GB, free: 3.965 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean_res.mat does not exist to compare? outputFormat=mat