Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage.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.0006906/0.0006906, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 13.93 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.0008259/0.0008259, allocations: 221.7 kB / 22.26 MB, free: 3.691 MB / 13.93 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.9517/0.9517, allocations: 230.6 MB / 256 MB, free: 9.797 MB / 202.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.03889/0.03889, allocations: 12.18 MB / 324.6 MB, free: 6.289 MB / 250.7 MB " [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.000515/0.000515, allocations: 39.86 kB / 384.1 MB, free: 10.69 MB / 314.7 MB " [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.803/1.803, allocations: 353.8 MB / 0.7787 GB, free: 3.199 MB / 0.5105 GB " [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: "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib 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.001324/0.001324, allocations: 125.7 kB / 1.06 GB, free: 24.89 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.264, allocations: 134.9 MB / 1.192 GB, free: 7.777 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001718/0.2657, allocations: 1.095 MB / 1.193 GB, free: 6.68 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0009963/0.2667, allocations: 1.152 MB / 1.194 GB, free: 5.516 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.974e-05/0.2668, allocations: 4 kB / 1.194 GB, free: 5.512 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.964e-05/0.2668, allocations: 19.73 kB / 1.194 GB, free: 5.492 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 8.991e-05/0.2669, allocations: 43.52 kB / 1.194 GB, free: 5.449 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.2673, allocations: 155.7 kB / 1.194 GB, free: 5.297 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.2675, allocations: 323.2 kB / 1.195 GB, free: 4.98 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.2677, allocations: 32.58 kB / 1.195 GB, free: 4.945 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.2679, allocations: 147.5 kB / 1.195 GB, free: 4.801 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.268, allocations: 151.4 kB / 1.195 GB, free: 4.652 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.268, allocations: 28 kB / 1.195 GB, free: 4.625 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.692e-05/0.2681, allocations: 32 kB / 1.195 GB, free: 4.594 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 4.472e-05/0.2681, allocations: 75.8 kB / 1.195 GB, free: 4.52 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 8.017e-05/0.2682, allocations: 139.4 kB / 1.195 GB, free: 4.383 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.2685, allocations: 319 kB / 1.195 GB, free: 4.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2685, allocations: 0 / 1.195 GB, free: 4.07 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.124e-06/0.2685, allocations: 0 / 1.195 GB, free: 4.07 MB / 0.823 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.2685, allocations: 0 / 1.195 GB, free: 4.07 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0007448/0.2692, allocations: 0.5559 MB / 1.196 GB, free: 3.484 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2693, allocations: 12.03 kB / 1.196 GB, free: 3.473 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2693, allocations: 58.73 kB / 1.196 GB, free: 3.406 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.2695, allocations: 56.72 kB / 1.196 GB, free: 3.352 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.924e-05/0.2696, allocations: 151 kB / 1.196 GB, free: 3.176 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.2698, allocations: 0.4957 MB / 1.197 GB, free: 2.57 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.2699, allocations: 28.36 kB / 1.197 GB, free: 2.543 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.2702, allocations: 266.1 kB / 1.197 GB, free: 2.27 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.2702, allocations: 0 / 1.197 GB, free: 2.27 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.2702, allocations: 8 kB / 1.197 GB, free: 2.262 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2702, allocations: 4 kB / 1.197 GB, free: 2.258 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.2707, allocations: 187.8 kB / 1.197 GB, free: 2.074 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007413/0.2714, allocations: 0.7455 MB / 1.198 GB, free: 1.277 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.2717, allocations: 199.7 kB / 1.198 GB, free: 1.055 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.2719, allocations: 124.4 kB / 1.198 GB, free: 0.9258 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.2719, allocations: 19.92 kB / 1.198 GB, free: 0.9062 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000339/0.2723, allocations: 307.5 kB / 1.199 GB, free: 0.5859 MB / 0.823 GB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/0.2723, allocations: 3.984 kB / 1.199 GB, free: 0.582 MB / 0.823 GB Notification: Performance of matching and sorting (n=48): time 0.0006408/0.2729, allocations: 496.4 kB / 1.199 GB, free: 96 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.273, allocations: 110.8 kB / 1.199 GB, free: 15.96 MB / 0.8387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.2731, allocations: 183.5 kB / 1.199 GB, free: 15.77 MB / 0.8387 GB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.2731, allocations: 41.69 kB / 1.199 GB, free: 15.72 MB / 0.8387 GB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.2732, allocations: 113.3 kB / 1.199 GB, free: 15.61 MB / 0.8387 GB Notification: Performance of collectInitialBindings (initialization): time 8.667e-05/0.2732, allocations: 158.8 kB / 1.2 GB, free: 15.45 MB / 0.8387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.577e-05/0.2733, allocations: 110.3 kB / 1.2 GB, free: 15.34 MB / 0.8387 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2734, allocations: 342.8 kB / 1.2 GB, free: 14.99 MB / 0.8387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.2736, allocations: 149.2 kB / 1.2 GB, free: 14.85 MB / 0.8387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.2739, allocations: 252.8 kB / 1.2 GB, free: 14.56 MB / 0.8387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003949/0.2743, allocations: 394 kB / 1.201 GB, free: 14.14 MB / 0.8387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2743, allocations: 0 / 1.201 GB, free: 14.14 MB / 0.8387 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005247/0.2748, allocations: 493 kB / 1.201 GB, free: 13.65 MB / 0.8387 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2748, allocations: 7.938 kB / 1.201 GB, free: 13.64 MB / 0.8387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.2748, allocations: 4 kB / 1.201 GB, free: 13.64 MB / 0.8387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.2748, allocations: 4 kB / 1.201 GB, free: 13.64 MB / 0.8387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.275, allocations: 95.83 kB / 1.201 GB, free: 13.54 MB / 0.8387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.2751, allocations: 11.92 kB / 1.201 GB, free: 13.53 MB / 0.8387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.2752, allocations: 63.69 kB / 1.201 GB, free: 13.47 MB / 0.8387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.2752, allocations: 24 kB / 1.201 GB, free: 13.45 MB / 0.8387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * 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.0001072/0.2753, allocations: 151.5 kB / 1.202 GB, free: 13.29 MB / 0.8387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.303e-05/0.2753, allocations: 35.8 kB / 1.202 GB, free: 13.25 MB / 0.8387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.074e-05/0.2754, allocations: 33.97 kB / 1.202 GB, free: 13.21 MB / 0.8387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2754, allocations: 8 kB / 1.202 GB, free: 13.21 MB / 0.8387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2754, allocations: 4 kB / 1.202 GB, free: 13.2 MB / 0.8387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2754, allocations: 3.984 kB / 1.202 GB, free: 13.2 MB / 0.8387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.2756, allocations: 320.4 kB / 1.202 GB, free: 12.84 MB / 0.8387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2756, allocations: 0 / 1.202 GB, free: 12.84 MB / 0.8387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.2758, allocations: 75.89 kB / 1.202 GB, free: 12.77 MB / 0.8387 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/0.2758, allocations: 7.938 kB / 1.202 GB, free: 12.76 MB / 0.8387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.2759, allocations: 15.92 kB / 1.202 GB, free: 12.75 MB / 0.8387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2759, allocations: 4 kB / 1.202 GB, free: 12.74 MB / 0.8387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2759, allocations: 3.938 kB / 1.202 GB, free: 12.74 MB / 0.8387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007417/0.2766, allocations: 0.5861 MB / 1.203 GB, free: 12.12 MB / 0.8387 GB Notification: Performance of postOpt removeConstants (simulation): time 2.658e-05/0.2766, allocations: 31.69 kB / 1.203 GB, free: 12.09 MB / 0.8387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.2767, allocations: 15.98 kB / 1.203 GB, free: 12.08 MB / 0.8387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.836e-05/0.2768, allocations: 31.97 kB / 1.203 GB, free: 12.05 MB / 0.8387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.937e-05/0.2769, allocations: 59.91 kB / 1.203 GB, free: 11.99 MB / 0.8387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2769, allocations: 12 kB / 1.203 GB, free: 11.98 MB / 0.8387 GB Notification: Performance of sorting global known variables: time 6.193e-05/0.2769, allocations: 124.1 kB / 1.203 GB, free: 11.86 MB / 0.8387 GB Notification: Performance of sort global known variables: time 6e-08/0.2769, allocations: 0 / 1.203 GB, free: 11.86 MB / 0.8387 GB Notification: Performance of remove unused functions: time 0.0002006/0.2771, allocations: 80 kB / 1.203 GB, free: 11.78 MB / 0.8387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001148/0.2783, allocations: 1.15 MB / 1.204 GB, free: 10.6 MB / 0.8387 GB Notification: Performance of simCode: created initialization part: time 0.0004724/0.2788, allocations: 372.5 kB / 1.204 GB, free: 10.23 MB / 0.8387 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2788, allocations: 0 / 1.204 GB, free: 10.23 MB / 0.8387 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.279, allocations: 180.5 kB / 1.205 GB, free: 10.05 MB / 0.8387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.2792, allocations: 42 kB / 1.205 GB, free: 10.02 MB / 0.8387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.2819, allocations: 3.167 MB / 1.208 GB, free: 6.691 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.2822, allocations: 0.7648 MB / 1.209 GB, free: 5.902 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 0.0001029/0.2823, allocations: 34.97 kB / 1.209 GB, free: 5.867 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.2825, allocations: 95.39 kB / 1.209 GB, free: 5.773 MB / 0.8387 GB Notification: Performance of SimCode: time 6.81e-07/0.2825, allocations: 0 / 1.209 GB, free: 5.773 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.3052, allocations: 6.92 MB / 1.215 GB, free: 15.01 MB / 0.8543 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.842/7.147, allocations: 4.531 kB / 1.215 GB, free: 15.01 MB / 0.8543 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 AixLib_AixLib_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > AixLib_AixLib.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.873143089935184] Failed to read output from testmodel.py, exit status != 0: 7.23298978805542 7.241817232 6.971699869 Calling exit ...