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.006278/0.006278, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.429/1.429, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.001404/0.001404, allocations: 192.4 kB / 289.7 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03518/0.03518, allocations: 8.786 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001827, allocations: 75.86 kB / 463.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1188, allocations: 51.55 MB / 0.5034 GB, free: 9.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003224/0.1221, allocations: 2.055 MB / 0.5054 GB, free: 7.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1238, allocations: 0.9664 MB / 0.5063 GB, free: 6.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.938e-05/0.1239, allocations: 4 kB / 0.5063 GB, free: 6.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003493/0.1242, allocations: 123.5 kB / 0.5064 GB, free: 6.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.1245, allocations: 111.4 kB / 0.5065 GB, free: 6.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003301/0.1249, allocations: 147.1 kB / 0.5067 GB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002533/0.1251, allocations: 211.3 kB / 0.5069 GB, free: 5.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.1253, allocations: 41.66 kB / 0.5069 GB, free: 5.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.1254, allocations: 99.61 kB / 0.507 GB, free: 5.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.1256, allocations: 119.6 kB / 0.5071 GB, free: 5.645 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.976e-05/0.1256, allocations: 8 kB / 0.5071 GB, free: 5.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.1258, allocations: 51.97 kB / 0.5072 GB, free: 5.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.1258, allocations: 43.84 kB / 0.5072 GB, free: 5.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.905e-05/0.1259, allocations: 87.47 kB / 0.5073 GB, free: 5.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.1262, allocations: 227.2 kB / 0.5075 GB, free: 5.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1262, allocations: 0 / 0.5075 GB, free: 5.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1262, allocations: 3.938 kB / 0.5075 GB, free: 5.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1263, allocations: 0 / 0.5075 GB, free: 5.23 MB / 350.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.0007329/0.127, allocations: 0.5065 MB / 0.508 GB, free: 4.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.127, allocations: 8.031 kB / 0.508 GB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.775e-05/0.1271, allocations: 24.66 kB / 0.5081 GB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1274, allocations: 247.8 kB / 0.5083 GB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1274, allocations: 8.609 kB / 0.5083 GB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.419e-05/0.1275, allocations: 20.03 kB / 0.5083 GB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.1277, allocations: 149.4 kB / 0.5085 GB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1278, allocations: 3.938 kB / 0.5085 GB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.1278, allocations: 8 kB / 0.5085 GB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.1278, allocations: 0 / 0.5085 GB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.128, allocations: 74.25 kB / 0.5085 GB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007846/0.1287, allocations: 0.6186 MB / 0.5092 GB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002301/0.129, allocations: 94.61 kB / 0.5092 GB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.885e-05/0.1291, allocations: 36.84 kB / 0.5093 GB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.1291, allocations: 0 / 0.5093 GB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/0.1293, allocations: 87.31 kB / 0.5094 GB, free: 3.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1293, allocations: 4 kB / 0.5094 GB, free: 3.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004208/0.1297, allocations: 153.3 kB / 0.5095 GB, free: 3.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.1298, allocations: 51.41 kB / 0.5096 GB, free: 2.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.13, allocations: 272 kB / 0.5098 GB, free: 2.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.13, allocations: 25.7 kB / 0.5098 GB, free: 2.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.1301, allocations: 140.2 kB / 0.51 GB, free: 2.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.1302, allocations: 35.45 kB / 0.51 GB, free: 2.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.1302, allocations: 33.7 kB / 0.51 GB, free: 2.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1304, allocations: 334.8 kB / 0.5104 GB, free: 2.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.991e-05/0.1304, allocations: 31.98 kB / 0.5104 GB, free: 2.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-05/0.1305, allocations: 64.27 kB / 0.5105 GB, free: 1.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.1307, allocations: 104.2 kB / 0.5106 GB, free: 1.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1307, allocations: 0 / 0.5106 GB, free: 1.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000256/0.131, allocations: 145.3 kB / 0.5107 GB, free: 1.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.131, allocations: 8 kB / 0.5107 GB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.131, allocations: 0 / 0.5107 GB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1311, allocations: 0 / 0.5107 GB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.1312, allocations: 36.05 kB / 0.5107 GB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1312, allocations: 4 kB / 0.5107 GB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.804e-05/0.1313, allocations: 19.83 kB / 0.5108 GB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.1313, allocations: 8 kB / 0.5108 GB, free: 1.633 MB / 350.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.0001281/0.1315, allocations: 149.6 kB / 0.5109 GB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.1315, allocations: 15.81 kB / 0.5109 GB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.1315, allocations: 17.41 kB / 0.5109 GB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1316, allocations: 3.984 kB / 0.5109 GB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1316, allocations: 0 / 0.5109 GB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1316, allocations: 8 kB / 0.5109 GB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.1318, allocations: 241.5 kB / 0.5112 GB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1318, allocations: 0 / 0.5112 GB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1319, allocations: 27.92 kB / 0.5112 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1319, allocations: 0 / 0.5112 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.132, allocations: 4 kB / 0.5112 GB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.132, allocations: 0 / 0.5112 GB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.132, allocations: 0 / 0.5112 GB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003485/0.1323, allocations: 197 kB / 0.5114 GB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.237e-05/0.1324, allocations: 96.94 kB / 0.5115 GB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.1324, allocations: 7.938 kB / 0.5115 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.947e-05/0.1325, allocations: 0 / 0.5115 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.1325, allocations: 7.984 kB / 0.5115 GB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1325, allocations: 11.98 kB / 0.5115 GB, free: 0.7539 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001582/0.1327, allocations: 197.6 kB / 0.5117 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1327, allocations: 0 / 0.5117 GB, free: 0.5625 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.133, allocations: 47.89 kB / 0.5118 GB, free: 0.5156 MB / 350.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.0008757/0.1338, allocations: 408.8 kB / 0.5121 GB, free: 276 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.1341, allocations: 83.84 kB / 0.5122 GB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1341, allocations: 0 / 0.5122 GB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.794e-05/0.1342, allocations: 43.92 kB / 0.5123 GB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.1345, allocations: 36.34 kB / 0.5123 GB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008629/0.1354, allocations: 497.4 kB / 0.5128 GB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.1357, allocations: 0.7396 MB / 0.5135 GB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.905e-05/0.1358, allocations: 29.39 kB / 0.5135 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.968e-05/0.1358, allocations: 23.38 kB / 0.5135 GB, free: 14.78 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1358, allocations: 0 / 0.5135 GB, free: 14.78 MB / 366.1 MB Notification: Performance of Templates: time 0.004775/0.1406, allocations: 1.999 MB / 0.5155 GB, free: 12.8 MB / 366.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)