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.001755/0.001755, allocations: 108 kB / 15.61 MB, free: 152 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.444/1.444, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001181/0.001181, allocations: 192.5 kB / 289.5 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05555/0.05555, allocations: 8.778 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 81.28 kB / 411.1 MB, free: 42.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09762/0.09911, allocations: 51.57 MB / 462.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.00332/0.1025, allocations: 2.038 MB / 464.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.104, allocations: 0.9664 MB / 465.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.1042, allocations: 4 kB / 465.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000449/0.1046, allocations: 123.5 kB / 465.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.105, allocations: 115.4 kB / 465.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.1054, allocations: 133.8 kB / 466 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.1057, allocations: 215.2 kB / 466.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1058, allocations: 45.66 kB / 466.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.106, allocations: 95.56 kB / 466.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.1062, allocations: 111.6 kB / 466.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.1062, allocations: 16 kB / 466.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1063, allocations: 55.97 kB / 466.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.463e-05/0.1064, allocations: 47.78 kB / 466.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.529e-05/0.1065, allocations: 79.48 kB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00031/0.1068, allocations: 223.5 kB / 466.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.1068, allocations: 7.938 kB / 466.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1068, allocations: 0 / 466.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.1069, allocations: 0 / 466.9 MB, free: 10.11 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.0007224/0.1076, allocations: 0.4987 MB / 467.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1076, allocations: 16.03 kB / 467.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.047e-05/0.1077, allocations: 20.66 kB / 467.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.108, allocations: 255.8 kB / 467.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.108, allocations: 4.609 kB / 467.7 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.1081, allocations: 16.12 kB / 467.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.1083, allocations: 133.5 kB / 467.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.1084, allocations: 8 kB / 467.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.1084, allocations: 0 / 467.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1084, allocations: 8 kB / 467.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000168/0.1086, allocations: 72.59 kB / 467.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007791/0.1094, allocations: 0.6225 MB / 468.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.1096, allocations: 106.6 kB / 468.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.05e-05/0.1097, allocations: 36.84 kB / 468.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.1097, allocations: 0 / 468.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.11, allocations: 87.31 kB / 468.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 2.896e-06/0.11, allocations: 4 kB / 468.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003717/0.1103, allocations: 145.3 kB / 468.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.1104, allocations: 59.34 kB / 469 MB, free: 7.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.1106, allocations: 272.1 kB / 469.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.1107, allocations: 26.08 kB / 469.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.1108, allocations: 144.1 kB / 469.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.1108, allocations: 31.55 kB / 469.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.67e-05/0.1108, allocations: 25.72 kB / 469.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.111, allocations: 346.7 kB / 469.8 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.682e-05/0.111, allocations: 31.98 kB / 469.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.738e-05/0.1111, allocations: 60.28 kB / 469.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.1113, allocations: 104.2 kB / 470 MB, free: 6.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1113, allocations: 0 / 470 MB, free: 6.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002509/0.1116, allocations: 149.3 kB / 470.1 MB, free: 6.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1116, allocations: 4 kB / 470.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1116, allocations: 4 kB / 470.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.1116, allocations: 0 / 470.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.1118, allocations: 32.05 kB / 470.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1118, allocations: 4 kB / 470.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.153e-05/0.1119, allocations: 11.84 kB / 470.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.1119, allocations: 12 kB / 470.2 MB, free: 6.527 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.0001227/0.112, allocations: 148.6 kB / 470.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.1121, allocations: 15.81 kB / 470.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.598e-05/0.1121, allocations: 25.39 kB / 470.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1121, allocations: 0 / 470.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1121, allocations: 0 / 470.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1122, allocations: 0 / 470.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.1124, allocations: 261.3 kB / 470.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1124, allocations: 0 / 470.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.1125, allocations: 19.98 kB / 470.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1125, allocations: 0 / 470.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.1125, allocations: 4 kB / 470.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.1126, allocations: 4 kB / 470.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1126, allocations: 0 / 470.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.1129, allocations: 188.8 kB / 470.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.113, allocations: 92.95 kB / 470.9 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.113, allocations: 8 kB / 470.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.127e-05/0.1131, allocations: 3.984 kB / 470.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.1132, allocations: 4 kB / 470.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.1132, allocations: 4 kB / 470.9 MB, free: 5.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001808/0.1134, allocations: 205.6 kB / 471.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1134, allocations: 0 / 471.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002594/0.1136, allocations: 36 kB / 471.2 MB, free: 5.438 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.001007/0.1147, allocations: 421.2 kB / 471.6 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002587/0.1149, allocations: 87.89 kB / 471.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1149, allocations: 4 kB / 471.7 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.756e-05/0.115, allocations: 43.86 kB / 471.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.1154, allocations: 50.47 kB / 471.8 MB, free: 5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009323/0.1163, allocations: 0.4934 MB / 472.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.1167, allocations: 0.7358 MB / 473 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.385e-05/0.1167, allocations: 17.42 kB / 473 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.048e-05/0.1168, allocations: 23.42 kB / 473 MB, free: 3.684 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1168, allocations: 0 / 473 MB, free: 3.684 MB / 302.1 MB Notification: Performance of Templates: time 0.00543/0.1222, allocations: 1.986 MB / 475 MB, free: 1.715 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)