Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean",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.00113/0.00113, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001233/0.001233, allocations: 193.3 kB / 16.25 MB, free: 6.625 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.25/1.25, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.51/1.51, allocations: 292.3 MB / 0.5486 GB, free: 13.61 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.001245/0.001245, allocations: 68.94 kB / 0.6711 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.174, allocations: 114.5 MB / 0.783 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.002236/0.1763, allocations: 1.455 MB / 0.7844 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004465/0.1768, allocations: 281 kB / 0.7847 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.486e-05/0.1768, allocations: 0 / 0.7847 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.794e-05/0.1769, allocations: 3.938 kB / 0.7847 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.177, allocations: 19.91 kB / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001157/0.1771, allocations: 23.98 kB / 0.7847 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.1772, allocations: 67.83 kB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.208e-05/0.1773, allocations: 4 kB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.462e-05/0.1774, allocations: 31.86 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.579e-05/0.1775, allocations: 39.83 kB / 0.7849 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.618e-05/0.1775, allocations: 4 kB / 0.7849 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.1775, allocations: 4 kB / 0.7849 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.227e-05/0.1776, allocations: 8 kB / 0.7849 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.145e-05/0.1776, allocations: 27.86 kB / 0.7849 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.041e-05/0.1777, allocations: 64 kB / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1777, allocations: 0 / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.1777, allocations: 0 / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.1777, allocations: 0 / 0.785 GB, free: 11.76 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004439/0.1782, allocations: 401 kB / 0.7854 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.1782, allocations: 8.031 kB / 0.7854 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.432e-05/0.1783, allocations: 34.75 kB / 0.7854 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.737e-05/0.1783, allocations: 4.844 kB / 0.7854 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.1785, allocations: 180.3 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1785, allocations: 4.312 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.345e-05/0.1785, allocations: 4.375 kB / 0.7856 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001589/0.1787, allocations: 74.16 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1787, allocations: 7.938 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1787, allocations: 4 kB / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.1787, allocations: 0 / 0.7857 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.982e-05/0.1788, allocations: 39.97 kB / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.1792, allocations: 288.7 kB / 0.786 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001132/0.1793, allocations: 74.44 kB / 0.786 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.362e-05/0.1794, allocations: 68.88 kB / 0.7861 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.1794, allocations: 0 / 0.7861 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001591/0.1796, allocations: 113 kB / 0.7862 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.1796, allocations: 0 / 0.7862 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003425/0.1799, allocations: 199.3 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.18, allocations: 122.8 kB / 0.7865 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.248e-05/0.1801, allocations: 109.8 kB / 0.7866 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.1801, allocations: 33.7 kB / 0.7867 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.2e-05/0.1802, allocations: 80.14 kB / 0.7867 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.1802, allocations: 31.7 kB / 0.7868 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.1802, allocations: 33.7 kB / 0.7868 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.648e-05/0.1803, allocations: 318.8 kB / 0.7871 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.1804, allocations: 39.98 kB / 0.7871 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.1805, allocations: 107 kB / 0.7872 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.1807, allocations: 211.7 kB / 0.7874 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1808, allocations: 0 / 0.7874 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002802/0.181, allocations: 211 kB / 0.7876 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.1811, allocations: 29.7 kB / 0.7877 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1811, allocations: 4 kB / 0.7877 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1811, allocations: 4 kB / 0.7877 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.1812, allocations: 23.92 kB / 0.7877 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1812, allocations: 4 kB / 0.7877 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.648e-05/0.1813, allocations: 24.06 kB / 0.7877 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.1813, allocations: 8 kB / 0.7877 GB, free: 8.57 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (movMea.iSample,$PRE.movMea.iSample,movMea.counter,$PRE.movMea.counter,movMea.ySample[4],$PRE.movMea.ySample[4],movMea.ySample[3],$PRE.movMea.ySample[3],movMea.ySample[2],$PRE.movMea.ySample[2],movMea.ySample[1],$PRE.movMea.ySample[1],movMea.index,$PRE.movMea.index,movMea.y,$PRE.movMea.y,movMea.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 1 * 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.0001192/0.1814, allocations: 172.1 kB / 0.7879 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.1815, allocations: 11.91 kB / 0.7879 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.696e-05/0.1815, allocations: 4.375 kB / 0.7879 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1815, allocations: 0 / 0.7879 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1815, allocations: 0 / 0.7879 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1815, allocations: 0 / 0.7879 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.1816, allocations: 201.5 kB / 0.7881 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1816, allocations: 0 / 0.7881 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.783e-05/0.1817, allocations: 4 kB / 0.7881 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1817, allocations: 3.938 kB / 0.7881 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.1817, allocations: 4 kB / 0.7881 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1817, allocations: 4 kB / 0.7881 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1817, allocations: 0 / 0.7881 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.182, allocations: 230.5 kB / 0.7883 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.1821, allocations: 89.12 kB / 0.7884 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.1821, allocations: 8 kB / 0.7884 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.573e-05/0.1822, allocations: 4 kB / 0.7884 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-05/0.1822, allocations: 11.97 kB / 0.7885 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.1822, allocations: 0 / 0.7885 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.445e-05/0.1823, allocations: 95.56 kB / 0.7885 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1823, allocations: 0 / 0.7885 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003309/0.1826, allocations: 27.91 kB / 0.7886 GB, free: 7.609 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: 10 ($whenCondition1,movMea.y,movMea.sampleTrigger,movMea.iSample,movMea.counter,movMea.index,movMea.ySample[1],movMea.ySample[2],movMea.ySample[3],movMea.ySample[4]) * Number of discrete states: 9 (movMea.iSample,movMea.y,movMea.counter,movMea.ySample[4],movMea.ySample[3],movMea.ySample[2],movMea.ySample[1],movMea.index,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0005221/0.1831, allocations: 0.7663 MB / 0.7893 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002505/0.1834, allocations: 171.7 kB / 0.7895 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1834, allocations: 4.062 kB / 0.7895 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.1836, allocations: 187.3 kB / 0.7897 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001699/0.1837, allocations: 15.92 kB / 0.7897 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001385/0.1851, allocations: 1.622 MB / 0.7913 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.1853, allocations: 0.6924 MB / 0.7919 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.072e-05/0.1854, allocations: 8.656 kB / 0.792 GB, free: 3.914 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.673e-05/0.1854, allocations: 19.44 kB / 0.792 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.1854, allocations: 0 / 0.792 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01027/0.1957, allocations: 1.917 MB / 0.7938 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.1959, allocations: 221.7 kB / 0.7941 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/1.754, allocations: 3.375 kB / 0.7941 GB, free: 1.863 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_8_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)