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.001417/0.001417, allocations: 110.8 kB / 16.37 MB, free: 6.004 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.444/1.444, allocations: 222.9 MB / 240 MB, free: 4.57 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.001355/0.001355, allocations: 192.5 kB / 290.3 MB, free: 2.301 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03448/0.03448, allocations: 8.788 MB / 349.3 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 85.95 kB / 412.5 MB, free: 41.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.1006, allocations: 51.56 MB / 464.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003914/0.1046, allocations: 2.036 MB / 466.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.1063, allocations: 0.9664 MB / 467.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.1065, allocations: 4 kB / 467.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.1069, allocations: 123.5 kB / 467.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000332/0.1073, allocations: 111.5 kB / 467.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.1077, allocations: 143.5 kB / 467.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00032/0.108, allocations: 203.3 kB / 467.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.1082, allocations: 53.64 kB / 467.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.1084, allocations: 95.61 kB / 467.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.1086, allocations: 115.5 kB / 467.9 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.139e-05/0.1086, allocations: 12 kB / 467.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.1088, allocations: 43.98 kB / 468 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.254e-05/0.1089, allocations: 51.83 kB / 468 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.109, allocations: 83.48 kB / 468.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003944/0.1094, allocations: 227.3 kB / 468.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.1094, allocations: 8 kB / 468.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.488e-06/0.1094, allocations: 0 / 468.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1095, allocations: 3.938 kB / 468.3 MB, free: 9.305 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.0009291/0.1104, allocations: 0.4987 MB / 468.8 MB, free: 8.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.1104, allocations: 8.031 kB / 468.9 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.144e-05/0.1105, allocations: 24.66 kB / 468.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.111, allocations: 251.7 kB / 469.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.111, allocations: 16.61 kB / 469.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.1111, allocations: 16.12 kB / 469.2 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.1114, allocations: 141.4 kB / 469.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1114, allocations: 0 / 469.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.1114, allocations: 8 kB / 469.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1114, allocations: 0 / 469.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.1116, allocations: 80.58 kB / 469.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008857/0.1125, allocations: 0.6225 MB / 470 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/0.1128, allocations: 90.58 kB / 470.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.395e-05/0.1129, allocations: 32.89 kB / 470.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.1129, allocations: 4 kB / 470.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001921/0.1131, allocations: 87.36 kB / 470.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.1131, allocations: 3.938 kB / 470.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004106/0.1135, allocations: 149.3 kB / 470.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.1136, allocations: 55.34 kB / 470.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.1138, allocations: 272.1 kB / 470.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.1139, allocations: 29.7 kB / 470.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.573e-05/0.114, allocations: 144.1 kB / 470.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.114, allocations: 31.55 kB / 470.9 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.1141, allocations: 37.7 kB / 470.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1142, allocations: 334.8 kB / 471.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.841e-05/0.1143, allocations: 27.98 kB / 471.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.405e-05/0.1144, allocations: 62.25 kB / 471.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.1146, allocations: 108.2 kB / 471.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1146, allocations: 0 / 471.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002614/0.1149, allocations: 149.3 kB / 471.6 MB, free: 5.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1149, allocations: 12.12 kB / 471.6 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.1149, allocations: 0 / 471.6 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1149, allocations: 0 / 471.6 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.1151, allocations: 31.92 kB / 471.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1151, allocations: 4 kB / 471.6 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.81e-05/0.1152, allocations: 15.84 kB / 471.6 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.1152, allocations: 4 kB / 471.6 MB, free: 5.715 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.0001341/0.1154, allocations: 155.9 kB / 471.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.1154, allocations: 15.81 kB / 471.8 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.1155, allocations: 25.39 kB / 471.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1155, allocations: 0 / 471.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1155, allocations: 0 / 471.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1155, allocations: 4 kB / 471.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.1157, allocations: 245.4 kB / 472.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.1157, allocations: 4 kB / 472.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1158, allocations: 23.92 kB / 472.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1158, allocations: 0 / 472.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.1159, allocations: 4 kB / 472.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1159, allocations: 3.938 kB / 472.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1159, allocations: 0 / 472.1 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003705/0.1163, allocations: 197.1 kB / 472.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.185e-05/0.1163, allocations: 92.92 kB / 472.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.1164, allocations: 0 / 472.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.032e-05/0.1164, allocations: 0 / 472.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/0.1165, allocations: 7.984 kB / 472.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.1165, allocations: 8 kB / 472.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001815/0.1167, allocations: 209.6 kB / 472.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1167, allocations: 0 / 472.6 MB, free: 4.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.117, allocations: 39.91 kB / 472.7 MB, free: 4.609 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.0009933/0.118, allocations: 410.1 kB / 473.1 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.1182, allocations: 91.77 kB / 473.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1182, allocations: 7.938 kB / 473.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.146e-05/0.1183, allocations: 40.17 kB / 473.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.1186, allocations: 37.3 kB / 473.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008342/0.1195, allocations: 0.4893 MB / 473.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.1198, allocations: 0.7358 MB / 474.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.071e-05/0.1199, allocations: 21.41 kB / 474.5 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.155e-05/0.1199, allocations: 19.44 kB / 474.5 MB, free: 2.879 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1199, allocations: 0 / 474.5 MB, free: 2.879 MB / 302.1 MB Notification: Performance of Templates: time 0.005194/0.1251, allocations: 1.999 MB / 476.5 MB, free: 0.8984 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)