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.001015/0.001014, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.233/1.233, allocations: 222.9 MB / 238.9 MB, free: 4.758 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.00128/0.00128, allocations: 192.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03151/0.03151, allocations: 8.791 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 72.59 kB / 410.4 MB, free: 42.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08844, allocations: 51.56 MB / 462 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003457/0.09194, allocations: 2.093 MB / 464 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.09337, allocations: 0.9549 MB / 465 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.348e-05/0.09347, allocations: 0 / 465 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.09381, allocations: 119.6 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.09404, allocations: 95.61 kB / 465.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.09433, allocations: 115.8 kB / 465.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.09456, allocations: 207.3 kB / 465.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.09468, allocations: 41.66 kB / 465.6 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.09481, allocations: 91.56 kB / 465.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001408/0.09496, allocations: 107.6 kB / 465.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.095, allocations: 8 kB / 465.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.678e-05/0.0951, allocations: 51.84 kB / 465.8 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.266e-05/0.09517, allocations: 43.84 kB / 465.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.84e-05/0.09525, allocations: 75.55 kB / 465.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.0955, allocations: 223.5 kB / 466.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.09551, allocations: 4 kB / 466.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.11e-07/0.09552, allocations: 0 / 466.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.09553, allocations: 0 / 466.2 MB, free: 10.66 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.0006063/0.09614, allocations: 0.4948 MB / 466.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.801e-05/0.09618, allocations: 12.03 kB / 466.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.09623, allocations: 20.66 kB / 466.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.09647, allocations: 248 kB / 466.9 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.09649, allocations: 8.609 kB / 466.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.09652, allocations: 16.12 kB / 467 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002439/0.09677, allocations: 145.4 kB / 467.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.0968, allocations: 0 / 467.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.09682, allocations: 4 kB / 467.1 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.09683, allocations: 4 kB / 467.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001536/0.09698, allocations: 72.64 kB / 467.2 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007051/0.0977, allocations: 0.6341 MB / 467.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.09793, allocations: 90.64 kB / 467.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.212e-05/0.09801, allocations: 36.83 kB / 467.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.09804, allocations: 3.938 kB / 467.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001811/0.09822, allocations: 83.38 kB / 468 MB, free: 8.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.09823, allocations: 0 / 468 MB, free: 8.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003591/0.0986, allocations: 153.6 kB / 468.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.09864, allocations: 55.41 kB / 468.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.09889, allocations: 268.2 kB / 468.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.09891, allocations: 33.64 kB / 468.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.099, allocations: 140.1 kB / 468.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.09904, allocations: 31.55 kB / 468.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.09909, allocations: 33.7 kB / 468.7 MB, free: 7.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.0992, allocations: 334.8 kB / 469 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.54e-05/0.09928, allocations: 27.98 kB / 469.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.721e-05/0.09939, allocations: 76.2 kB / 469.1 MB, free: 7.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.09955, allocations: 104.2 kB / 469.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.09956, allocations: 4 kB / 469.2 MB, free: 7.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002482/0.09982, allocations: 145.3 kB / 469.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.09984, allocations: 10.03 kB / 469.4 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.09985, allocations: 0 / 469.4 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.09986, allocations: 3.984 kB / 469.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.1, allocations: 24 kB / 469.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.1, allocations: 7.984 kB / 469.4 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.3e-05/0.1001, allocations: 15.97 kB / 469.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.1001, allocations: 8 kB / 469.5 MB, free: 7.078 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.0001093/0.1002, allocations: 150.3 kB / 469.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.1003, allocations: 15.81 kB / 469.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.1003, allocations: 21.39 kB / 469.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.1003, allocations: 0 / 469.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1003, allocations: 0 / 469.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1003, allocations: 0 / 469.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.1005, allocations: 253.3 kB / 469.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1005, allocations: 0 / 469.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.1006, allocations: 24 kB / 469.9 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1007, allocations: 0 / 469.9 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1007, allocations: 7.984 kB / 469.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1007, allocations: 0 / 469.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1007, allocations: 0 / 469.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.101, allocations: 180.8 kB / 470.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.1011, allocations: 96.94 kB / 470.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.1011, allocations: 4 kB / 470.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.134e-05/0.1012, allocations: 4.062 kB / 470.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.1012, allocations: 12.02 kB / 470.2 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.1012, allocations: 11.94 kB / 470.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.1014, allocations: 205.6 kB / 470.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.504e-06/0.1014, allocations: 0 / 470.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.1017, allocations: 47.84 kB / 470.5 MB, free: 5.973 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.0008588/0.1025, allocations: 406.3 kB / 470.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.1027, allocations: 87.84 kB / 471 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1028, allocations: 0 / 471 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.807e-05/0.1029, allocations: 43.92 kB / 471 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1031, allocations: 37.66 kB / 471 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007828/0.1039, allocations: 0.5537 MB / 471.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.1042, allocations: 0.7361 MB / 472.3 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.517e-05/0.1043, allocations: 25.39 kB / 472.3 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.899e-05/0.1043, allocations: 23.44 kB / 472.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1044, allocations: 0 / 472.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of Templates: time 0.004168/0.1085, allocations: 1.921 MB / 474.3 MB, free: 2.281 MB / 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)