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.001335/0.001335, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.41/1.41, allocations: 222.9 MB / 239 MB, free: 4.609 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.00132/0.00132, allocations: 184.4 kB / 289.3 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03287/0.03287, allocations: 8.774 MB / 348.2 MB, free: 4.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 74.8 kB / 410.6 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1078, allocations: 51.57 MB / 462.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003373/0.1112, allocations: 2.093 MB / 464.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1127, allocations: 0.9471 MB / 465.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1129, allocations: 7.938 kB / 465.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003867/0.1133, allocations: 111.7 kB / 465.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.1136, allocations: 111.5 kB / 465.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.1139, allocations: 110.4 kB / 465.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002764/0.1142, allocations: 215.2 kB / 465.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1144, allocations: 49.66 kB / 465.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.1145, allocations: 99.55 kB / 465.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001592/0.1147, allocations: 107.7 kB / 466 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/0.1147, allocations: 12 kB / 466 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.1148, allocations: 55.97 kB / 466 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.575e-05/0.1149, allocations: 43.84 kB / 466.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.093e-05/0.115, allocations: 87.47 kB / 466.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.1153, allocations: 219.6 kB / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1154, allocations: 11.88 kB / 466.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1154, allocations: 0 / 466.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1154, allocations: 0 / 466.4 MB, free: 10.4 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.000697/0.1161, allocations: 0.5026 MB / 466.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.1161, allocations: 8.031 kB / 466.9 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.067e-05/0.1162, allocations: 24.66 kB / 466.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.1165, allocations: 240 kB / 467.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.1165, allocations: 12.61 kB / 467.2 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1165, allocations: 24.11 kB / 467.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002746/0.1168, allocations: 133.5 kB / 467.3 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.1168, allocations: 0 / 467.3 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.1169, allocations: 8 kB / 467.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.1169, allocations: 0 / 467.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.117, allocations: 76.59 kB / 467.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.1178, allocations: 0.6225 MB / 468 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.1181, allocations: 98.58 kB / 468.1 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.522e-05/0.1182, allocations: 32.89 kB / 468.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1182, allocations: 11.97 kB / 468.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002361/0.1184, allocations: 83.31 kB / 468.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.1184, allocations: 0 / 468.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004315/0.1189, allocations: 153.2 kB / 468.4 MB, free: 8.195 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.1189, allocations: 55.34 kB / 468.5 MB, free: 8.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.1192, allocations: 276.1 kB / 468.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.1192, allocations: 25.7 kB / 468.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.1193, allocations: 144.1 kB / 468.9 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.1194, allocations: 31.55 kB / 468.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/0.1194, allocations: 29.72 kB / 469 MB, free: 7.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1196, allocations: 334.8 kB / 469.3 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.708e-05/0.1197, allocations: 31.98 kB / 469.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.1198, allocations: 68.28 kB / 469.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.1199, allocations: 96.22 kB / 469.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.1199, allocations: 0 / 469.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00026/0.1202, allocations: 157.3 kB / 469.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1202, allocations: 4 kB / 469.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1202, allocations: 0 / 469.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1203, allocations: 4 kB / 469.6 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.1204, allocations: 27.92 kB / 469.7 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1204, allocations: 7.984 kB / 469.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-05/0.1205, allocations: 15.84 kB / 469.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.1205, allocations: 4 kB / 469.7 MB, free: 6.824 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.0001326/0.1207, allocations: 152 kB / 469.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.457e-05/0.1207, allocations: 15.81 kB / 469.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.924e-05/0.1208, allocations: 21.39 kB / 469.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1208, allocations: 4 kB / 469.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1208, allocations: 4 kB / 469.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1208, allocations: 0 / 469.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002203/0.121, allocations: 253.3 kB / 470.1 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.121, allocations: 3.938 kB / 470.1 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.1211, allocations: 19.98 kB / 470.2 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1212, allocations: 4 kB / 470.2 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.1212, allocations: 4 kB / 470.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1212, allocations: 0 / 470.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1212, allocations: 0 / 470.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.1215, allocations: 193.1 kB / 470.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.1216, allocations: 88.95 kB / 470.4 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.1216, allocations: 4 kB / 470.4 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.117e-05/0.1217, allocations: 7.984 kB / 470.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.1217, allocations: 8.062 kB / 470.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1217, allocations: 4 kB / 470.5 MB, free: 5.961 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001589/0.1219, allocations: 205.6 kB / 470.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1219, allocations: 0 / 470.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.1222, allocations: 43.91 kB / 470.7 MB, free: 5.719 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.0009291/0.1231, allocations: 406 kB / 471.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002556/0.1234, allocations: 95.95 kB / 471.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1234, allocations: 0 / 471.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.121e-05/0.1235, allocations: 43.92 kB / 471.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.1238, allocations: 40.98 kB / 471.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008965/0.1247, allocations: 0.5558 MB / 471.8 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.125, allocations: 0.7358 MB / 472.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.028e-05/0.1251, allocations: 21.42 kB / 472.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.1252, allocations: 19.42 kB / 472.6 MB, free: 3.922 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1252, allocations: 4 kB / 472.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of Templates: time 0.005091/0.1303, allocations: 1.97 MB / 474.6 MB, free: 1.969 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)