Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.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.0007188/0.0007188, allocations: 79.69 kB / 20.03 MB, free: 4.496 MB / 18.57 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.0007323/0.0007323, allocations: 165.3 kB / 23.33 MB, free: 1.195 MB / 18.57 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 0.8442/0.8442, allocations: 177.1 MB / 203.7 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03382/0.03382, allocations: 9.121 MB / 269.2 MB, free: 4.434 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0003676/0.0003676, allocations: 27.91 kB / 328.7 MB, free: 5.789 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.468/1.468, allocations: 274.9 MB / 0.6476 GB, free: 2.84 MB / 0.4949 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/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: translateModel(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") translateModel(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 0.9294 GB, free: 20.96 MB / 0.7293 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373e-05/1.507e-05, allocations: 3.344 kB / 0.9294 GB, free: 20.96 MB / 0.7293 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean): time 0.001117/0.001132, allocations: 0.8258 MB / 0.9303 GB, free: 20.44 MB / 0.7293 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.002196, allocations: 1.363 MB / 0.9316 GB, free: 19.46 MB / 0.7293 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.787e-05/0.002244, allocations: 1.312 kB / 0.9316 GB, free: 19.46 MB / 0.7293 GB Notification: Performance of NFTyping.typeComponents: time 8.57e-05/0.002329, allocations: 14.44 kB / 0.9316 GB, free: 19.45 MB / 0.7293 GB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.002436, allocations: 34.55 kB / 0.9316 GB, free: 19.43 MB / 0.7293 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.002909, allocations: 275.5 kB / 0.9319 GB, free: 19.29 MB / 0.7293 GB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.003172, allocations: 297.2 kB / 0.9322 GB, free: 19.16 MB / 0.7293 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.003288, allocations: 21.03 kB / 0.9322 GB, free: 19.15 MB / 0.7293 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002712/0.00356, allocations: 177.1 kB / 0.9324 GB, free: 19.07 MB / 0.7293 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.003777, allocations: 108.8 kB / 0.9325 GB, free: 19.04 MB / 0.7293 GB Notification: Performance of NFPackage.collectConstants: time 4.519e-05/0.003822, allocations: 22.72 kB / 0.9325 GB, free: 19.04 MB / 0.7293 GB Notification: Performance of NFFlatten.collectFunctions: time 8.204e-05/0.003904, allocations: 38.42 kB / 0.9325 GB, free: 19.04 MB / 0.7293 GB Notification: Performance of NFScalarize.scalarize: time 7.532e-05/0.003979, allocations: 44.84 kB / 0.9326 GB, free: 19.02 MB / 0.7293 GB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.004081, allocations: 84.22 kB / 0.9327 GB, free: 18.98 MB / 0.7293 GB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.004436, allocations: 311.9 kB / 0.933 GB, free: 18.86 MB / 0.7293 GB Notification: Performance of FrontEnd - DAE generated: time 1.714e-06/0.004437, allocations: 5.344 kB / 0.933 GB, free: 18.86 MB / 0.7293 GB Notification: Performance of FrontEnd: time 1.423e-06/0.004439, allocations: 0 / 0.933 GB, free: 18.86 MB / 0.7293 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.004444, allocations: 0 / 0.933 GB, free: 18.86 MB / 0.7293 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.0006263/0.005071, allocations: 477 kB / 0.9334 GB, free: 18.46 MB / 0.7293 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.005103, allocations: 11.92 kB / 0.9334 GB, free: 18.46 MB / 0.7293 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.005223, allocations: 34.5 kB / 0.9335 GB, free: 18.45 MB / 0.7293 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.005398, allocations: 169.5 kB / 0.9336 GB, free: 18.29 MB / 0.7293 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.005419, allocations: 18.92 kB / 0.9336 GB, free: 18.29 MB / 0.7293 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.005453, allocations: 21.3 kB / 0.9337 GB, free: 18.28 MB / 0.7293 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.005705, allocations: 184.5 kB / 0.9338 GB, free: 18.21 MB / 0.7293 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.005713, allocations: 192 / 0.9338 GB, free: 18.21 MB / 0.7293 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.005729, allocations: 8.609 kB / 0.9338 GB, free: 18.2 MB / 0.7293 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.005734, allocations: 2.75 kB / 0.9338 GB, free: 18.2 MB / 0.7293 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.005864, allocations: 94.45 kB / 0.9339 GB, free: 18.17 MB / 0.7293 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003733/0.006238, allocations: 357.4 kB / 0.9343 GB, free: 17.91 MB / 0.7293 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.006392, allocations: 123.1 kB / 0.9344 GB, free: 17.85 MB / 0.7293 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.775e-05/0.00649, allocations: 79.83 kB / 0.9345 GB, free: 17.82 MB / 0.7293 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.006506, allocations: 10.12 kB / 0.9345 GB, free: 17.81 MB / 0.7293 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.006735, allocations: 216.6 kB / 0.9347 GB, free: 17.71 MB / 0.7293 GB Notification: Performance of pre-optimization done (n=28): time 9.62e-07/0.006736, allocations: 0 / 0.9347 GB, free: 17.71 MB / 0.7293 GB Notification: Performance of matching and sorting (n=28): time 0.0005736/0.00731, allocations: 462.4 kB / 0.9351 GB, free: 17.57 MB / 0.7293 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.137e-05/0.007331, allocations: 59.41 kB / 0.9352 GB, free: 17.5 MB / 0.7293 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.28e-05/0.007404, allocations: 135.6 kB / 0.9353 GB, free: 17.39 MB / 0.7293 GB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.007438, allocations: 45.39 kB / 0.9354 GB, free: 17.35 MB / 0.7293 GB Notification: Performance of collectInitialEqns (initialization): time 3.977e-05/0.007478, allocations: 105.1 kB / 0.9355 GB, free: 17.25 MB / 0.7293 GB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.007518, allocations: 79.38 kB / 0.9355 GB, free: 17.19 MB / 0.7293 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.007625, allocations: 84.31 kB / 0.9356 GB, free: 17.15 MB / 0.7293 GB Notification: Performance of setup shared object (initialization): time 4.518e-05/0.00767, allocations: 333.7 kB / 0.9359 GB, free: 16.83 MB / 0.7293 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.007885, allocations: 203.3 kB / 0.9361 GB, free: 16.72 MB / 0.7293 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.008097, allocations: 274.2 kB / 0.9364 GB, free: 16.54 MB / 0.7293 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.008399, allocations: 356.4 kB / 0.9367 GB, free: 16.31 MB / 0.7293 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.008402, allocations: 9.031 kB / 0.9367 GB, free: 16.3 MB / 0.7293 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005289/0.008931, allocations: 0.5624 MB / 0.9373 GB, free: 16 MB / 0.7293 GB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.008961, allocations: 67.8 kB / 0.9373 GB, free: 15.93 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.008969, allocations: 2.375 kB / 0.9373 GB, free: 15.93 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.008982, allocations: 2.531 kB / 0.9374 GB, free: 15.93 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.009112, allocations: 53.12 kB / 0.9374 GB, free: 15.92 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.009122, allocations: 4.578 kB / 0.9374 GB, free: 15.92 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.009303, allocations: 73.36 kB / 0.9375 GB, free: 15.9 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.009337, allocations: 23.86 kB / 0.9375 GB, free: 15.9 MB / 0.7293 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 8.921e-05/0.009426, allocations: 162.2 kB / 0.9377 GB, free: 15.77 MB / 0.7293 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.026e-05/0.009446, allocations: 16.8 kB / 0.9377 GB, free: 15.76 MB / 0.7293 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.222e-05/0.009468, allocations: 18.42 kB / 0.9377 GB, free: 15.75 MB / 0.7293 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.009473, allocations: 5.359 kB / 0.9377 GB, free: 15.75 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.009474, allocations: 3.938 kB / 0.9377 GB, free: 15.74 MB / 0.7293 GB Notification: Performance of postOpt removeConstants (simulation): time 1.214e-05/0.009486, allocations: 22.81 kB / 0.9377 GB, free: 15.73 MB / 0.7293 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.366e-05/0.00952, allocations: 14.98 kB / 0.9377 GB, free: 15.72 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.353e-05/0.009563, allocations: 10.7 kB / 0.9377 GB, free: 15.72 MB / 0.7293 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.528e-05/0.009608, allocations: 18.34 kB / 0.9378 GB, free: 15.71 MB / 0.7293 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003684/0.009977, allocations: 440.5 kB / 0.9382 GB, free: 15.52 MB / 0.7293 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003574/0.01033, allocations: 0.5273 MB / 0.9387 GB, free: 15.21 MB / 0.7293 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001105/0.01044, allocations: 92.06 kB / 0.9388 GB, free: 15.19 MB / 0.7293 GB Notification: Performance of sorting global known variables: time 3.064e-05/0.01048, allocations: 106.7 kB / 0.9389 GB, free: 15.1 MB / 0.7293 GB Notification: Performance of Backend: time 2.3e-07/0.01048, allocations: 0 / 0.9389 GB, free: 15.1 MB / 0.7293 GB Notification: Performance of simCode: created initialization part: time 0.000546/0.01102, allocations: 480 kB / 0.9393 GB, free: 14.77 MB / 0.7293 GB Notification: Performance of SimCode: time 0.0004165/0.01144, allocations: 0.7178 MB / 0.94 GB, free: 14.11 MB / 0.7293 GB Notification: Performance of Templates: time 0.00542/0.01686, allocations: 4.143 MB / 0.9441 GB, free: 13.68 MB / 0.7293 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.makefile [Timeout 660] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.sim & ./AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean -abortSlowSimulation -alarm=480 -lv LOG_STATS > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredMovingMean.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.620176528580487] Failed to read output from testmodel.py, exit status != 0: 0.020981050096452236 0.029280446 0.023230102000000002 Calling exit ...