Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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/HanserModelica 2.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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.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(HanserModelica.Rotational.Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.Drive") translateModel(HanserModelica.Rotational.Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.Drive") [: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.003453/0.003453, allocations: 184.9 kB / 7.453 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05936/0.05936, allocations: 8.708 MB / 16.58 MB, free: 432 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 221.4 MB / 240.5 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009975/0.0009975, allocations: 112 kB / 293.5 MB, free: 5.375 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.731e-06/5.881e-06, allocations: 0 / 352.1 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.277, allocations: 52.54 MB / 404.6 MB, free: 24.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09642/0.3735, allocations: 81.4 MB / 486 MB, free: 7.242 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001752/0.3737, allocations: 67.97 kB / 486.1 MB, free: 7.176 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.01344/0.3871, allocations: 4.716 MB / 490.8 MB, free: 2.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.3872, allocations: 11.92 kB / 490.8 MB, free: 2.469 MB / 362.7 MB 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.0005493/0.3877, allocations: 470 kB / 491.3 MB, free: 1.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.3878, allocations: 8.031 kB / 491.3 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.192e-05/0.3878, allocations: 23.72 kB / 491.3 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.3882, allocations: 242.9 kB / 491.5 MB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.3882, allocations: 8 kB / 491.5 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.3883, allocations: 15.91 kB / 491.6 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001598/0.3884, allocations: 60.45 kB / 491.6 MB, free: 1.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.3886, allocations: 129.1 kB / 491.7 MB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3886, allocations: 0 / 491.7 MB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.3887, allocations: 0 / 491.7 MB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.3887, allocations: 4 kB / 491.7 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008083/0.3895, allocations: 0.6037 MB / 492.3 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.3897, allocations: 78.64 kB / 492.4 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.382e-05/0.3897, allocations: 32.86 kB / 492.5 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.3898, allocations: 8 kB / 492.5 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/0.3899, allocations: 67.58 kB / 492.5 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 3.206e-06/0.3899, allocations: 0 / 492.5 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002303/0.3901, allocations: 109.3 kB / 492.6 MB, free: 460 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.3902, allocations: 59.41 kB / 492.7 MB, free: 388 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.3904, allocations: 231 kB / 492.9 MB, free: 148 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.3905, allocations: 33.7 kB / 493 MB, free: 108 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.869e-05/0.3905, allocations: 128.2 kB / 493.1 MB, free: 15.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.3906, allocations: 31.55 kB / 493.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-06/0.3906, allocations: 0 / 493.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3907, allocations: 330.8 kB / 493.4 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.32e-05/0.3908, allocations: 20 kB / 493.5 MB, free: 15.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.161e-05/0.3909, allocations: 68.22 kB / 493.5 MB, free: 15.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.517e-05/0.3909, allocations: 39.92 kB / 493.6 MB, free: 15.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3909, allocations: 0 / 493.6 MB, free: 15.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002102/0.3912, allocations: 129.3 kB / 493.7 MB, free: 15.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.3912, allocations: 4.094 kB / 493.7 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3912, allocations: 3.938 kB / 493.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3912, allocations: 4 kB / 493.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.3914, allocations: 36.05 kB / 493.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3914, allocations: 7.984 kB / 493.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.046e-05/0.3915, allocations: 11.91 kB / 493.8 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.3915, allocations: 4 kB / 493.8 MB, free: 15.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.849e-05/0.3916, allocations: 112.9 kB / 493.9 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.3916, allocations: 15.81 kB / 493.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.3919, allocations: 126.9 kB / 494 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3919, allocations: 4 kB / 494 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3919, allocations: 0 / 494 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3919, allocations: 4 kB / 494 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.3921, allocations: 210.1 kB / 494.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3921, allocations: 7.906 kB / 494.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.3923, allocations: 15.98 kB / 494.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3923, allocations: 4 kB / 494.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.3923, allocations: 4 kB / 494.2 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.3923, allocations: 3.938 kB / 494.3 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3923, allocations: 0 / 494.3 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002746/0.3926, allocations: 180.8 kB / 494.4 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.967e-05/0.3927, allocations: 100.9 kB / 494.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.3927, allocations: 4 kB / 494.5 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.437e-05/0.3928, allocations: 0 / 494.5 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.3929, allocations: 7.984 kB / 494.5 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.3929, allocations: 4 kB / 494.5 MB, free: 14.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001693/0.393, allocations: 197.5 kB / 494.7 MB, free: 14.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002634/0.3933, allocations: 51.92 kB / 494.8 MB, free: 14.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0006048/0.3939, allocations: 319.8 kB / 495.1 MB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001723/0.3941, allocations: 79.92 kB / 495.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.3941, allocations: 112 / 495.2 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.717e-05/0.3942, allocations: 39.94 kB / 495.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.3945, allocations: 32.8 kB / 495.2 MB, free: 13.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007612/0.3953, allocations: 373.1 kB / 495.6 MB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.3957, allocations: 0.7718 MB / 496.4 MB, free: 12.59 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3957, allocations: 0 / 496.4 MB, free: 12.59 MB / 378.7 MB Notification: Performance of Templates: time 0.005066/0.4008, allocations: 2.058 MB / 498.4 MB, free: 10.55 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.Rotational.Drive.makefile (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & ./HanserModelica_HanserModelica.Rotational.Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)