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.004349/0.004349, allocations: 94.8 kB / 15.73 MB, free: 6.047 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.272/1.272, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001235/0.001235, allocations: 188.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03253/0.03253, allocations: 8.796 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 79.88 kB / 463.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.0842, allocations: 51.57 MB / 0.5034 GB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003227/0.08747, allocations: 2.044 MB / 0.5054 GB, free: 7.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.08908, allocations: 0.9703 MB / 0.5063 GB, free: 6.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.08926, allocations: 7.938 kB / 0.5063 GB, free: 6.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003915/0.08966, allocations: 123.5 kB / 0.5064 GB, free: 6.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.09003, allocations: 111.5 kB / 0.5065 GB, free: 6.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.09045, allocations: 135.6 kB / 0.5067 GB, free: 6.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003466/0.09081, allocations: 211.2 kB / 0.5069 GB, free: 5.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.09098, allocations: 53.59 kB / 0.5069 GB, free: 5.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.09117, allocations: 95.61 kB / 0.507 GB, free: 5.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.09136, allocations: 107.7 kB / 0.5071 GB, free: 5.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.0914, allocations: 12 kB / 0.5071 GB, free: 5.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.09155, allocations: 47.97 kB / 0.5072 GB, free: 5.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.764e-05/0.09164, allocations: 47.78 kB / 0.5072 GB, free: 5.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.959e-05/0.09175, allocations: 87.48 kB / 0.5073 GB, free: 5.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003596/0.09211, allocations: 231 kB / 0.5075 GB, free: 5.254 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.09213, allocations: 0 / 0.5075 GB, free: 5.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.09215, allocations: 4 kB / 0.5075 GB, free: 5.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.09216, allocations: 0 / 0.5075 GB, free: 5.25 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.0006802/0.09285, allocations: 0.5101 MB / 0.508 GB, free: 4.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.09289, allocations: 8.031 kB / 0.508 GB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.09301, allocations: 24.8 kB / 0.5081 GB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.09333, allocations: 248 kB / 0.5083 GB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.09336, allocations: 16.59 kB / 0.5083 GB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.521e-05/0.0934, allocations: 20.12 kB / 0.5083 GB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.09366, allocations: 141.3 kB / 0.5085 GB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.09368, allocations: 0 / 0.5085 GB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.09371, allocations: 8 kB / 0.5085 GB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.09372, allocations: 0 / 0.5085 GB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.09388, allocations: 70.3 kB / 0.5085 GB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007388/0.09462, allocations: 0.6265 MB / 0.5092 GB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.09485, allocations: 94.66 kB / 0.5092 GB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.521e-05/0.09493, allocations: 36.84 kB / 0.5093 GB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.09496, allocations: 7.938 kB / 0.5093 GB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.09513, allocations: 87.31 kB / 0.5094 GB, free: 3.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.09515, allocations: 0 / 0.5094 GB, free: 3.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000348/0.0955, allocations: 149.5 kB / 0.5095 GB, free: 3.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.09554, allocations: 51.41 kB / 0.5096 GB, free: 2.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.09578, allocations: 276 kB / 0.5098 GB, free: 2.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.0958, allocations: 25.7 kB / 0.5098 GB, free: 2.648 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.268e-05/0.0959, allocations: 148.2 kB / 0.51 GB, free: 2.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.09593, allocations: 31.73 kB / 0.51 GB, free: 2.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.09599, allocations: 33.72 kB / 0.51 GB, free: 2.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.09611, allocations: 334.8 kB / 0.5104 GB, free: 2.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.836e-05/0.09621, allocations: 31.98 kB / 0.5104 GB, free: 2.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.034e-05/0.09631, allocations: 64.22 kB / 0.5105 GB, free: 1.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.09648, allocations: 104.2 kB / 0.5106 GB, free: 1.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.09649, allocations: 0 / 0.5106 GB, free: 1.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002584/0.09676, allocations: 153.3 kB / 0.5107 GB, free: 1.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.09678, allocations: 8 kB / 0.5107 GB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.09679, allocations: 128 / 0.5107 GB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.09682, allocations: 8 kB / 0.5107 GB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.09696, allocations: 23.98 kB / 0.5107 GB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.09697, allocations: 4 kB / 0.5107 GB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.102e-05/0.09705, allocations: 7.953 kB / 0.5108 GB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.09707, allocations: 8 kB / 0.5108 GB, free: 1.648 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.0001227/0.09719, allocations: 153.5 kB / 0.5109 GB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.09722, allocations: 15.91 kB / 0.5109 GB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.223e-05/0.09728, allocations: 29.39 kB / 0.511 GB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.09729, allocations: 8 kB / 0.511 GB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.0973, allocations: 0 / 0.511 GB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.09731, allocations: 0 / 0.511 GB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.09752, allocations: 245.9 kB / 0.5112 GB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.09753, allocations: 0 / 0.5112 GB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.09764, allocations: 15.98 kB / 0.5112 GB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.09765, allocations: 0 / 0.5112 GB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.09767, allocations: 11.94 kB / 0.5112 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.09768, allocations: 0 / 0.5112 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.09768, allocations: 0 / 0.5112 GB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003348/0.09802, allocations: 196.8 kB / 0.5114 GB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.09808, allocations: 92.98 kB / 0.5115 GB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.09811, allocations: 4 kB / 0.5115 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.797e-05/0.09817, allocations: 7.984 kB / 0.5115 GB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.09821, allocations: 3.938 kB / 0.5115 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.09823, allocations: 4 kB / 0.5115 GB, free: 0.7695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001664/0.0984, allocations: 205.6 kB / 0.5117 GB, free: 0.5703 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09841, allocations: 0 / 0.5117 GB, free: 0.5703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.09866, allocations: 47.95 kB / 0.5118 GB, free: 0.5234 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.0008616/0.09953, allocations: 408.1 kB / 0.5121 GB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002201/0.09976, allocations: 87.89 kB / 0.5122 GB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.09977, allocations: 0 / 0.5122 GB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.102e-05/0.09985, allocations: 35.92 kB / 0.5123 GB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/0.1001, allocations: 48.81 kB / 0.5123 GB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007722/0.1009, allocations: 0.4887 MB / 0.5128 GB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.1012, allocations: 0.7434 MB / 0.5135 GB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.969e-05/0.1013, allocations: 25.34 kB / 0.5135 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.1013, allocations: 19.42 kB / 0.5136 GB, free: 14.78 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1014, allocations: 0 / 0.5136 GB, free: 14.78 MB / 366.1 MB Notification: Performance of Templates: time 0.004646/0.106, allocations: 2.011 MB / 0.5155 GB, free: 12.79 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)