Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Running command: translateModel(Annex60.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average") translateModel(Annex60.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average") [: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/Annex60 1.0.0/package.mo): time 0.3077/0.3077, allocations: 54.4 MB / 61.68 MB, free: 11.15 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001149/0.001149, allocations: 184.5 kB / 75.37 MB, free: 1.473 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.457/1.457, allocations: 194.2 MB / 283.2 MB, free: 3.547 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001759/0.001759, allocations: 113.2 kB / 341.3 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.215e-06/8.445e-06, allocations: 0 / 404.9 MB, free: 27.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 57.66 MB / 462.6 MB, free: 1.957 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2909/0.4081, allocations: 84.84 MB / 0.5346 GB, free: 12.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4083, allocations: 72.44 kB / 0.5347 GB, free: 12.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.00319/0.4115, allocations: 0.798 MB / 0.5355 GB, free: 11.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.4116, allocations: 0.5469 kB / 0.5355 GB, free: 11.68 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005005/0.4121, allocations: 380.6 kB / 0.5358 GB, free: 11.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.4121, allocations: 11.97 kB / 0.5358 GB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.4122, allocations: 12.75 kB / 0.5358 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.4124, allocations: 190.4 kB / 0.536 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.4124, allocations: 4 kB / 0.536 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.4124, allocations: 1.25 kB / 0.536 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001129/0.4125, allocations: 34.25 kB / 0.5361 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.4126, allocations: 60.86 kB / 0.5361 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.4127, allocations: 3.938 kB / 0.5361 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.4127, allocations: 0 / 0.5361 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.4127, allocations: 3.906 kB / 0.5361 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005252/0.4132, allocations: 319.1 kB / 0.5364 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.757e-05/0.4133, allocations: 29.83 kB / 0.5365 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.4133, allocations: 24.17 kB / 0.5365 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.452e-05/0.4134, allocations: 4 kB / 0.5365 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.4134, allocations: 34.56 kB / 0.5365 GB, free: 10.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.4134, allocations: 0 / 0.5365 GB, free: 10.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002185/0.4137, allocations: 63.88 kB / 0.5366 GB, free: 10.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.4137, allocations: 55.41 kB / 0.5366 GB, free: 10.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.014e-05/0.4138, allocations: 100.7 kB / 0.5367 GB, free: 10.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.4138, allocations: 25.7 kB / 0.5368 GB, free: 10.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.849e-05/0.4139, allocations: 91.61 kB / 0.5368 GB, free: 10.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.106e-05/0.4139, allocations: 11.83 kB / 0.5369 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.4139, allocations: 0 / 0.5369 GB, free: 10.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.4141, allocations: 322 kB / 0.5372 GB, free: 9.812 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.776e-05/0.4141, allocations: 7.438 kB / 0.5372 GB, free: 9.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.441e-05/0.4141, allocations: 11.31 kB / 0.5372 GB, free: 9.801 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.977e-05/0.4142, allocations: 15.11 kB / 0.5372 GB, free: 9.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4142, allocations: 0 / 0.5372 GB, free: 9.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001258/0.4143, allocations: 60.09 kB / 0.5373 GB, free: 9.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4144, allocations: 6.031 kB / 0.5373 GB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4144, allocations: 3.984 kB / 0.5373 GB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.4144, allocations: 0 / 0.5373 GB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.4146, allocations: 31.55 kB / 0.5373 GB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.4146, allocations: 0 / 0.5373 GB, free: 9.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.4147, allocations: 27.89 kB / 0.5373 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.4147, allocations: 0 / 0.5373 GB, free: 9.668 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 6.737e-05/0.4148, allocations: 101 kB / 0.5374 GB, free: 9.562 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.4148, allocations: 7.906 kB / 0.5374 GB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.415, allocations: 72.47 kB / 0.5375 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.415, allocations: 3.938 kB / 0.5375 GB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.415, allocations: 4 kB / 0.5375 GB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.415, allocations: 0 / 0.5375 GB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.4152, allocations: 156.6 kB / 0.5376 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4152, allocations: 0 / 0.5376 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.4153, allocations: 26.11 kB / 0.5377 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4153, allocations: 0 / 0.5377 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.4153, allocations: 4 kB / 0.5377 GB, free: 9.262 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4153, allocations: 3.938 kB / 0.5377 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4153, allocations: 7.938 kB / 0.5377 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001645/0.4155, allocations: 153.8 kB / 0.5378 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.39e-05/0.4156, allocations: 85.02 kB / 0.5379 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.4156, allocations: 0 / 0.5379 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.4157, allocations: 19.98 kB / 0.5379 GB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.4158, allocations: 7.984 kB / 0.5379 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.902e-06/0.4158, allocations: 0 / 0.5379 GB, free: 8.965 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.993e-05/0.4158, allocations: 86.91 kB / 0.538 GB, free: 8.883 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002243/0.4161, allocations: 8 kB / 0.538 GB, free: 8.875 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001298/0.4162, allocations: 103.2 kB / 0.5381 GB, free: 8.766 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.799e-05/0.4163, allocations: 34.22 kB / 0.5382 GB, free: 8.742 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4163, allocations: 0 / 0.5382 GB, free: 8.742 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.494e-05/0.4163, allocations: 11.31 kB / 0.5382 GB, free: 8.734 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001648/0.4165, allocations: 15.33 kB / 0.5382 GB, free: 8.723 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002737/0.4168, allocations: 93.98 kB / 0.5383 GB, free: 8.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.4171, allocations: 0.711 MB / 0.539 GB, free: 7.875 MB / 378.7 MB Notification: Performance of SimCode: time 1.814e-06/0.4171, allocations: 0 / 0.539 GB, free: 7.875 MB / 378.7 MB Notification: Performance of Templates: time 0.002771/0.4199, allocations: 0.7204 MB / 0.5397 GB, free: 7.164 MB / 378.7 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.sim & ./Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.pipe 2>&1)