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.44/1.44, allocations: 251.9 MB / 266.9 MB, free: 11.07 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.001197/0.001198, allocations: 173 kB / 326.5 MB, free: 2.273 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.831/1.831, allocations: 205.4 MB / 0.5775 GB, free: 20.31 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.0008512/0.0008512, allocations: 98.41 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004587/0.0004588, allocations: 11.75 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2493, allocations: 106.3 MB / 0.9002 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.MovingMean): time 0.001341/0.2507, allocations: 1.109 MB / 0.9013 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004425/0.2511, allocations: 280.9 kB / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.023e-05/0.2512, allocations: 0 / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.757e-05/0.2513, allocations: 4 kB / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.2514, allocations: 15.97 kB / 0.9015 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001108/0.2515, allocations: 31.84 kB / 0.9016 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.19e-05/0.2516, allocations: 35.94 kB / 0.9016 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 7.833e-05/0.2517, allocations: 4 kB / 0.9016 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.141e-05/0.2518, allocations: 23.92 kB / 0.9016 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.736e-05/0.2519, allocations: 31.89 kB / 0.9017 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.2519, allocations: 7.938 kB / 0.9017 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.348e-05/0.2519, allocations: 4 kB / 0.9017 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.527e-05/0.2519, allocations: 8 kB / 0.9017 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.218e-05/0.252, allocations: 29.7 kB / 0.9017 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.326e-05/0.2521, allocations: 43.84 kB / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2521, allocations: 0 / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2521, allocations: 0 / 0.9018 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.2521, allocations: 0 / 0.9018 GB, free: 62.24 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.000402/0.2525, allocations: 385.2 kB / 0.9021 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.2526, allocations: 16.03 kB / 0.9021 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.762e-05/0.2526, allocations: 30.56 kB / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.661e-05/0.2526, allocations: 7.906 kB / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.2528, allocations: 183 kB / 0.9023 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.2528, allocations: 3.984 kB / 0.9023 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.091e-05/0.2528, allocations: 4 kB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001573/0.253, allocations: 77.64 kB / 0.9024 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.253, allocations: 3.938 kB / 0.9024 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.253, allocations: 0 / 0.9024 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.253, allocations: 4 kB / 0.9024 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.2531, allocations: 47.97 kB / 0.9025 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000363/0.2535, allocations: 288.8 kB / 0.9028 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.2536, allocations: 78.55 kB / 0.9028 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.2536, allocations: 0 / 0.9028 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.2538, allocations: 129.1 kB / 0.903 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.2538, allocations: 0 / 0.903 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0003928/0.2542, allocations: 288.3 kB / 0.9032 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.2543, allocations: 114.8 kB / 0.9033 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.345e-05/0.2543, allocations: 113.8 kB / 0.9034 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.2544, allocations: 29.7 kB / 0.9035 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.877e-05/0.2544, allocations: 92.12 kB / 0.9036 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.2544, allocations: 23.66 kB / 0.9036 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-06/0.2544, allocations: 4 kB / 0.9036 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.659e-05/0.2545, allocations: 322.8 kB / 0.9039 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.583e-05/0.2546, allocations: 47.91 kB / 0.9039 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.898e-05/0.2547, allocations: 100.6 kB / 0.904 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.804e-05/0.2548, allocations: 77.69 kB / 0.9041 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2548, allocations: 3.938 kB / 0.9041 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002557/0.2551, allocations: 211 kB / 0.9043 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.2551, allocations: 33.7 kB / 0.9043 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.2551, allocations: 4 kB / 0.9044 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.2552, allocations: 7.953 kB / 0.9044 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.2553, allocations: 23.92 kB / 0.9044 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.2553, allocations: 4 kB / 0.9044 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.536e-05/0.2554, allocations: 16.19 kB / 0.9044 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.2554, allocations: 8 kB / 0.9044 GB, free: 59.19 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 ($PRE.movMea.iSample,movMea.iSample,$PRE.movMea.counter,movMea.counter,$PRE.movMea.ySample[4],movMea.ySample[4],$PRE.movMea.ySample[3],movMea.ySample[3],$PRE.movMea.ySample[2],movMea.ySample[2],$PRE.movMea.ySample[1],movMea.ySample[1],$PRE.movMea.index,movMea.index,$PRE.movMea.y,movMea.y,$whenCondition1,movMea.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.2555, allocations: 189.4 kB / 0.9046 GB, free: 58.99 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.2555, allocations: 4 kB / 0.9046 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.949e-05/0.2556, allocations: 4.375 kB / 0.9046 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.2556, allocations: 4 kB / 0.9046 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.2556, allocations: 3.953 kB / 0.9046 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2556, allocations: 4.094 kB / 0.9046 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.2557, allocations: 193.5 kB / 0.9048 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2557, allocations: 4 kB / 0.9048 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.777e-05/0.2557, allocations: 4 kB / 0.9048 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2558, allocations: 0 / 0.9048 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.2558, allocations: 7.984 kB / 0.9048 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.2558, allocations: 0 / 0.9048 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2558, allocations: 0 / 0.9048 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003304/0.2561, allocations: 234.7 kB / 0.905 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.2562, allocations: 88.95 kB / 0.9051 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.87e-05/0.2562, allocations: 4 kB / 0.9051 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.313e-05/0.2563, allocations: 11.98 kB / 0.9051 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.2563, allocations: 4 kB / 0.9051 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.2563, allocations: 4 kB / 0.9051 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.053e-05/0.2564, allocations: 95.16 kB / 0.9052 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2564, allocations: 4 kB / 0.9052 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002122/0.2566, allocations: 24 kB / 0.9053 GB, free: 58.21 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 (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.0004608/0.2571, allocations: 0.7685 MB / 0.906 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.2573, allocations: 183.1 kB / 0.9062 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2573, allocations: 0 / 0.9062 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.2575, allocations: 187.4 kB / 0.9064 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.2576, allocations: 8.562 kB / 0.9064 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007084/0.2583, allocations: 1.802 MB / 0.9081 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.2585, allocations: 0.6926 MB / 0.9088 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.763e-05/0.2585, allocations: 12.66 kB / 0.9088 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.2586, allocations: 15.44 kB / 0.9088 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2586, allocations: 0 / 0.9088 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.2709, allocations: 1.801 MB / 0.9106 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.2711, allocations: 206.2 kB / 0.9108 GB, free: 52.51 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.894, allocations: 0 / 0.9108 GB, free: 52.51 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)