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.007483/0.007483, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.379/1.379, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001298/0.001298, allocations: 192.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0358/0.0358, allocations: 8.782 MB / 348.6 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 87.78 kB / 463.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1128, allocations: 51.55 MB / 0.5034 GB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.00377/0.1166, allocations: 2.048 MB / 0.5054 GB, free: 7.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.1185, allocations: 0.9742 MB / 0.5063 GB, free: 6.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001732/0.1187, allocations: 4 kB / 0.5063 GB, free: 6.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003951/0.1191, allocations: 119.5 kB / 0.5064 GB, free: 6.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.1194, allocations: 107.5 kB / 0.5065 GB, free: 6.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.1197, allocations: 143.3 kB / 0.5067 GB, free: 6.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.12, allocations: 211.2 kB / 0.5069 GB, free: 5.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.1202, allocations: 53.64 kB / 0.5069 GB, free: 5.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.1203, allocations: 91.62 kB / 0.507 GB, free: 5.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.1205, allocations: 115.6 kB / 0.5071 GB, free: 5.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.1205, allocations: 12 kB / 0.5071 GB, free: 5.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.1206, allocations: 47.92 kB / 0.5072 GB, free: 5.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/0.1207, allocations: 43.84 kB / 0.5072 GB, free: 5.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.869e-05/0.1208, allocations: 83.47 kB / 0.5073 GB, free: 5.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.1211, allocations: 231.2 kB / 0.5075 GB, free: 5.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1211, allocations: 0 / 0.5075 GB, free: 5.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1211, allocations: 4 kB / 0.5075 GB, free: 5.277 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1211, allocations: 0 / 0.5075 GB, free: 5.277 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.0006679/0.1218, allocations: 0.5064 MB / 0.508 GB, free: 4.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.1218, allocations: 8.031 kB / 0.508 GB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.701e-05/0.1219, allocations: 24.66 kB / 0.508 GB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.1223, allocations: 243.9 kB / 0.5083 GB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1223, allocations: 12.55 kB / 0.5083 GB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.1223, allocations: 24.03 kB / 0.5083 GB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.1226, allocations: 141.4 kB / 0.5085 GB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1226, allocations: 4 kB / 0.5085 GB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.1226, allocations: 4 kB / 0.5085 GB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1226, allocations: 0 / 0.5085 GB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.1228, allocations: 74.25 kB / 0.5085 GB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008247/0.1237, allocations: 0.6264 MB / 0.5091 GB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.1239, allocations: 98.59 kB / 0.5092 GB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.732e-05/0.124, allocations: 36.84 kB / 0.5093 GB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.124, allocations: 4 kB / 0.5093 GB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.1242, allocations: 83.38 kB / 0.5094 GB, free: 3.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.1242, allocations: 0 / 0.5094 GB, free: 3.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003838/0.1246, allocations: 153.3 kB / 0.5095 GB, free: 3.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.1247, allocations: 51.41 kB / 0.5095 GB, free: 2.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.1249, allocations: 272 kB / 0.5098 GB, free: 2.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.1249, allocations: 25.7 kB / 0.5098 GB, free: 2.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.211e-05/0.125, allocations: 140.2 kB / 0.51 GB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.1251, allocations: 43.39 kB / 0.51 GB, free: 2.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.1251, allocations: 33.7 kB / 0.51 GB, free: 2.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1252, allocations: 330.8 kB / 0.5104 GB, free: 2.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.783e-05/0.1253, allocations: 31.98 kB / 0.5104 GB, free: 2.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.1254, allocations: 64.27 kB / 0.5104 GB, free: 2.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.1256, allocations: 104.2 kB / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1256, allocations: 0 / 0.5105 GB, free: 1.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002533/0.1259, allocations: 145.3 kB / 0.5107 GB, free: 1.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1259, allocations: 8 kB / 0.5107 GB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1259, allocations: 4.125 kB / 0.5107 GB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.1259, allocations: 4 kB / 0.5107 GB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.1261, allocations: 27.98 kB / 0.5107 GB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.1261, allocations: 4 kB / 0.5107 GB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.152e-05/0.1262, allocations: 19.77 kB / 0.5107 GB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.1262, allocations: 8 kB / 0.5108 GB, free: 1.676 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.0001205/0.1264, allocations: 145.6 kB / 0.5109 GB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.1264, allocations: 15.81 kB / 0.5109 GB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.584e-05/0.1265, allocations: 29.39 kB / 0.5109 GB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1265, allocations: 0 / 0.5109 GB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1265, allocations: 4 kB / 0.5109 GB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1265, allocations: 0 / 0.5109 GB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002108/0.1267, allocations: 245.5 kB / 0.5112 GB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1267, allocations: 3.984 kB / 0.5112 GB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.1268, allocations: 12 kB / 0.5112 GB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1268, allocations: 3.938 kB / 0.5112 GB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.1269, allocations: 8 kB / 0.5112 GB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1269, allocations: 0 / 0.5112 GB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1269, allocations: 3.984 kB / 0.5112 GB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.1272, allocations: 197 kB / 0.5114 GB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.1273, allocations: 96.88 kB / 0.5115 GB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.1273, allocations: 4 kB / 0.5115 GB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.971e-05/0.1274, allocations: 4 kB / 0.5115 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1274, allocations: 3.984 kB / 0.5115 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.1274, allocations: 4 kB / 0.5115 GB, free: 0.8047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001614/0.1276, allocations: 201.6 kB / 0.5117 GB, free: 0.6094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1276, allocations: 4.062 kB / 0.5117 GB, free: 0.6055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002576/0.1279, allocations: 43.89 kB / 0.5117 GB, free: 0.5625 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.0009044/0.1288, allocations: 414 kB / 0.5121 GB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002368/0.129, allocations: 87.84 kB / 0.5122 GB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1291, allocations: 0 / 0.5122 GB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.971e-05/0.1291, allocations: 31.98 kB / 0.5123 GB, free: 200 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.1295, allocations: 44.59 kB / 0.5123 GB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008339/0.1303, allocations: 489.4 kB / 0.5128 GB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.1306, allocations: 0.7474 MB / 0.5135 GB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.28e-05/0.1307, allocations: 21.36 kB / 0.5135 GB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/0.1307, allocations: 15.44 kB / 0.5135 GB, free: 14.84 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1307, allocations: 0 / 0.5135 GB, free: 14.84 MB / 366.1 MB Notification: Performance of Templates: time 0.005499/0.1362, allocations: 2.014 MB / 0.5155 GB, free: 12.84 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)