Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.229/1.229, allocations: 251.5 MB / 266.7 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009314/0.0009315, allocations: 179.4 kB / 325.8 MB, free: 2.676 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.278/1.278, allocations: 205 MB / 0.576 GB, free: 20.92 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006297/0.0006297, allocations: 94.05 kB / 0.6797 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002618/0.0002618, allocations: 10.25 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1428, allocations: 105.4 MB / 0.8962 GB, free: 68.02 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.00112/0.144, allocations: 1.135 MB / 0.8973 GB, free: 66.88 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004144/0.1444, allocations: 297.6 kB / 0.8976 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.01e-05/0.1444, allocations: 0 / 0.8976 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.471e-05/0.1445, allocations: 3.938 kB / 0.8976 GB, free: 66.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.05e-05/0.1446, allocations: 7.938 kB / 0.8976 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001033/0.1447, allocations: 31.91 kB / 0.8977 GB, free: 66.54 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.192e-05/0.1448, allocations: 55.78 kB / 0.8977 GB, free: 66.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.369e-05/0.1449, allocations: 16.22 kB / 0.8977 GB, free: 66.47 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.743e-05/0.145, allocations: 23.91 kB / 0.8977 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.063e-05/0.145, allocations: 31.84 kB / 0.8978 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.1451, allocations: 4 kB / 0.8978 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.1451, allocations: 0 / 0.8978 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.047e-05/0.1451, allocations: 15.92 kB / 0.8978 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.592e-05/0.1452, allocations: 19.88 kB / 0.8978 GB, free: 66.38 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.09e-05/0.1452, allocations: 55.83 kB / 0.8979 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.1452, allocations: 7.938 kB / 0.8979 GB, free: 66.31 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1453, allocations: 0 / 0.8979 GB, free: 66.31 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.286e-06/0.1453, allocations: 0 / 0.8979 GB, free: 66.31 MB / 0.6042 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.0003188/0.1456, allocations: 381.1 kB / 0.8982 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1456, allocations: 8.031 kB / 0.8982 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.655e-05/0.1457, allocations: 42.73 kB / 0.8983 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.1457, allocations: 8.844 kB / 0.8983 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.527e-05/0.1458, allocations: 172.3 kB / 0.8985 GB, free: 65.61 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1458, allocations: 12.38 kB / 0.8985 GB, free: 65.6 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-06/0.1458, allocations: 384 / 0.8985 GB, free: 65.6 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.146, allocations: 74.17 kB / 0.8985 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.146, allocations: 3.938 kB / 0.8985 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.146, allocations: 4 kB / 0.8986 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.146, allocations: 0 / 0.8986 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.2e-05/0.1461, allocations: 39.97 kB / 0.8986 GB, free: 65.47 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002923/0.1464, allocations: 300.8 kB / 0.8989 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.1465, allocations: 74.44 kB / 0.8989 GB, free: 65.05 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1467, allocations: 56.89 kB / 0.899 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1467, allocations: 7.984 kB / 0.899 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.1469, allocations: 117.1 kB / 0.8991 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.1469, allocations: 0 / 0.8991 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003734/0.1472, allocations: 199.3 kB / 0.8993 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.1473, allocations: 118.8 kB / 0.8994 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.619e-05/0.1474, allocations: 113.8 kB / 0.8995 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.1474, allocations: 33.7 kB / 0.8996 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.322e-05/0.1474, allocations: 88.14 kB / 0.8997 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.1474, allocations: 27.75 kB / 0.8997 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.1475, allocations: 21.72 kB / 0.8997 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.07e-05/0.1475, allocations: 322.8 kB / 0.9 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.488e-05/0.1476, allocations: 43.91 kB / 0.9 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.1477, allocations: 107 kB / 0.9001 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.1479, allocations: 219.8 kB / 0.9004 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.148, allocations: 4 kB / 0.9004 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002797/0.1482, allocations: 203 kB / 0.9006 GB, free: 63.22 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.1483, allocations: 29.7 kB / 0.9006 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1483, allocations: 4.281 kB / 0.9006 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1483, allocations: 8 kB / 0.9006 GB, free: 63.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.1484, allocations: 23.92 kB / 0.9006 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1484, allocations: 4 kB / 0.9006 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.788e-05/0.1485, allocations: 23.83 kB / 0.9006 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.1485, allocations: 8 kB / 0.9007 GB, free: 63.12 MB / 0.6042 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 9.239e-05/0.1486, allocations: 167.4 kB / 0.9008 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.1487, allocations: 11.91 kB / 0.9008 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.022e-05/0.1487, allocations: 12.38 kB / 0.9008 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1487, allocations: 0 / 0.9008 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/0.1487, allocations: 3.984 kB / 0.9008 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1487, allocations: 0 / 0.9008 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.334e-05/0.1488, allocations: 189.5 kB / 0.901 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.1488, allocations: 8 kB / 0.901 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/0.1489, allocations: 4 kB / 0.901 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1489, allocations: 0 / 0.901 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.1489, allocations: 11.92 kB / 0.901 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1489, allocations: 8 kB / 0.9011 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1489, allocations: 320 / 0.9011 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.1492, allocations: 222.6 kB / 0.9013 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.1492, allocations: 85.02 kB / 0.9013 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.1493, allocations: 11.98 kB / 0.9014 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.626e-05/0.1493, allocations: 4 kB / 0.9014 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.1494, allocations: 11.94 kB / 0.9014 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.1494, allocations: 7.984 kB / 0.9014 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.525e-05/0.1494, allocations: 87.27 kB / 0.9015 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1494, allocations: 0 / 0.9015 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002308/0.1497, allocations: 24 kB / 0.9015 GB, free: 62.16 MB / 0.6042 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.0004289/0.1501, allocations: 0.776 MB / 0.9022 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002421/0.1504, allocations: 179.3 kB / 0.9024 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1504, allocations: 0.5625 kB / 0.9024 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.1505, allocations: 187.4 kB / 0.9026 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.1507, allocations: 11.94 kB / 0.9026 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.152, allocations: 1.642 MB / 0.9042 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.154e-05/0.1521, allocations: 0.6848 MB / 0.9049 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.801e-05/0.1521, allocations: 12.66 kB / 0.9049 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.706e-05/0.1522, allocations: 23.36 kB / 0.9049 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of SimCode: time 2.61e-07/0.1522, allocations: 4 kB / 0.9049 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2663/0.4185, allocations: 1.784 MB / 0.9067 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.4187, allocations: 225.5 kB / 0.9069 GB, free: 56.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.098, allocations: 0.625 kB / 0.9069 GB, free: 56.56 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_MovingMean.fmu > Buildings_maint.7.0.x_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean.pipe 2>&1)