Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.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.001307/0.001307, allocations: 101.9 kB / 19.73 MB, free: 2.109 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.001492/0.001492, allocations: 222.5 kB / 23.03 MB, free: 4.906 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.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8353/0.8353, allocations: 134 MB / 447.2 MB, free: 9.938 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.MovingAverage,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.001999/0.001999, allocations: 63.45 kB / 0.6192 GB, free: 6.887 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1965, allocations: 85.92 MB / 0.7031 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003434/0.1999, allocations: 1.568 MB / 0.7047 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.201, allocations: 0.5337 MB / 0.7052 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.26e-05/0.2011, allocations: 0 / 0.7052 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.875e-05/0.2011, allocations: 3.938 kB / 0.7052 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.2012, allocations: 15.86 kB / 0.7052 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002786/0.2015, allocations: 55.81 kB / 0.7053 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.2017, allocations: 107.7 kB / 0.7054 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.283e-05/0.2018, allocations: 16.12 kB / 0.7054 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.2019, allocations: 39.84 kB / 0.7054 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.202, allocations: 43.83 kB / 0.7055 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.2021, allocations: 11.94 kB / 0.7055 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.05e-05/0.2021, allocations: 8 kB / 0.7055 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.774e-05/0.2021, allocations: 19.97 kB / 0.7055 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.266e-05/0.2022, allocations: 31.86 kB / 0.7055 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.2024, allocations: 83.69 kB / 0.7056 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2024, allocations: 0 / 0.7056 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2024, allocations: 0 / 0.7056 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.2024, allocations: 7.938 kB / 0.7056 GB, free: 14.5 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.00081/0.2032, allocations: 403.1 kB / 0.706 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.2032, allocations: 12.03 kB / 0.706 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.759e-05/0.2033, allocations: 8.172 kB / 0.706 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.444e-05/0.2033, allocations: 38.73 kB / 0.7061 GB, free: 14 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.412e-05/0.2033, allocations: 8.891 kB / 0.7061 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.2036, allocations: 126.5 kB / 0.7062 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.2037, allocations: 93.66 kB / 0.7063 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.2038, allocations: 11.94 kB / 0.7063 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.2041, allocations: 101.5 kB / 0.7064 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2041, allocations: 0 / 0.7064 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.2041, allocations: 4 kB / 0.7064 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.2041, allocations: 3.984 kB / 0.7064 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003173/0.2044, allocations: 71.92 kB / 0.7065 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006147/0.205, allocations: 299.7 kB / 0.7068 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.2055, allocations: 90.56 kB / 0.7068 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.2056, allocations: 40.83 kB / 0.7069 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.2056, allocations: 0 / 0.7069 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003514/0.206, allocations: 131.3 kB / 0.707 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.714e-06/0.206, allocations: 0 / 0.707 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0006642/0.2067, allocations: 181.4 kB / 0.7072 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.2067, allocations: 51.41 kB / 0.7072 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.2069, allocations: 138 kB / 0.7074 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.2069, allocations: 29.7 kB / 0.7074 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.123e-05/0.207, allocations: 92.09 kB / 0.7075 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.689e-05/0.207, allocations: 31.73 kB / 0.7075 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.063e-05/0.2071, allocations: 29.7 kB / 0.7075 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.2073, allocations: 322.8 kB / 0.7078 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.2075, allocations: 107.4 kB / 0.7079 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.2078, allocations: 125.1 kB / 0.7081 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003887/0.2082, allocations: 164.8 kB / 0.7082 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2082, allocations: 0 / 0.7082 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006055/0.2088, allocations: 280.4 kB / 0.7085 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.332e-05/0.2088, allocations: 59.44 kB / 0.7085 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2089, allocations: 0 / 0.7085 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.2089, allocations: 4 kB / 0.7085 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.209, allocations: 27.91 kB / 0.7086 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.209, allocations: 0 / 0.7086 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.2092, allocations: 27.88 kB / 0.7086 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.2092, allocations: 4 kB / 0.7086 GB, free: 11.14 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,step.count,$PRE.step.count,step.T_start,$PRE.step.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * 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.0001183/0.2093, allocations: 117 kB / 0.7087 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.2093, allocations: 11.95 kB / 0.7087 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.569e-05/0.2094, allocations: 20.36 kB / 0.7087 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2094, allocations: 0 / 0.7087 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2094, allocations: 3.938 kB / 0.7088 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.2094, allocations: 3.938 kB / 0.7088 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.2096, allocations: 152.7 kB / 0.7089 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2096, allocations: 0 / 0.7089 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.2098, allocations: 31.91 kB / 0.7089 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2098, allocations: 0 / 0.7089 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.2098, allocations: 4 kB / 0.7089 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.2098, allocations: 4 kB / 0.7089 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2098, allocations: 4 kB / 0.7089 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/0.2104, allocations: 225.1 kB / 0.7092 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.823e-05/0.2105, allocations: 7.953 kB / 0.7092 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.2105, allocations: 0 / 0.7092 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.2106, allocations: 20.03 kB / 0.7092 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.732e-05/0.2107, allocations: 23.91 kB / 0.7092 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.2107, allocations: 7.984 kB / 0.7092 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 7.187e-05/0.2108, allocations: 91.28 kB / 0.7093 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.2108, allocations: 4 kB / 0.7093 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002254/0.211, allocations: 23.98 kB / 0.7093 GB, free: 10.33 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (movingAverage.iDelay,movingAverage.iStop,firstOrder.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,step.T_start,step.count) * Number of discrete states: 1 (step.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009656/0.212, allocations: 0.7529 MB / 0.7101 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005711/0.2125, allocations: 274.1 kB / 0.7103 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2125, allocations: 0 / 0.7103 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.2127, allocations: 55.89 kB / 0.7104 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.213, allocations: 27.98 kB / 0.7104 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002936/0.216, allocations: 1.932 MB / 0.7123 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.211e-05/0.2161, allocations: 87.06 kB / 0.7124 GB, free: 6.977 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 6.02e-05/0.2161, allocations: 8.609 kB / 0.7124 GB, free: 6.969 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.557e-05/0.2162, allocations: 27.42 kB / 0.7124 GB, free: 6.941 MB / 0.5294 GB Notification: Performance of SimCode: time 6.82e-07/0.2162, allocations: 0 / 0.7124 GB, free: 6.941 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.2407, allocations: 3.107 MB / 0.7154 GB, free: 3.996 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.6, allocations: 8.609 kB / 0.7155 GB, free: 3.992 MB / 0.5294 GB " [Timeout remaining time 648] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage_fmu --startTime=0 --stopTime=30 --stepSize=0.012 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_MovingAverage.fmu > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.255281921941787] Failed to read output from testmodel.py, exit status != 0: 11.762801802018657 11.787512034 11.580412755 Calling exit ...