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.000876/0.000876, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 223.3 MB / 240 MB, free: 5.355 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.0009567/0.0009567, allocations: 180.5 kB / 291.3 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03479/0.03479, allocations: 8.802 MB / 351.2 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.000331, allocations: 14.81 kB / 414.5 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06532/0.06567, allocations: 52.55 MB / 467 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002038/0.06773, allocations: 1.747 MB / 468.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.06913, allocations: 0.9277 MB / 469.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.507e-05/0.06923, allocations: 0 / 469.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003061/0.06955, allocations: 115.7 kB / 469.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.06979, allocations: 99.61 kB / 469.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003145/0.07011, allocations: 131.6 kB / 470 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.07036, allocations: 211.3 kB / 470.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.07048, allocations: 29.67 kB / 470.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.07061, allocations: 87.62 kB / 470.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.07076, allocations: 103.6 kB / 470.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.07079, allocations: 8 kB / 470.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.82e-05/0.0709, allocations: 39.98 kB / 470.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.042e-05/0.07096, allocations: 47.84 kB / 470.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.532e-05/0.07106, allocations: 109.1 kB / 470.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.07125, allocations: 175.8 kB / 470.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.07126, allocations: 0 / 470.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07127, allocations: 0 / 470.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.07128, allocations: 0 / 470.8 MB, free: 9.277 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.0005509/0.07183, allocations: 470.8 kB / 471.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.07187, allocations: 8.031 kB / 471.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.07193, allocations: 24.73 kB / 471.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.07217, allocations: 252 kB / 471.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.0722, allocations: 8.609 kB / 471.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.07223, allocations: 20.06 kB / 471.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.07249, allocations: 141.4 kB / 471.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.07251, allocations: 0 / 471.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.07253, allocations: 4 kB / 471.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.07254, allocations: 4 kB / 471.7 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.0727, allocations: 68.67 kB / 471.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/0.07343, allocations: 0.6224 MB / 472.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.07366, allocations: 102.7 kB / 472.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.678e-05/0.07375, allocations: 40.78 kB / 472.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.07377, allocations: 4 kB / 472.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.07396, allocations: 79.38 kB / 472.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.07397, allocations: 3.938 kB / 472.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003365/0.07431, allocations: 153.4 kB / 472.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.07435, allocations: 51.41 kB / 472.9 MB, free: 7.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.07459, allocations: 268.1 kB / 473.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/0.07461, allocations: 25.7 kB / 473.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.0747, allocations: 144.5 kB / 473.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.943e-05/0.07473, allocations: 31.55 kB / 473.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.07477, allocations: 17.72 kB / 473.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.07487, allocations: 338.8 kB / 473.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.185e-05/0.07496, allocations: 43.86 kB / 473.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.078e-05/0.07506, allocations: 68.2 kB / 473.8 MB, free: 6.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.07523, allocations: 104.2 kB / 473.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.07524, allocations: 0 / 473.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000254/0.0755, allocations: 145.3 kB / 474 MB, free: 5.805 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.07552, allocations: 4 kB / 474 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.07553, allocations: 4 kB / 474 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.277e-06/0.07555, allocations: 0 / 474 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.07568, allocations: 27.98 kB / 474.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.0757, allocations: 0 / 474.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.944e-05/0.07578, allocations: 20.02 kB / 474.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.0758, allocations: 8 kB / 474.1 MB, free: 5.742 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.0001139/0.07592, allocations: 146.3 kB / 474.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.07595, allocations: 15.81 kB / 474.2 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.273e-05/0.076, allocations: 21.41 kB / 474.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.07601, allocations: 0 / 474.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.07601, allocations: 0 / 474.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.07602, allocations: 7.969 kB / 474.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.07622, allocations: 249.4 kB / 474.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.07623, allocations: 4 kB / 474.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.07634, allocations: 23.98 kB / 474.5 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.07635, allocations: 0 / 474.5 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.07637, allocations: 0 / 474.5 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.07638, allocations: 7.938 kB / 474.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.07638, allocations: 0 / 474.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.07671, allocations: 184.8 kB / 474.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/0.07677, allocations: 100.9 kB / 474.8 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.0768, allocations: 4.062 kB / 474.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.451e-05/0.07687, allocations: 4 kB / 474.8 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.725e-05/0.07691, allocations: 7.984 kB / 474.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.07693, allocations: 4 kB / 474.8 MB, free: 4.883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.07709, allocations: 205.6 kB / 475 MB, free: 4.684 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.0771, allocations: 0 / 475 MB, free: 4.684 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.07736, allocations: 47.84 kB / 475.1 MB, free: 4.637 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.0008617/0.07822, allocations: 411 kB / 475.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002077/0.07844, allocations: 83.84 kB / 475.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.07846, allocations: 4 kB / 475.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.442e-05/0.07854, allocations: 39.92 kB / 475.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.07885, allocations: 38.08 kB / 475.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007977/0.07966, allocations: 0.6329 MB / 476.3 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.07992, allocations: 0.7399 MB / 477 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.517e-05/0.07997, allocations: 23.44 kB / 477.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.07998, allocations: 0 / 477.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of Templates: time 0.00397/0.08395, allocations: 2.548 MB / 479.6 MB, free: 244 kB / 302.1 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)