Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001838/0.001838, allocations: 118.8 kB / 17.16 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0022/0.0022, allocations: 206.2 kB / 20.13 MB, free: 2.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.49/1.49, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.923/2.923, allocations: 0.49 GB / 0.7923 GB, free: 1.262 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 71.89 kB / 1.15 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9968/0.999, allocations: 176.1 MB / 1.321 GB, free: 24.98 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.002053/1.001, allocations: 0.8761 MB / 1.322 GB, free: 24.41 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001584/1.003, allocations: 1.359 MB / 1.324 GB, free: 23.42 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.048e-05/1.003, allocations: 6.781 kB / 1.324 GB, free: 23.42 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001148/1.003, allocations: 11.06 kB / 1.324 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001472/1.003, allocations: 32.38 kB / 1.324 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006665/1.004, allocations: 273 kB / 1.324 GB, free: 23.25 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002697/1.004, allocations: 291.5 kB / 1.324 GB, free: 23.12 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/1.004, allocations: 18.12 kB / 1.324 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/1.004, allocations: 136 kB / 1.324 GB, free: 23.06 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/1.004, allocations: 122.3 kB / 1.324 GB, free: 23.02 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/1.004, allocations: 27.22 kB / 1.325 GB, free: 23.02 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.117e-05/1.005, allocations: 46.67 kB / 1.325 GB, free: 23.01 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.459e-05/1.005, allocations: 41.83 kB / 1.325 GB, free: 22.98 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/1.005, allocations: 102.4 kB / 1.325 GB, free: 22.93 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002631/1.005, allocations: 274.7 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/1.005, allocations: 2.625 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.193e-06/1.005, allocations: 0 / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.092e-06/1.005, allocations: 0 / 1.325 GB, free: 22.83 MB / 1.061 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.0008482/1.006, allocations: 0.5445 MB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/1.006, allocations: 17.55 kB / 1.326 GB, free: 22.33 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.922e-05/1.006, allocations: 6.969 kB / 1.326 GB, free: 22.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.793e-05/1.006, allocations: 42.95 kB / 1.326 GB, free: 22.28 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/1.006, allocations: 34.91 kB / 1.326 GB, free: 22.27 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/1.006, allocations: 226.7 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/1.006, allocations: 9.562 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.765e-05/1.006, allocations: 26.94 kB / 1.326 GB, free: 22.05 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/1.007, allocations: 187.3 kB / 1.326 GB, free: 21.97 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/1.007, allocations: 0 / 1.326 GB, free: 21.97 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/1.007, allocations: 4 kB / 1.326 GB, free: 21.97 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/1.007, allocations: 6.844 kB / 1.326 GB, free: 21.96 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/1.007, allocations: 87.52 kB / 1.326 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005303/1.008, allocations: 480.2 kB / 1.327 GB, free: 21.59 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/1.008, allocations: 125.4 kB / 1.327 GB, free: 21.53 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/1.008, allocations: 78.05 kB / 1.327 GB, free: 21.5 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/1.008, allocations: 6 kB / 1.327 GB, free: 21.49 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003847/1.008, allocations: 215.7 kB / 1.327 GB, free: 21.39 MB / 1.061 GB Notification: Performance of pre-optimization done (n=28): time 1.954e-06/1.008, allocations: 7.922 kB / 1.327 GB, free: 21.39 MB / 1.061 GB Notification: Performance of matching and sorting (n=28): time 0.0009434/1.009, allocations: 453 kB / 1.327 GB, free: 21.24 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/1.009, allocations: 61.12 kB / 1.327 GB, free: 21.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/1.009, allocations: 140.3 kB / 1.328 GB, free: 21.06 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/1.009, allocations: 42 kB / 1.328 GB, free: 21.02 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/1.009, allocations: 103.5 kB / 1.328 GB, free: 20.93 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.818e-05/1.01, allocations: 69.89 kB / 1.328 GB, free: 20.88 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/1.01, allocations: 87.66 kB / 1.328 GB, free: 20.84 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.496e-05/1.01, allocations: 330.5 kB / 1.328 GB, free: 20.52 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/1.01, allocations: 145.2 kB / 1.328 GB, free: 20.47 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/1.01, allocations: 211.6 kB / 1.329 GB, free: 20.35 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/1.011, allocations: 360.1 kB / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.011, allocations: 4.938 kB / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009056/1.012, allocations: 0.501 MB / 1.329 GB, free: 19.88 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 7.203e-05/1.012, allocations: 68.3 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/1.012, allocations: 2.188 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/1.012, allocations: 3.594 kB / 1.329 GB, free: 19.81 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/1.012, allocations: 49.05 kB / 1.33 GB, free: 19.8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/1.012, allocations: 15.69 kB / 1.33 GB, free: 19.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/1.013, allocations: 69.95 kB / 1.33 GB, free: 19.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/1.013, allocations: 24.17 kB / 1.33 GB, free: 19.77 MB / 1.061 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.0001628/1.013, allocations: 163.5 kB / 1.33 GB, free: 19.64 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.911e-05/1.013, allocations: 21.25 kB / 1.33 GB, free: 19.63 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.504e-05/1.013, allocations: 13.48 kB / 1.33 GB, free: 19.62 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/1.013, allocations: 3.094 kB / 1.33 GB, free: 19.62 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/1.013, allocations: 3.938 kB / 1.33 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/1.013, allocations: 2.969 kB / 1.33 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008533/1.014, allocations: 0.6632 MB / 1.33 GB, free: 19.19 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/1.014, allocations: 0 / 1.33 GB, free: 19.19 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-05/1.014, allocations: 6.609 kB / 1.33 GB, free: 19.19 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/1.014, allocations: 5.188 kB / 1.33 GB, free: 19.19 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/1.014, allocations: 17.56 kB / 1.33 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/1.014, allocations: 1.25 kB / 1.33 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.014, allocations: 5.188 kB / 1.33 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/1.015, allocations: 453.8 kB / 1.331 GB, free: 18.95 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/1.015, allocations: 90.25 kB / 1.331 GB, free: 18.85 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.527e-05/1.015, allocations: 20.22 kB / 1.331 GB, free: 18.84 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/1.015, allocations: 14.72 kB / 1.331 GB, free: 18.84 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/1.015, allocations: 12.47 kB / 1.331 GB, free: 18.84 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/1.015, allocations: 23.28 kB / 1.331 GB, free: 18.83 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.846e-05/1.015, allocations: 104.1 kB / 1.331 GB, free: 18.75 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.015, allocations: 0 / 1.331 GB, free: 18.75 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003798/1.015, allocations: 73.05 kB / 1.331 GB, free: 18.73 MB / 1.061 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.00096/1.016, allocations: 1.029 MB / 1.332 GB, free: 17.96 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007085/1.017, allocations: 422.8 kB / 1.333 GB, free: 17.73 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.017, allocations: 0.9375 kB / 1.333 GB, free: 17.73 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002221/1.017, allocations: 99.09 kB / 1.333 GB, free: 17.71 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/1.018, allocations: 32.33 kB / 1.333 GB, free: 17.7 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/1.021, allocations: 2.66 MB / 1.335 GB, free: 15.86 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001861/1.022, allocations: 0.7251 MB / 1.336 GB, free: 15.15 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.493e-05/1.022, allocations: 18.25 kB / 1.336 GB, free: 15.15 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.938e-05/1.022, allocations: 46.88 kB / 1.336 GB, free: 15.12 MB / 1.061 GB Notification: Performance of SimCode: time 1.143e-06/1.022, allocations: 0 / 1.336 GB, free: 15.12 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/1.046, allocations: 5.232 MB / 1.341 GB, free: 14.5 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.806/9.851, allocations: 14.25 kB / 1.341 GB, free: 14.5 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean_fmu --startTime=-0.5 --stopTime=15 --stepSize=0.0062 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMovingMean.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.199910826981068] Failed to read output from testmodel.py, exit status != 0: 9.976604647992644 9.988255231 8.980764748 Calling exit ...