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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 173.6 kB / 16.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.04029/0.04029, allocations: 8.776 MB / 25.64 MB, free: 3.789 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.776/1.776, allocations: 205.4 MB / 233.9 MB, free: 14.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008587/0.0008586, allocations: 93.28 kB / 284.4 MB, free: 14.6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004464/0.0004466, allocations: 12 kB / 344.8 MB, free: 2.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2678, allocations: 49.71 MB / 394.5 MB, free: 36.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.3753, allocations: 80.93 MB / 475.4 MB, free: 3.738 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.3756, allocations: 67.97 kB / 475.5 MB, free: 3.672 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01378/0.3894, allocations: 4.973 MB / 480.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.3894, allocations: 0 / 480.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.798e-05/0.3895, allocations: 4 kB / 480.5 MB, free: 14.69 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.0008072/0.3903, allocations: 0.491 MB / 481 MB, free: 14.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3904, allocations: 8.031 kB / 481 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.1e-05/0.3904, allocations: 36.58 kB / 481 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.3909, allocations: 248 kB / 481.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.3909, allocations: 12.59 kB / 481.3 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.391, allocations: 16.36 kB / 481.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.3913, allocations: 142.9 kB / 481.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.3913, allocations: 192 / 481.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.3913, allocations: 11.88 kB / 481.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3913, allocations: 4 kB / 481.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.3915, allocations: 76.66 kB / 481.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009352/0.3925, allocations: 0.638 MB / 482.1 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.3927, allocations: 90.64 kB / 482.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.321e-05/0.3928, allocations: 36.88 kB / 482.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.3928, allocations: 4 kB / 482.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.393, allocations: 91.25 kB / 482.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/0.393, allocations: 0 / 482.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003967/0.3934, allocations: 153.4 kB / 482.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.3935, allocations: 59.39 kB / 482.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.3938, allocations: 264.1 kB / 482.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.3939, allocations: 29.7 kB / 482.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.394, allocations: 144 kB / 483 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.394, allocations: 31.55 kB / 483 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.394, allocations: 4 kB / 483 MB, free: 11.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.3942, allocations: 330.8 kB / 483.4 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.527e-05/0.3942, allocations: 31.98 kB / 483.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.3944, allocations: 76.14 kB / 483.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.3945, allocations: 104.2 kB / 483.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3946, allocations: 384 / 483.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002805/0.3948, allocations: 157.1 kB / 483.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3949, allocations: 8 kB / 483.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3949, allocations: 0 / 483.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3949, allocations: 3.938 kB / 483.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.3951, allocations: 31.98 kB / 483.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.3951, allocations: 4.125 kB / 483.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.233e-05/0.3952, allocations: 8 kB / 483.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.3952, allocations: 4 kB / 483.8 MB, free: 11.1 MB / 362.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 () * Number of clocked 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 0.0001495/0.3953, allocations: 153.5 kB / 483.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.22e-05/0.3954, allocations: 19.75 kB / 483.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002919/0.3957, allocations: 146.9 kB / 484.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3957, allocations: 4 kB / 484.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3957, allocations: 0 / 484.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3957, allocations: 4 kB / 484.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.396, allocations: 249.5 kB / 484.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.396, allocations: 3.938 kB / 484.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.3961, allocations: 27.91 kB / 484.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3961, allocations: 0 / 484.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.3961, allocations: 4 kB / 484.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3961, allocations: 0 / 484.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3961, allocations: 0 / 484.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.3965, allocations: 196.8 kB / 484.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.344e-05/0.3966, allocations: 112.8 kB / 484.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/0.3966, allocations: 4 kB / 484.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.359e-05/0.3967, allocations: 4 kB / 484.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.3968, allocations: 7.984 kB / 484.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.3968, allocations: 0 / 484.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001928/0.397, allocations: 205.8 kB / 484.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.397, allocations: 0 / 484.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002827/0.3973, allocations: 51.92 kB / 484.9 MB, free: 9.836 MB / 362.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) * Number of clocked states: 0 () * 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.0009086/0.3982, allocations: 415.8 kB / 485.4 MB, free: 9.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.3984, allocations: 87.84 kB / 485.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3985, allocations: 0 / 485.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.145e-05/0.3986, allocations: 43.92 kB / 485.5 MB, free: 9.301 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.3989, allocations: 40.28 kB / 485.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009827/0.3999, allocations: 0.5999 MB / 486.1 MB, free: 8.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.4002, allocations: 0.7438 MB / 486.9 MB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.169e-05/0.4003, allocations: 25.41 kB / 486.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/0.4004, allocations: 19.44 kB / 486.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.4004, allocations: 0 / 486.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of Templates: time 0.005391/0.4058, allocations: 2.056 MB / 489 MB, free: 5.77 MB / 362.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)