Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_8_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.001143/0.001142, allocations: 108 kB / 15.61 MB, free: 152 kB / 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: 196.6 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.1 MB / 222.4 MB, free: 4.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.727/1.727, allocations: 292.3 MB / 0.5489 GB, free: 12.84 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 73.38 kB / 0.6716 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2185, allocations: 114.6 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002029/0.2206, allocations: 0.8793 MB / 0.7844 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001923/0.2225, allocations: 1.305 MB / 0.7856 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.251e-05/0.2226, allocations: 0 / 0.7856 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.2228, allocations: 19.8 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.223, allocations: 27.77 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008897/0.2239, allocations: 273.3 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000405/0.2243, allocations: 291.5 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.2245, allocations: 25.11 kB / 0.7862 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000234/0.2247, allocations: 127.7 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.225, allocations: 119.6 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.102e-05/0.225, allocations: 24 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.2252, allocations: 43.98 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.2253, allocations: 39.89 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.2254, allocations: 107.5 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003721/0.2258, allocations: 259.5 kB / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2258, allocations: 0 / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2258, allocations: 0 / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.256e-05/0.2258, allocations: 0 / 0.7869 GB, free: 9.824 MB / 0.6075 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.0009864/0.2268, allocations: 0.5415 MB / 0.7875 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2269, allocations: 16.03 kB / 0.7875 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.069e-05/0.2269, allocations: 46.67 kB / 0.7875 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.227, allocations: 20.75 kB / 0.7875 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.2273, allocations: 228.1 kB / 0.7878 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.2273, allocations: 12.36 kB / 0.7878 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.2274, allocations: 20.38 kB / 0.7878 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.2277, allocations: 186.7 kB / 0.788 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.2277, allocations: 3.938 kB / 0.788 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.2278, allocations: 4 kB / 0.788 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2278, allocations: 4 kB / 0.788 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.228, allocations: 92.17 kB / 0.7881 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007149/0.2287, allocations: 480.5 kB / 0.7885 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.229, allocations: 134.5 kB / 0.7886 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.2292, allocations: 96.81 kB / 0.7887 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.2292, allocations: 4 kB / 0.7887 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003825/0.2296, allocations: 205.1 kB / 0.7889 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.994e-06/0.2296, allocations: 3.938 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008771/0.2305, allocations: 453.6 kB / 0.7894 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.2305, allocations: 59.39 kB / 0.7894 GB, free: 7.051 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.2307, allocations: 148.5 kB / 0.7896 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.024e-05/0.2307, allocations: 37.7 kB / 0.7896 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.142e-05/0.2308, allocations: 104.6 kB / 0.7897 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.886e-05/0.2309, allocations: 71.17 kB / 0.7898 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.231, allocations: 86 kB / 0.7899 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.2312, allocations: 330.8 kB / 0.7902 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.2315, allocations: 144.7 kB / 0.7903 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.2318, allocations: 217.1 kB / 0.7905 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005478/0.2323, allocations: 362.4 kB / 0.7909 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2324, allocations: 0 / 0.7909 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008301/0.2332, allocations: 498.8 kB / 0.7913 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.2333, allocations: 67.39 kB / 0.7914 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.2333, allocations: 7.938 kB / 0.7914 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2333, allocations: 96 / 0.7914 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.2335, allocations: 59.97 kB / 0.7915 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2336, allocations: 4 kB / 0.7915 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/0.234, allocations: 87.53 kB / 0.7916 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.234, allocations: 23.98 kB / 0.7916 GB, free: 4.734 MB / 0.6075 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,booPul1.y,$PRE.booPul1.y,$whenCondition4,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2,triMovMea2.ySample[3],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[1],triMovMea2.index,triMovMea2.counter,$PRE.triMovMea2.counter,triMovMea2.iSample,$PRE.triMovMea2.iSample,triMovMea2.y,triMovMea1.ySample[1],$PRE.triMovMea1.ySample[1],triMovMea1.index,triMovMea1.counter,$PRE.triMovMea1.counter,triMovMea1.iSample,$PRE.triMovMea1.iSample,triMovMea1.y,triMovMea.ySample[3],$PRE.triMovMea.ySample[3],triMovMea.ySample[2],$PRE.triMovMea.ySample[2],triMovMea.ySample[1],$PRE.triMovMea.ySample[1],triMovMea.index,triMovMea.counter,$PRE.triMovMea.counter,triMovMea.iSample,$PRE.triMovMea.iSample,triMovMea.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.2342, allocations: 157.8 kB / 0.7917 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.419e-05/0.2342, allocations: 15.81 kB / 0.7917 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.2343, allocations: 17.86 kB / 0.7918 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2343, allocations: 4 kB / 0.7918 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2343, allocations: 4 kB / 0.7918 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2343, allocations: 3.938 kB / 0.7918 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007761/0.2351, allocations: 0.6552 MB / 0.7924 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2351, allocations: 0 / 0.7924 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.587e-05/0.2352, allocations: 15.98 kB / 0.7924 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.2352, allocations: 4 kB / 0.7924 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.2352, allocations: 11.92 kB / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2352, allocations: 0 / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2352, allocations: 0 / 0.7924 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005941/0.2358, allocations: 459 kB / 0.7929 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.087e-05/0.2359, allocations: 92.86 kB / 0.793 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.763e-05/0.2359, allocations: 27.92 kB / 0.793 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.2361, allocations: 11.92 kB / 0.793 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.355e-05/0.2361, allocations: 15.98 kB / 0.793 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.2362, allocations: 15.98 kB / 0.793 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.768e-05/0.2362, allocations: 106.2 kB / 0.7931 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2363, allocations: 0 / 0.7931 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003502/0.2366, allocations: 67.91 kB / 0.7932 GB, free: 2.969 MB / 0.6075 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 (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.0009016/0.2375, allocations: 1.027 MB / 0.7942 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007171/0.2382, allocations: 478.3 kB / 0.7947 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2383, allocations: 0 / 0.7947 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002048/0.2385, allocations: 120.1 kB / 0.7948 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.2388, allocations: 35.89 kB / 0.7948 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003158/0.242, allocations: 2.645 MB / 0.7974 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.2423, allocations: 0.7242 MB / 0.7981 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.823e-05/0.2423, allocations: 17.55 kB / 0.7981 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.95e-05/0.2424, allocations: 47.41 kB / 0.7982 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of SimCode: time 4.71e-07/0.2424, allocations: 0 / 0.7982 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.2636, allocations: 5.105 MB / 0.8032 GB, free: 8.699 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.482/7.746, allocations: 15.22 kB / 0.8032 GB, free: 8.688 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)