Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage") translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002097/0.002097, allocations: 183 kB / 7.461 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.617/0.617, allocations: 133.5 MB / 141.4 MB, free: 15.69 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.124/1.124, allocations: 221.3 MB / 395 MB, free: 10.16 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009094/0.0009091, allocations: 88.81 kB / 477.8 MB, free: 10.78 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.404e-06/7.514e-06, allocations: 2.5 kB / 0.5528 GB, free: 89.15 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 82.31 MB / 0.6332 GB, free: 14.1 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3257/0.4469, allocations: 111.8 MB / 0.7424 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001645/0.4471, allocations: 77.77 kB / 0.7425 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.00555/0.4527, allocations: 2.025 MB / 0.7444 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.4527, allocations: 1.094 kB / 0.7444 GB, free: 10.61 MB / 0.4948 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.0005312/0.4532, allocations: 458 kB / 0.7449 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.795e-05/0.4533, allocations: 7.812 kB / 0.7449 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.875e-05/0.4533, allocations: 11.75 kB / 0.7449 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.4535, allocations: 197.5 kB / 0.7451 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.429e-05/0.4536, allocations: 34.84 kB / 0.7451 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.4536, allocations: 5.25 kB / 0.7451 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.784e-05/0.4537, allocations: 26.91 kB / 0.7451 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.4538, allocations: 73.95 kB / 0.7452 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4538, allocations: 3.938 kB / 0.7452 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.4538, allocations: 3.875 kB / 0.7452 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.4539, allocations: 0 / 0.7452 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.4543, allocations: 318.1 kB / 0.7455 GB, free: 25.65 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.4545, allocations: 53.89 kB / 0.7456 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.083e-05/0.4545, allocations: 25.27 kB / 0.7456 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.4546, allocations: 0 / 0.7456 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001028/0.4547, allocations: 86.11 kB / 0.7457 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.4547, allocations: 0 / 0.7457 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=9): time 0.0001769/0.4549, allocations: 80.48 kB / 0.7458 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.4549, allocations: 55.34 kB / 0.7458 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.468e-05/0.455, allocations: 117.1 kB / 0.7459 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.455, allocations: 27.2 kB / 0.7459 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.547e-05/0.455, allocations: 85.8 kB / 0.746 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.4551, allocations: 32.83 kB / 0.7461 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.875e-06/0.4551, allocations: 4 kB / 0.7461 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.184e-05/0.4552, allocations: 320 kB / 0.7464 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.016e-05/0.4552, allocations: 33.05 kB / 0.7464 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.376e-05/0.4553, allocations: 40.39 kB / 0.7464 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.679e-05/0.4554, allocations: 29.55 kB / 0.7465 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.4554, allocations: 0 / 0.7465 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000157/0.4555, allocations: 116.4 kB / 0.7466 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.486e-06/0.4555, allocations: 11.81 kB / 0.7466 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.4555, allocations: 1.312 kB / 0.7466 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.4556, allocations: 0 / 0.7466 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.4557, allocations: 27.88 kB / 0.7466 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.4557, allocations: 1.359 kB / 0.7466 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.4558, allocations: 27.17 kB / 0.7466 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.4559, allocations: 5.062 kB / 0.7466 GB, free: 24.84 MB / 0.5105 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,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.093e-05/0.456, allocations: 112.7 kB / 0.7468 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.456, allocations: 12.36 kB / 0.7468 GB, free: 24.72 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.456, allocations: 8.625 kB / 0.7468 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.456, allocations: 7.844 kB / 0.7468 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.456, allocations: 2.75 kB / 0.7468 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.456, allocations: 1.172 kB / 0.7468 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.4562, allocations: 167.4 kB / 0.7469 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4562, allocations: 1.734 kB / 0.7469 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/0.4563, allocations: 27.22 kB / 0.747 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.4563, allocations: 4 kB / 0.747 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.4563, allocations: 3.125 kB / 0.747 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4563, allocations: 0 / 0.747 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4564, allocations: 5.953 kB / 0.747 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001884/0.4565, allocations: 147.5 kB / 0.7471 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.374e-05/0.4566, allocations: 82.38 kB / 0.7472 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.4566, allocations: 4.484 kB / 0.7472 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.4568, allocations: 20.52 kB / 0.7472 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.4568, allocations: 19.94 kB / 0.7472 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.4568, allocations: 3.812 kB / 0.7473 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.215e-05/0.4569, allocations: 92.12 kB / 0.7473 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001883/0.4571, allocations: 20.3 kB / 0.7474 GB, free: 24.29 MB / 0.5105 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.4572, allocations: 118.5 kB / 0.7475 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.4574, allocations: 126.8 kB / 0.7476 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4574, allocations: 0 / 0.7476 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 5.719e-05/0.4574, allocations: 31.94 kB / 0.7476 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.4576, allocations: 21.08 kB / 0.7476 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004213/0.4581, allocations: 168.3 kB / 0.7478 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.4583, allocations: 0.7152 MB / 0.7485 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of SimCode: time 2.61e-07/0.4583, allocations: 0 / 0.7485 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of Templates: time 0.003028/0.4614, allocations: 1.402 MB / 0.7499 GB, free: 23.22 MB / 0.5105 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)