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.001676/0.001677, allocations: 101.3 kB / 16.4 MB, free: 6.453 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.394/1.394, allocations: 222.9 MB / 240.1 MB, free: 4.504 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.001249/0.00125, allocations: 192.4 kB / 290.4 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03465/0.03465, allocations: 8.801 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 75.89 kB / 464.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1155, allocations: 51.56 MB / 0.504 GB, free: 9.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003642/0.1192, allocations: 2.041 MB / 0.506 GB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.1209, allocations: 0.9664 MB / 0.507 GB, free: 6.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.121, allocations: 7.875 kB / 0.507 GB, free: 6.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004288/0.1215, allocations: 127.5 kB / 0.5071 GB, free: 6.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003711/0.1219, allocations: 111.5 kB / 0.5072 GB, free: 6.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.1224, allocations: 143.2 kB / 0.5073 GB, free: 6.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003835/0.1227, allocations: 219.2 kB / 0.5075 GB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.1229, allocations: 41.66 kB / 0.5076 GB, free: 5.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1231, allocations: 95.62 kB / 0.5077 GB, free: 5.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1234, allocations: 111.6 kB / 0.5078 GB, free: 5.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.742e-05/0.1234, allocations: 12 kB / 0.5078 GB, free: 5.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.1236, allocations: 51.97 kB / 0.5078 GB, free: 5.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.748e-05/0.1237, allocations: 43.78 kB / 0.5079 GB, free: 5.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1238, allocations: 83.48 kB / 0.508 GB, free: 5.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.1241, allocations: 231.2 kB / 0.5082 GB, free: 5.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1242, allocations: 0 / 0.5082 GB, free: 5.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1242, allocations: 4 kB / 0.5082 GB, free: 5.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.1242, allocations: 4 kB / 0.5082 GB, free: 5.336 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.0009039/0.1251, allocations: 0.4987 MB / 0.5087 GB, free: 4.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.1252, allocations: 8.031 kB / 0.5087 GB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.754e-05/0.1253, allocations: 28.66 kB / 0.5087 GB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005334/0.1258, allocations: 247.9 kB / 0.509 GB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.1258, allocations: 8.609 kB / 0.509 GB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.1259, allocations: 24.03 kB / 0.509 GB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003524/0.1263, allocations: 145.4 kB / 0.5091 GB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.1263, allocations: 3.938 kB / 0.5091 GB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.1263, allocations: 4 kB / 0.5091 GB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.1263, allocations: 4 kB / 0.5091 GB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.1265, allocations: 70.3 kB / 0.5092 GB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009857/0.1275, allocations: 0.6263 MB / 0.5098 GB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.1278, allocations: 94.62 kB / 0.5099 GB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.826e-05/0.1279, allocations: 32.89 kB / 0.5099 GB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.1279, allocations: 0 / 0.5099 GB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.1281, allocations: 87.31 kB / 0.51 GB, free: 3.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.1281, allocations: 0 / 0.51 GB, free: 3.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004425/0.1286, allocations: 157.3 kB / 0.5102 GB, free: 3.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.1286, allocations: 55.41 kB / 0.5102 GB, free: 3.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.1289, allocations: 268 kB / 0.5105 GB, free: 2.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/0.129, allocations: 33.7 kB / 0.5105 GB, free: 2.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.1291, allocations: 132.2 kB / 0.5106 GB, free: 2.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.1292, allocations: 39.47 kB / 0.5107 GB, free: 2.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.1292, allocations: 33.7 kB / 0.5107 GB, free: 2.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1294, allocations: 330.8 kB / 0.511 GB, free: 2.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.711e-05/0.1295, allocations: 31.98 kB / 0.5111 GB, free: 2.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.1296, allocations: 68.2 kB / 0.5111 GB, free: 2.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.1298, allocations: 100.2 kB / 0.5112 GB, free: 1.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1298, allocations: 4 kB / 0.5112 GB, free: 1.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002893/0.1301, allocations: 153.2 kB / 0.5114 GB, free: 1.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.1302, allocations: 4 kB / 0.5114 GB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1302, allocations: 8.125 kB / 0.5114 GB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.1302, allocations: 0 / 0.5114 GB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.1304, allocations: 27.98 kB / 0.5114 GB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1304, allocations: 0 / 0.5114 GB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.801e-05/0.1305, allocations: 15.84 kB / 0.5114 GB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.1305, allocations: 4 kB / 0.5114 GB, free: 1.746 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.0001541/0.1307, allocations: 157.6 kB / 0.5116 GB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.155e-05/0.1307, allocations: 15.81 kB / 0.5116 GB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.197e-05/0.1308, allocations: 25.39 kB / 0.5116 GB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1308, allocations: 4 kB / 0.5116 GB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.1308, allocations: 0 / 0.5116 GB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1308, allocations: 3.984 kB / 0.5116 GB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.1311, allocations: 249.4 kB / 0.5119 GB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1311, allocations: 0 / 0.5119 GB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.1312, allocations: 20 kB / 0.5119 GB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1312, allocations: 3.984 kB / 0.5119 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1312, allocations: 0 / 0.5119 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1312, allocations: 0 / 0.5119 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1312, allocations: 0 / 0.5119 GB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003671/0.1316, allocations: 205 kB / 0.5121 GB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.1317, allocations: 88.95 kB / 0.5122 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.1317, allocations: 7.938 kB / 0.5122 GB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.145e-05/0.1318, allocations: 4 kB / 0.5122 GB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.1318, allocations: 11.92 kB / 0.5122 GB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.1319, allocations: 4 kB / 0.5122 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.132, allocations: 205.6 kB / 0.5124 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.132, allocations: 64 / 0.5124 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.1324, allocations: 39.91 kB / 0.5124 GB, free: 0.6172 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.0009953/0.1334, allocations: 403.1 kB / 0.5128 GB, free: 384 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002751/0.1337, allocations: 83.91 kB / 0.5129 GB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1337, allocations: 0 / 0.5129 GB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.644e-05/0.1338, allocations: 43.91 kB / 0.5129 GB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.1341, allocations: 39.86 kB / 0.513 GB, free: 220 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009964/0.1351, allocations: 0.5186 MB / 0.5135 GB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.1355, allocations: 0.7396 MB / 0.5142 GB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.949e-05/0.1356, allocations: 19.42 kB / 0.5142 GB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1356, allocations: 3.938 kB / 0.5142 GB, free: 14.88 MB / 366.1 MB Notification: Performance of Templates: time 0.005735/0.1413, allocations: 2.591 MB / 0.5167 GB, free: 12.29 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)