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.001553/0.001553, allocations: 109.9 kB / 16.41 MB, free: 6.496 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.423/1.423, allocations: 222.9 MB / 240.1 MB, free: 4.59 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.001448/0.001448, allocations: 188.5 kB / 290.4 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03431/0.03431, allocations: 8.791 MB / 349.3 MB, free: 4.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 75.88 kB / 464.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09555, allocations: 51.58 MB / 0.504 GB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003521/0.09911, allocations: 2.036 MB / 0.506 GB, free: 7.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.1008, allocations: 0.9703 MB / 0.507 GB, free: 6.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.101, allocations: 4 kB / 0.507 GB, free: 6.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004022/0.1014, allocations: 119.5 kB / 0.5071 GB, free: 6.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.1018, allocations: 107.5 kB / 0.5072 GB, free: 6.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004275/0.1023, allocations: 147.2 kB / 0.5073 GB, free: 6.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.1026, allocations: 207.3 kB / 0.5075 GB, free: 5.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.1028, allocations: 53.64 kB / 0.5076 GB, free: 5.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.103, allocations: 95.61 kB / 0.5077 GB, free: 5.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.1032, allocations: 111.6 kB / 0.5078 GB, free: 5.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.1032, allocations: 12 kB / 0.5078 GB, free: 5.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.1033, allocations: 43.98 kB / 0.5078 GB, free: 5.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.107e-05/0.1034, allocations: 55.77 kB / 0.5079 GB, free: 5.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1035, allocations: 87.47 kB / 0.508 GB, free: 5.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003265/0.1039, allocations: 223.2 kB / 0.5082 GB, free: 5.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1039, allocations: 0 / 0.5082 GB, free: 5.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1039, allocations: 4 kB / 0.5082 GB, free: 5.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1039, allocations: 0 / 0.5082 GB, free: 5.305 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.0007166/0.1046, allocations: 0.5064 MB / 0.5087 GB, free: 4.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1047, allocations: 8.031 kB / 0.5087 GB, free: 4.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.1048, allocations: 28.66 kB / 0.5087 GB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.1051, allocations: 251.8 kB / 0.509 GB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.1052, allocations: 8.609 kB / 0.509 GB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.1052, allocations: 20.03 kB / 0.509 GB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.1055, allocations: 141.4 kB / 0.5091 GB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.1055, allocations: 4 kB / 0.5091 GB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.1055, allocations: 0 / 0.5091 GB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1055, allocations: 7.984 kB / 0.5091 GB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.1057, allocations: 70.25 kB / 0.5092 GB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008476/0.1066, allocations: 0.6225 MB / 0.5098 GB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.1068, allocations: 94.61 kB / 0.5099 GB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.857e-05/0.1069, allocations: 36.84 kB / 0.5099 GB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.328e-05/0.1069, allocations: 4 kB / 0.5099 GB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001679/0.1071, allocations: 83.38 kB / 0.51 GB, free: 3.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 3.196e-06/0.1071, allocations: 0 / 0.51 GB, free: 3.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003933/0.1075, allocations: 145.4 kB / 0.5102 GB, free: 3.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.1076, allocations: 55.34 kB / 0.5102 GB, free: 3.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/0.1078, allocations: 276 kB / 0.5105 GB, free: 2.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.1079, allocations: 26.08 kB / 0.5105 GB, free: 2.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.333e-05/0.108, allocations: 140.2 kB / 0.5106 GB, free: 2.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.464e-05/0.108, allocations: 43.44 kB / 0.5107 GB, free: 2.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.1081, allocations: 29.72 kB / 0.5107 GB, free: 2.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1082, allocations: 338.7 kB / 0.511 GB, free: 2.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.321e-05/0.1083, allocations: 31.98 kB / 0.5111 GB, free: 2.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.942e-05/0.1084, allocations: 64.28 kB / 0.5111 GB, free: 2.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.1086, allocations: 104.2 kB / 0.5112 GB, free: 1.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1086, allocations: 0 / 0.5112 GB, free: 1.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002683/0.1088, allocations: 149.3 kB / 0.5114 GB, free: 1.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1089, allocations: 4 kB / 0.5114 GB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1089, allocations: 8.109 kB / 0.5114 GB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1089, allocations: 4 kB / 0.5114 GB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1091, allocations: 27.92 kB / 0.5114 GB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1091, allocations: 4 kB / 0.5114 GB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.331e-05/0.1092, allocations: 11.84 kB / 0.5114 GB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.1092, allocations: 11.98 kB / 0.5114 GB, free: 1.703 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.0001221/0.1093, allocations: 141.7 kB / 0.5116 GB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.1094, allocations: 19.8 kB / 0.5116 GB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.323e-05/0.1094, allocations: 25.41 kB / 0.5116 GB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1094, allocations: 4 kB / 0.5116 GB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1094, allocations: 0 / 0.5116 GB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1094, allocations: 3.984 kB / 0.5116 GB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.1097, allocations: 241.5 kB / 0.5118 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1097, allocations: 0 / 0.5118 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.1098, allocations: 23.92 kB / 0.5119 GB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.1098, allocations: 4 kB / 0.5119 GB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.1098, allocations: 4 kB / 0.5119 GB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1098, allocations: 0 / 0.5119 GB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1098, allocations: 0 / 0.5119 GB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003393/0.1102, allocations: 196.7 kB / 0.5121 GB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.619e-05/0.1102, allocations: 92.89 kB / 0.5121 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.739e-05/0.1103, allocations: 4 kB / 0.5122 GB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.461e-05/0.1103, allocations: 7.984 kB / 0.5122 GB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.1104, allocations: 4 kB / 0.5122 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.1104, allocations: 3.984 kB / 0.5122 GB, free: 0.8359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001703/0.1106, allocations: 205.6 kB / 0.5124 GB, free: 0.6367 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1106, allocations: 4.062 kB / 0.5124 GB, free: 0.6328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.1108, allocations: 39.98 kB / 0.5124 GB, free: 0.5938 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.0009394/0.1118, allocations: 411 kB / 0.5128 GB, free: 352 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002493/0.1121, allocations: 87.84 kB / 0.5129 GB, free: 264 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1121, allocations: 0 / 0.5129 GB, free: 264 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.663e-05/0.1122, allocations: 43.86 kB / 0.5129 GB, free: 220 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.1125, allocations: 58.2 kB / 0.513 GB, free: 172 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008878/0.1134, allocations: 0.5107 MB / 0.5135 GB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.1137, allocations: 0.7473 MB / 0.5142 GB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.1138, allocations: 19.38 kB / 0.5142 GB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1138, allocations: 0 / 0.5142 GB, free: 14.83 MB / 366.1 MB Notification: Performance of Templates: time 0.004931/0.1187, allocations: 2.584 MB / 0.5167 GB, free: 12.25 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)