Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.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.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.432/1.432, allocations: 252 MB / 267.3 MB, free: 10.81 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.001046/0.001046, allocations: 172.7 kB / 327 MB, free: 2.059 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.042/2.042, allocations: 205.4 MB / 0.578 GB, free: 20.09 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.0009476/0.0009476, allocations: 87.66 kB / 0.6826 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003404, allocations: 8.625 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2514, allocations: 106.3 MB / 0.9009 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean): time 0.001739/0.2532, allocations: 1.354 MB / 0.9022 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006832/0.2539, allocations: 367.8 kB / 0.9026 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/0.254, allocations: 0 / 0.9026 GB, free: 61.47 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.2541, allocations: 11.86 kB / 0.9026 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.2543, allocations: 23.84 kB / 0.9026 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002388/0.2545, allocations: 71.84 kB / 0.9027 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.2547, allocations: 175.4 kB / 0.9029 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.2549, allocations: 33.47 kB / 0.9029 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.255, allocations: 75.69 kB / 0.903 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.2552, allocations: 83.66 kB / 0.903 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.2552, allocations: 8 kB / 0.9031 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.56e-05/0.2552, allocations: 4 kB / 0.9031 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.183e-05/0.2553, allocations: 39.89 kB / 0.9031 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.666e-05/0.2554, allocations: 89.3 kB / 0.9032 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.2556, allocations: 163.7 kB / 0.9033 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2557, allocations: 0 / 0.9033 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.565e-06/0.2557, allocations: 4 kB / 0.9033 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.2557, allocations: 0 / 0.9033 GB, free: 60.69 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0009452/0.2566, allocations: 463.4 kB / 0.9038 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.2567, allocations: 12.03 kB / 0.9038 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.939e-05/0.2568, allocations: 50.67 kB / 0.9038 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.795e-05/0.2568, allocations: 20.73 kB / 0.9039 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.257, allocations: 213.8 kB / 0.9041 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.2571, allocations: 12.38 kB / 0.9041 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.2571, allocations: 20.3 kB / 0.9041 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.2575, allocations: 190.1 kB / 0.9043 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.2575, allocations: 3.938 kB / 0.9043 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.2575, allocations: 3.984 kB / 0.9043 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.2575, allocations: 4 kB / 0.9043 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.2578, allocations: 104.6 kB / 0.9044 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006051/0.2584, allocations: 424.3 kB / 0.9048 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.2586, allocations: 154.4 kB / 0.9049 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.2588, allocations: 96.81 kB / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.2588, allocations: 4.172 kB / 0.905 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003135/0.2591, allocations: 201.7 kB / 0.9052 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=28): time 2.665e-06/0.2591, allocations: 0 / 0.9052 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.0007395/0.2599, allocations: 450.6 kB / 0.9057 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.26, allocations: 55.41 kB / 0.9057 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.2601, allocations: 142.9 kB / 0.9059 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.2601, allocations: 41.69 kB / 0.9059 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.497e-05/0.2602, allocations: 100.7 kB / 0.906 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.2602, allocations: 71.19 kB / 0.9061 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.2603, allocations: 4 kB / 0.9061 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.547e-05/0.2604, allocations: 334.8 kB / 0.9064 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.2606, allocations: 108.3 kB / 0.9065 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.2608, allocations: 175.5 kB / 0.9066 GB, free: 57.06 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.2612, allocations: 279.8 kB / 0.9069 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2612, allocations: 0 / 0.9069 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004716/0.2616, allocations: 347 kB / 0.9072 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.2617, allocations: 4 kB / 0.9073 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2617, allocations: 12.09 kB / 0.9073 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.2617, allocations: 4 kB / 0.9073 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.262, allocations: 55.91 kB / 0.9073 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.262, allocations: 4 kB / 0.9073 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.2622, allocations: 47.66 kB / 0.9074 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.2622, allocations: 23.86 kB / 0.9074 GB, free: 56.27 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition4,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition3,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,triMovMea.y,$PRE.triMovMea.iSample,triMovMea.iSample,$PRE.triMovMea.counter,triMovMea.counter,triMovMea.index,$PRE.triMovMea.ySample[1],triMovMea.ySample[1],$PRE.triMovMea.ySample[2],triMovMea.ySample[2],$PRE.triMovMea.ySample[3],triMovMea.ySample[3],triMovMea1.y,$PRE.triMovMea1.iSample,triMovMea1.iSample,$PRE.triMovMea1.counter,triMovMea1.counter,triMovMea1.index,$PRE.triMovMea1.ySample[1],triMovMea1.ySample[1],triMovMea2.y,$PRE.triMovMea2.iSample,triMovMea2.iSample,$PRE.triMovMea2.counter,triMovMea2.counter,triMovMea2.index,$PRE.triMovMea2.ySample[1],triMovMea2.ySample[1],$PRE.triMovMea2.ySample[2],triMovMea2.ySample[2],$PRE.triMovMea2.ySample[3],triMovMea2.ySample[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 2 * Algorithm blocks: 0 * 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.0001412/0.2623, allocations: 161.7 kB / 0.9075 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.2624, allocations: 11.91 kB / 0.9076 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.733e-05/0.2624, allocations: 17.86 kB / 0.9076 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2624, allocations: 4 kB / 0.9076 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2624, allocations: 0 / 0.9076 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2624, allocations: 0 / 0.9076 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008844/0.2633, allocations: 0.7207 MB / 0.9083 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2633, allocations: 0 / 0.9083 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.172e-05/0.2634, allocations: 8 kB / 0.9083 GB, free: 55.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.2634, allocations: 4.031 kB / 0.9083 GB, free: 55.28 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.2634, allocations: 11.98 kB / 0.9083 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2635, allocations: 7.984 kB / 0.9083 GB, free: 55.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2635, allocations: 3.984 kB / 0.9083 GB, free: 55.26 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.264, allocations: 443.9 kB / 0.9087 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.264, allocations: 96.8 kB / 0.9088 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.142e-05/0.2641, allocations: 23.92 kB / 0.9089 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.2643, allocations: 23.97 kB / 0.9089 GB, free: 54.65 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/0.2643, allocations: 27.91 kB / 0.9089 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.2644, allocations: 15.98 kB / 0.9089 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.126e-05/0.2644, allocations: 109.7 kB / 0.909 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2644, allocations: 0 / 0.909 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002644/0.2647, allocations: 51.98 kB / 0.9091 GB, free: 54.45 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: 27 (booPul.y,booPul1.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,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.pulseStart) * 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.0007691/0.2655, allocations: 1.007 MB / 0.9101 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000443/0.2659, allocations: 272.1 kB / 0.9103 GB, free: 53.15 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2659, allocations: 0 / 0.9103 GB, free: 53.15 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.2661, allocations: 123.1 kB / 0.9104 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.2665, allocations: 29.23 kB / 0.9105 GB, free: 53 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.2687, allocations: 2.357 MB / 0.9128 GB, free: 50.52 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.2688, allocations: 0.7245 MB / 0.9135 GB, free: 49.77 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.058e-05/0.2689, allocations: 17.95 kB / 0.9135 GB, free: 49.76 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.734e-05/0.269, allocations: 51.41 kB / 0.9135 GB, free: 49.71 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.269, allocations: 0 / 0.9135 GB, free: 49.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01257/0.2816, allocations: 3.929 MB / 0.9174 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.2818, allocations: 225.3 kB / 0.9176 GB, free: 45.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.148, allocations: 0 / 0.9176 GB, free: 45.71 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMovingMean.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMovingMean.pipe 2>&1)