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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001066, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.3 MB / 239.4 MB, free: 5.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 176.5 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03345/0.03345, allocations: 8.797 MB / 350.5 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004245, allocations: 11.78 kB / 413.8 MB, free: 42.81 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09158, allocations: 52.56 MB / 466.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002286/0.0939, allocations: 1.735 MB / 468.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.09545, allocations: 0.9355 MB / 469 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.0956, allocations: 4 kB / 469 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000345/0.09596, allocations: 115.7 kB / 469.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.09624, allocations: 95.61 kB / 469.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.09664, allocations: 130 kB / 469.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.09694, allocations: 203.2 kB / 469.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.09707, allocations: 41.66 kB / 469.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.09722, allocations: 71.7 kB / 469.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.09741, allocations: 123.5 kB / 469.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.09745, allocations: 4 kB / 469.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.09757, allocations: 43.98 kB / 469.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.09765, allocations: 35.84 kB / 469.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.09775, allocations: 109.2 kB / 470 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.09804, allocations: 219.5 kB / 470.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.09805, allocations: 0 / 470.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.09806, allocations: 0 / 470.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.09807, allocations: 0 / 470.2 MB, free: 9.301 MB / 302.1 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.000659/0.09873, allocations: 490.7 kB / 470.7 MB, free: 8.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.09878, allocations: 8.031 kB / 470.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.851e-05/0.09885, allocations: 20.75 kB / 470.7 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.09913, allocations: 248 kB / 471 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.09916, allocations: 12.55 kB / 471 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.394e-05/0.0992, allocations: 20.11 kB / 471 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.09949, allocations: 137.5 kB / 471.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.09952, allocations: 4 kB / 471.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.09954, allocations: 4 kB / 471.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.09955, allocations: 4 kB / 471.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.09973, allocations: 72.59 kB / 471.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008026/0.1005, allocations: 0.6225 MB / 471.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.1008, allocations: 98.61 kB / 471.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.27e-05/0.1009, allocations: 36.84 kB / 472 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.1009, allocations: 0 / 472 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.1011, allocations: 87.31 kB / 472 MB, free: 7.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.1011, allocations: 0 / 472 MB, free: 7.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.000364/0.1015, allocations: 145.4 kB / 472.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.1015, allocations: 55.41 kB / 472.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.1018, allocations: 268.1 kB / 472.5 MB, free: 6.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.1018, allocations: 29.7 kB / 472.5 MB, free: 6.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.706e-05/0.1019, allocations: 140.1 kB / 472.7 MB, free: 6.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.102, allocations: 39.48 kB / 472.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.102, allocations: 25.66 kB / 472.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1021, allocations: 334.8 kB / 473.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.906e-05/0.1022, allocations: 31.98 kB / 473.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.999e-05/0.1023, allocations: 64.22 kB / 473.2 MB, free: 6.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.1025, allocations: 104.2 kB / 473.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1025, allocations: 0 / 473.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002599/0.1028, allocations: 145.3 kB / 473.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1028, allocations: 8 kB / 473.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1028, allocations: 0 / 473.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1028, allocations: 8.125 kB / 473.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.103, allocations: 27.98 kB / 473.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.645e-05/0.103, allocations: 7.938 kB / 473.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.719e-05/0.1031, allocations: 11.84 kB / 473.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1031, allocations: 4 kB / 473.5 MB, free: 5.758 MB / 302.1 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 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.1032, allocations: 146.4 kB / 473.6 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.1033, allocations: 15.81 kB / 473.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.009e-05/0.1033, allocations: 25.39 kB / 473.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1033, allocations: 8 kB / 473.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.1033, allocations: 3.984 kB / 473.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1034, allocations: 0 / 473.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002219/0.1036, allocations: 253.3 kB / 473.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1036, allocations: 384 / 473.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.1037, allocations: 15.98 kB / 473.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1037, allocations: 3.938 kB / 473.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.1037, allocations: 8 kB / 473.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1037, allocations: 3.938 kB / 473.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1038, allocations: 0 / 473.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.1041, allocations: 192.8 kB / 474.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/0.1042, allocations: 92.95 kB / 474.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.645e-05/0.1042, allocations: 4 kB / 474.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.458e-05/0.1043, allocations: 7.984 kB / 474.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/0.1043, allocations: 4 kB / 474.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.1043, allocations: 7.984 kB / 474.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.1045, allocations: 201.6 kB / 474.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1045, allocations: 4.062 kB / 474.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.1048, allocations: 43.84 kB / 474.5 MB, free: 4.645 MB / 302.1 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.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.0008787/0.1057, allocations: 399.8 kB / 474.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002409/0.1059, allocations: 87.84 kB / 475 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1059, allocations: 0 / 475 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.147e-05/0.106, allocations: 39.97 kB / 475 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.1064, allocations: 48.75 kB / 475 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008818/0.1072, allocations: 0.5958 MB / 475.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.1076, allocations: 0.74 MB / 476.4 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.633e-05/0.1077, allocations: 25.39 kB / 476.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.364e-05/0.1078, allocations: 19.42 kB / 476.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1078, allocations: 4 kB / 476.4 MB, free: 2.797 MB / 302.1 MB Notification: Performance of Templates: time 0.004882/0.1126, allocations: 1.893 MB / 478.3 MB, free: 0.9258 MB / 302.1 MB make -j1 -f HanserModelica_HanserModelica.Rotational.Drive.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: