Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 112 kB / 17.6 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 186 kB / 20.78 MB, free: 1.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.6 MB / 249.4 MB, free: 3.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.771/2.771, allocations: 476.7 MB / 0.7629 GB, free: 15.17 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.89 kB / 1.107 GB, free: 5.094 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.925/0.9269, allocations: 168.7 MB / 1.271 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.00221/0.9291, allocations: 0.8894 MB / 1.272 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001809/0.9309, allocations: 1.318 MB / 1.274 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.569e-05/0.931, allocations: 1.219 kB / 1.274 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.9311, allocations: 18.58 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.9312, allocations: 26.36 kB / 1.274 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007196/0.932, allocations: 267.7 kB / 1.274 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003427/0.9323, allocations: 288.4 kB / 1.274 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.9324, allocations: 24.33 kB / 1.274 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.9326, allocations: 136.2 kB / 1.274 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.9329, allocations: 134.3 kB / 1.275 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.09e-05/0.9329, allocations: 22.38 kB / 1.275 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.933, allocations: 32.3 kB / 1.275 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.198e-05/0.9331, allocations: 46.27 kB / 1.275 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.9332, allocations: 104.3 kB / 1.275 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.9335, allocations: 260.1 kB / 1.275 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.9336, allocations: 0 / 1.275 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.192e-06/0.9336, allocations: 0 / 1.275 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.9336, allocations: 0.875 kB / 1.275 GB, free: 5.617 MB / 0.9981 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.0009095/0.9345, allocations: 0.5477 MB / 1.275 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.9345, allocations: 9.062 kB / 1.275 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.235e-05/0.9346, allocations: 47.67 kB / 1.276 GB, free: 5.07 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.977e-05/0.9346, allocations: 24.91 kB / 1.276 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.9349, allocations: 229.5 kB / 1.276 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.9349, allocations: 18.53 kB / 1.276 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.9349, allocations: 21.27 kB / 1.276 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.9353, allocations: 185 kB / 1.276 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.9353, allocations: 7.938 kB / 1.276 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.9354, allocations: 8.281 kB / 1.276 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.9354, allocations: 3.5 kB / 1.276 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.9356, allocations: 85.06 kB / 1.276 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006035/0.9362, allocations: 469 kB / 1.277 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.9365, allocations: 119.6 kB / 1.277 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/0.9366, allocations: 80.44 kB / 1.277 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.9367, allocations: 5.891 kB / 1.277 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000385/0.937, allocations: 219.6 kB / 1.277 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=28): time 1.663e-06/0.9371, allocations: 0 / 1.277 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of matching and sorting (n=28): time 0.0009724/0.938, allocations: 452.9 kB / 1.277 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.9381, allocations: 63.97 kB / 1.277 GB, free: 3.969 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.9382, allocations: 142.3 kB / 1.278 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.068e-05/0.9383, allocations: 39.05 kB / 1.278 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.9383, allocations: 106 kB / 1.278 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.445e-05/0.9384, allocations: 72.25 kB / 1.278 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.9386, allocations: 87.02 kB / 1.278 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.805e-05/0.9386, allocations: 332.9 kB / 1.278 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003111/0.9389, allocations: 151.8 kB / 1.278 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/0.9393, allocations: 212.8 kB / 1.279 GB, free: 3.133 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.9398, allocations: 362.9 kB / 1.279 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.9398, allocations: 0.9688 kB / 1.279 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009478/0.9408, allocations: 0.4974 MB / 1.279 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.57e-05/0.9409, allocations: 69.55 kB / 1.279 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.9409, allocations: 2.188 kB / 1.279 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.9409, allocations: 3.156 kB / 1.279 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.9412, allocations: 56.58 kB / 1.279 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.9412, allocations: 4.141 kB / 1.28 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.9416, allocations: 77.55 kB / 1.28 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.999e-05/0.9417, allocations: 23.73 kB / 1.28 GB, free: 2.555 MB / 0.9981 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.0001911/0.9418, allocations: 166 kB / 1.28 GB, free: 2.418 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.12e-05/0.9419, allocations: 17.58 kB / 1.28 GB, free: 2.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.216e-05/0.9419, allocations: 17.5 kB / 1.28 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.9419, allocations: 2.031 kB / 1.28 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.9419, allocations: 1.188 kB / 1.28 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.942, allocations: 6 kB / 1.28 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009311/0.9429, allocations: 0.6552 MB / 1.28 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.9429, allocations: 0.7031 kB / 1.28 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.381e-05/0.9429, allocations: 10.59 kB / 1.28 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.9429, allocations: 1.422 kB / 1.28 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/0.943, allocations: 17.38 kB / 1.28 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.943, allocations: 1.344 kB / 1.28 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.943, allocations: 0.9062 kB / 1.28 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006295/0.9436, allocations: 455.4 kB / 1.281 GB, free: 1.738 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.9436, allocations: 96.62 kB / 1.281 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.9437, allocations: 24.77 kB / 1.281 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.9438, allocations: 14.03 kB / 1.281 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.846e-05/0.9439, allocations: 17.83 kB / 1.281 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.9439, allocations: 22.34 kB / 1.281 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.609e-05/0.944, allocations: 101.5 kB / 1.281 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.944, allocations: 0 / 1.281 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000373/0.9444, allocations: 68.2 kB / 1.281 GB, free: 1.512 MB / 0.9981 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.001062/0.9454, allocations: 1.022 MB / 1.282 GB, free: 0.7461 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008878/0.9463, allocations: 421.5 kB / 1.283 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.9463, allocations: 1.812 kB / 1.283 GB, free: 0.5195 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.9465, allocations: 104.3 kB / 1.283 GB, free: 500 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003957/0.9469, allocations: 30.94 kB / 1.283 GB, free: 492 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004161/0.9511, allocations: 2.661 MB / 1.285 GB, free: 14.63 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.9515, allocations: 0.7249 MB / 1.286 GB, free: 13.93 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.307e-05/0.9516, allocations: 20.14 kB / 1.286 GB, free: 13.93 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.9517, allocations: 44.53 kB / 1.286 GB, free: 13.9 MB / 1.014 GB Notification: Performance of SimCode: time 1.223e-06/0.9517, allocations: 1.125 kB / 1.286 GB, free: 13.9 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2881/1.24, allocations: 5.209 MB / 1.291 GB, free: 13.29 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.883/10.12, allocations: 6.938 kB / 1.291 GB, free: 13.28 MB / 1.014 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.csv --start-time -0.5 --stop-time 15 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0062 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.42366962498636] Failed to read output from testmodel.py, exit status != 0: 10.195668262982508 10.223384487 9.285112572 Calling exit ...