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.0018/0.001801, allocations: 105.4 kB / 15.7 MB, free: 24 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.002224/0.002224, allocations: 196.4 kB / 16.64 MB, free: 6.453 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.684/1.684, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.844/1.844, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001478/0.001478, allocations: 77.8 kB / 0.6718 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3081, allocations: 114.5 MB / 0.7837 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.002275/0.3104, allocations: 0.8877 MB / 0.7845 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.3124, allocations: 1.305 MB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.324e-05/0.3125, allocations: 0 / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.3126, allocations: 15.8 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.3127, allocations: 35.77 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006853/0.3134, allocations: 273.8 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003107/0.3138, allocations: 291.5 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.3139, allocations: 33.11 kB / 0.7864 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.3141, allocations: 127.7 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.3143, allocations: 131.6 kB / 0.7867 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.3144, allocations: 24 kB / 0.7867 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.746e-05/0.3145, allocations: 31.98 kB / 0.7867 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.3146, allocations: 43.89 kB / 0.7868 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3147, allocations: 103.6 kB / 0.7869 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.315, allocations: 267.4 kB / 0.7871 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.315, allocations: 0 / 0.7871 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.694e-06/0.315, allocations: 4 kB / 0.7871 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.3151, allocations: 0 / 0.7871 GB, free: 9.699 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.0009874/0.316, allocations: 0.5455 MB / 0.7876 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.3161, allocations: 8.031 kB / 0.7877 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.544e-05/0.3162, allocations: 42.73 kB / 0.7877 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.3163, allocations: 28.73 kB / 0.7877 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003309/0.3166, allocations: 224.1 kB / 0.7879 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.3166, allocations: 12.38 kB / 0.7879 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.3167, allocations: 20.36 kB / 0.788 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.3171, allocations: 185.6 kB / 0.7881 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3171, allocations: 3.938 kB / 0.7881 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.3171, allocations: 11.98 kB / 0.7882 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3171, allocations: 0 / 0.7882 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.3174, allocations: 84.19 kB / 0.7882 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007287/0.3181, allocations: 484.4 kB / 0.7887 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.3184, allocations: 142.5 kB / 0.7888 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.3185, allocations: 92.81 kB / 0.7889 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.3186, allocations: 0 / 0.7889 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003826/0.3189, allocations: 209 kB / 0.7891 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=28): time 1.413e-06/0.319, allocations: 0 / 0.7891 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.0008586/0.3198, allocations: 461.6 kB / 0.7896 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.656e-05/0.3199, allocations: 55.41 kB / 0.7896 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.3201, allocations: 140.7 kB / 0.7898 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.1e-05/0.3201, allocations: 49.69 kB / 0.7898 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.3202, allocations: 100.5 kB / 0.7899 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.873e-05/0.3203, allocations: 71.17 kB / 0.79 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.3205, allocations: 89.98 kB / 0.7901 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000184/0.3207, allocations: 338.8 kB / 0.7904 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.321, allocations: 144.7 kB / 0.7905 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.3213, allocations: 209.2 kB / 0.7907 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.3218, allocations: 350.4 kB / 0.791 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3218, allocations: 0 / 0.791 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008063/0.3226, allocations: 0.5027 MB / 0.7915 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.827e-05/0.3227, allocations: 71.39 kB / 0.7916 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.3227, allocations: 4.125 kB / 0.7916 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.3227, allocations: 4 kB / 0.7916 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.323, allocations: 47.91 kB / 0.7917 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.323, allocations: 4 kB / 0.7917 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.3234, allocations: 79.61 kB / 0.7917 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.133e-05/0.3234, allocations: 19.98 kB / 0.7918 GB, free: 4.621 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.0001692/0.3236, allocations: 165.8 kB / 0.7919 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.3236, allocations: 15.81 kB / 0.7919 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.3237, allocations: 13.86 kB / 0.7919 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.3237, allocations: 4 kB / 0.7919 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3237, allocations: 0 / 0.7919 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.3237, allocations: 3.938 kB / 0.792 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008012/0.3245, allocations: 0.6629 MB / 0.7926 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3245, allocations: 0 / 0.7926 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.232e-05/0.3246, allocations: 11.98 kB / 0.7926 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3246, allocations: 0 / 0.7926 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.3246, allocations: 15.92 kB / 0.7926 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3246, allocations: 0 / 0.7926 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3246, allocations: 0 / 0.7926 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006053/0.3252, allocations: 463.1 kB / 0.7931 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.3253, allocations: 96.91 kB / 0.7932 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.3254, allocations: 19.92 kB / 0.7932 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3255, allocations: 11.98 kB / 0.7932 GB, free: 3.051 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.3255, allocations: 11.98 kB / 0.7932 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.3256, allocations: 19.98 kB / 0.7932 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.051e-05/0.3257, allocations: 107.2 kB / 0.7933 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3257, allocations: 0 / 0.7933 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003133/0.326, allocations: 59.91 kB / 0.7934 GB, free: 2.855 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.0009597/0.3269, allocations: 1.019 MB / 0.7944 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006789/0.3276, allocations: 466.2 kB / 0.7948 GB, free: 1.332 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3276, allocations: 4.25 kB / 0.7948 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.3279, allocations: 123.9 kB / 0.7949 GB, free: 1.207 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.3282, allocations: 39.91 kB / 0.795 GB, free: 1.168 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.3317, allocations: 2.647 MB / 0.7976 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.3321, allocations: 0.7242 MB / 0.7983 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.353e-05/0.3322, allocations: 17.55 kB / 0.7983 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.18e-05/0.3322, allocations: 47.42 kB / 0.7983 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of SimCode: time 7.22e-07/0.3323, allocations: 4 kB / 0.7983 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.3553, allocations: 5.125 MB / 0.8033 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/7.986, allocations: 10.8 kB / 0.8034 GB, free: 8.574 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)