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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05945/0.05945, allocations: 8.795 MB / 25.53 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 251.3 MB, free: 7.414 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009346/0.0009346, allocations: 111.8 kB / 303.6 MB, free: 14.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.91 kB / 366 MB, free: 184 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1846, allocations: 51.54 MB / 417.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003001/0.1876, allocations: 2.09 MB / 419.6 MB, free: 18.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.189, allocations: 0.9527 MB / 420.6 MB, free: 17.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1891, allocations: 4 kB / 420.6 MB, free: 17.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003524/0.1895, allocations: 119.6 kB / 420.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.1897, allocations: 99.61 kB / 420.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.19, allocations: 121.1 kB / 420.9 MB, free: 17.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000197/0.1902, allocations: 219.2 kB / 421.1 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.1903, allocations: 37.66 kB / 421.2 MB, free: 17.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.005e-05/0.1904, allocations: 83.69 kB / 421.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.1906, allocations: 107.6 kB / 421.3 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.1906, allocations: 8 kB / 421.4 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.983e-05/0.1907, allocations: 47.91 kB / 421.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.865e-05/0.1908, allocations: 43.83 kB / 421.4 MB, free: 17 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.639e-05/0.1908, allocations: 87.48 kB / 421.5 MB, free: 16.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.1911, allocations: 221.4 kB / 421.7 MB, free: 16.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1911, allocations: 0 / 421.7 MB, free: 16.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1911, allocations: 3.938 kB / 421.7 MB, free: 16.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.1911, allocations: 0 / 421.7 MB, free: 16.69 MB / 298.7 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.0005995/0.1917, allocations: 0.4986 MB / 422.2 MB, free: 16.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1917, allocations: 12.03 kB / 422.3 MB, free: 16.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.1918, allocations: 20.66 kB / 422.3 MB, free: 16.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.192, allocations: 244.1 kB / 422.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1921, allocations: 12.59 kB / 422.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.1921, allocations: 20.12 kB / 422.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.1923, allocations: 143 kB / 422.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1923, allocations: 0 / 422.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.1924, allocations: 4 kB / 422.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1924, allocations: 4 kB / 422.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.1925, allocations: 72.64 kB / 422.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006387/0.1932, allocations: 0.6303 MB / 423.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001961/0.1934, allocations: 94.67 kB / 423.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.704e-05/0.1934, allocations: 36.78 kB / 423.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.1935, allocations: 0 / 423.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.1937, allocations: 83.38 kB / 423.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.1937, allocations: 0 / 423.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003047/0.194, allocations: 149.4 kB / 423.8 MB, free: 14.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.194, allocations: 55.41 kB / 423.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.1942, allocations: 279.9 kB / 424.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.1942, allocations: 25.7 kB / 424.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.1943, allocations: 140.1 kB / 424.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.753e-05/0.1943, allocations: 35.55 kB / 424.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.1944, allocations: 25.72 kB / 424.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.1944, allocations: 339.1 kB / 424.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.823e-05/0.1945, allocations: 31.92 kB / 424.7 MB, free: 13.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.412e-05/0.1946, allocations: 72.92 kB / 424.7 MB, free: 13.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.1947, allocations: 96.22 kB / 424.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1947, allocations: 7.938 kB / 424.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002148/0.195, allocations: 145.3 kB / 425 MB, free: 13.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.195, allocations: 8 kB / 425 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.195, allocations: 0 / 425 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.195, allocations: 0 / 425 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.1952, allocations: 27.98 kB / 425 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.1952, allocations: 4 kB / 425 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.59e-05/0.1952, allocations: 15.84 kB / 425 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.1953, allocations: 12.11 kB / 425 MB, free: 13.11 MB / 298.7 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 8.717e-05/0.1954, allocations: 155.9 kB / 425.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.1954, allocations: 15.81 kB / 425.2 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.1954, allocations: 25.39 kB / 425.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1954, allocations: 0 / 425.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1954, allocations: 0 / 425.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1955, allocations: 0 / 425.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.1956, allocations: 245.5 kB / 425.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1956, allocations: 0 / 425.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.67e-05/0.1957, allocations: 23.98 kB / 425.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1957, allocations: 0 / 425.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1957, allocations: 0 / 425.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1957, allocations: 8 kB / 425.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1958, allocations: 3.938 kB / 425.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.1973, allocations: 1.507 MB / 427 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.799e-05/0.1974, allocations: 92.89 kB / 427.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1974, allocations: 4 kB / 427.1 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.423e-05/0.1975, allocations: 7.984 kB / 427.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.468e-05/0.1975, allocations: 7.938 kB / 427.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1975, allocations: 8.125 kB / 427.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.1976, allocations: 205.6 kB / 427.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1976, allocations: 4 kB / 427.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003002/0.1979, allocations: 52 kB / 427.4 MB, free: 10.53 MB / 298.7 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.0007441/0.1987, allocations: 411.5 kB / 427.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001815/0.1989, allocations: 87.83 kB / 427.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1989, allocations: 4.25 kB / 427.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.265e-05/0.199, allocations: 39.92 kB / 427.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.1993, allocations: 39.08 kB / 428 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007615/0.2, allocations: 0.685 MB / 428.6 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.2002, allocations: 0.7361 MB / 429.4 MB, free: 8.633 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.223e-05/0.2003, allocations: 25.36 kB / 429.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.2003, allocations: 23.42 kB / 429.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of SimCode: time 1.91e-07/0.2003, allocations: 0 / 429.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of Templates: time 0.004043/0.2044, allocations: 2.137 MB / 431.6 MB, free: 6.461 MB / 298.7 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)