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.001114/0.001115, allocations: 102.8 kB / 16.35 MB, free: 5.828 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.353/1.353, allocations: 222.9 MB / 240 MB, free: 4.484 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.001329/0.001329, allocations: 192.4 kB / 290.3 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03483/0.03483, allocations: 8.808 MB / 349.3 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 86.39 kB / 412.5 MB, free: 41.62 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09736, allocations: 51.56 MB / 464.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003955/0.1014, allocations: 2.04 MB / 466.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.103, allocations: 0.9625 MB / 467.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1032, allocations: 7.938 kB / 467.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.1037, allocations: 119.5 kB / 467.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003689/0.104, allocations: 115.5 kB / 467.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.1045, allocations: 134.1 kB / 467.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.1048, allocations: 211.2 kB / 467.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.105, allocations: 49.66 kB / 467.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.1052, allocations: 95.61 kB / 467.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001902/0.1054, allocations: 115.6 kB / 467.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.475e-05/0.1054, allocations: 12 kB / 467.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.1055, allocations: 47.97 kB / 468 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.409e-05/0.1056, allocations: 47.84 kB / 468 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.1058, allocations: 87.42 kB / 468.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003689/0.1061, allocations: 235.2 kB / 468.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1062, allocations: 0 / 468.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1062, allocations: 0 / 468.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.1062, allocations: 0 / 468.3 MB, free: 9.223 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.0007628/0.1069, allocations: 0.5064 MB / 468.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.107, allocations: 8.031 kB / 468.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.1071, allocations: 24.66 kB / 468.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.1074, allocations: 247.8 kB / 469.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.1075, allocations: 12.61 kB / 469.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.1075, allocations: 16.12 kB / 469.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.1078, allocations: 141.4 kB / 469.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1078, allocations: 3.984 kB / 469.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.1079, allocations: 11.94 kB / 469.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.86e-06/0.1079, allocations: 0 / 469.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.108, allocations: 76.59 kB / 469.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008633/0.1089, allocations: 0.6225 MB / 470 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.1091, allocations: 94.61 kB / 470.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.181e-05/0.1092, allocations: 36.84 kB / 470.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.1093, allocations: 4 kB / 470.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.1094, allocations: 83.38 kB / 470.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.1095, allocations: 0 / 470.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003757/0.1098, allocations: 149.3 kB / 470.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.1099, allocations: 55.39 kB / 470.4 MB, free: 6.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.1101, allocations: 272 kB / 470.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.1102, allocations: 25.7 kB / 470.7 MB, free: 6.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.516e-05/0.1103, allocations: 148.5 kB / 470.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.1103, allocations: 31.55 kB / 470.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.1104, allocations: 33.7 kB / 470.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1105, allocations: 330.8 kB / 471.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.187e-05/0.1106, allocations: 35.92 kB / 471.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.237e-05/0.1107, allocations: 66.09 kB / 471.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.1109, allocations: 104.2 kB / 471.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1109, allocations: 0 / 471.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002553/0.1111, allocations: 145.4 kB / 471.6 MB, free: 5.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.1112, allocations: 13.91 kB / 471.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1112, allocations: 0 / 471.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1112, allocations: 0 / 471.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1113, allocations: 27.98 kB / 471.6 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1114, allocations: 7.938 kB / 471.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.1114, allocations: 19.83 kB / 471.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.1115, allocations: 4 kB / 471.6 MB, free: 5.629 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.0001201/0.1116, allocations: 150.3 kB / 471.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.1116, allocations: 19.81 kB / 471.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.942e-05/0.1117, allocations: 17.41 kB / 471.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1117, allocations: 0 / 471.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.1117, allocations: 7.984 kB / 471.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1117, allocations: 4 kB / 471.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.1119, allocations: 245.4 kB / 472.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1119, allocations: 0 / 472.1 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.112, allocations: 27.92 kB / 472.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1121, allocations: 0 / 472.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.1121, allocations: 4 kB / 472.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1121, allocations: 0 / 472.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1121, allocations: 4 kB / 472.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003535/0.1124, allocations: 184.8 kB / 472.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.051e-05/0.1125, allocations: 92.95 kB / 472.4 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.1126, allocations: 7.984 kB / 472.4 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.061e-05/0.1126, allocations: 3.938 kB / 472.4 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.1127, allocations: 7.984 kB / 472.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.1127, allocations: 8 kB / 472.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001639/0.1129, allocations: 201.7 kB / 472.6 MB, free: 4.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1129, allocations: 0 / 472.6 MB, free: 4.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000259/0.1131, allocations: 47.89 kB / 472.7 MB, free: 4.523 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.0009525/0.1141, allocations: 408.5 kB / 473.1 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002479/0.1143, allocations: 83.84 kB / 473.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1144, allocations: 0 / 473.1 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.986e-05/0.1145, allocations: 48.17 kB / 473.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.1148, allocations: 37.28 kB / 473.2 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008391/0.1156, allocations: 497 kB / 473.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.1159, allocations: 0.7397 MB / 474.4 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.605e-05/0.116, allocations: 21.41 kB / 474.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.1161, allocations: 19.44 kB / 474.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1161, allocations: 7.875 kB / 474.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of Templates: time 0.005185/0.1213, allocations: 1.991 MB / 476.5 MB, free: 0.8203 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)