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.004646/0.004646, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03618/0.03618, allocations: 8.801 MB / 24.65 MB, free: 4.121 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.197/1.197, allocations: 223.2 MB / 250.7 MB, free: 6.453 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.0008496/0.0008496, allocations: 102.1 kB / 304 MB, free: 4.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003556, allocations: 12 kB / 367.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2143, allocations: 52.55 MB / 419.6 MB, free: 48.02 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08681/0.3011, allocations: 82.2 MB / 0.49 GB, free: 6.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.3014, allocations: 79.56 kB / 0.4901 GB, free: 6.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01296/0.3143, allocations: 5.108 MB / 0.4951 GB, free: 1.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3144, allocations: 0 / 0.4951 GB, free: 1.746 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3144, allocations: 8 kB / 0.4951 GB, free: 1.738 MB / 362.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.0005722/0.315, allocations: 0.4946 MB / 0.4956 GB, free: 1.191 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.315, allocations: 8.562 kB / 0.4956 GB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.138e-05/0.3151, allocations: 23.72 kB / 0.4956 GB, free: 1.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003162/0.3154, allocations: 246.8 kB / 0.4959 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.3154, allocations: 8.234 kB / 0.4959 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.3155, allocations: 12 kB / 0.4959 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.3157, allocations: 149.4 kB / 0.496 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3157, allocations: 7.906 kB / 0.496 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3158, allocations: 4 kB / 0.496 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.3158, allocations: 4 kB / 0.496 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.3159, allocations: 72.59 kB / 0.4961 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.3167, allocations: 0.6304 MB / 0.4967 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.3169, allocations: 94.58 kB / 0.4968 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.317, allocations: 0 / 0.4968 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/0.3171, allocations: 87.41 kB / 0.4969 GB, free: 15.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3172, allocations: 0 / 0.4969 GB, free: 15.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003409/0.3175, allocations: 157.8 kB / 0.497 GB, free: 15.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.3175, allocations: 51.41 kB / 0.4971 GB, free: 15.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.3178, allocations: 247.2 kB / 0.4973 GB, free: 15.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3178, allocations: 29.7 kB / 0.4974 GB, free: 15.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.144e-05/0.3179, allocations: 144 kB / 0.4975 GB, free: 15.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.3179, allocations: 35.55 kB / 0.4975 GB, free: 15.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-06/0.318, allocations: 8 kB / 0.4975 GB, free: 15.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3181, allocations: 330.8 kB / 0.4979 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.507e-05/0.3181, allocations: 31.92 kB / 0.4979 GB, free: 14.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.951e-05/0.3182, allocations: 68.27 kB / 0.498 GB, free: 14.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.558e-05/0.3183, allocations: 39.94 kB / 0.498 GB, free: 14.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3183, allocations: 0 / 0.498 GB, free: 14.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002541/0.3186, allocations: 153.2 kB / 0.4981 GB, free: 14.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3186, allocations: 6.5 kB / 0.4981 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3186, allocations: 0 / 0.4981 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3187, allocations: 7.953 kB / 0.4982 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3188, allocations: 36.11 kB / 0.4982 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3188, allocations: 4 kB / 0.4982 GB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.3189, allocations: 11.88 kB / 0.4982 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.3189, allocations: 8 kB / 0.4982 GB, free: 14.31 MB / 378.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 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.3191, allocations: 137.8 kB / 0.4983 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.3191, allocations: 19.72 kB / 0.4984 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.3194, allocations: 149.2 kB / 0.4985 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3194, allocations: 0 / 0.4985 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3194, allocations: 7.953 kB / 0.4985 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3194, allocations: 4 kB / 0.4985 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.3196, allocations: 245.6 kB / 0.4987 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3196, allocations: 0 / 0.4987 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.3197, allocations: 16 kB / 0.4988 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3198, allocations: 3.984 kB / 0.4988 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.3198, allocations: 0 / 0.4988 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.3198, allocations: 4 kB / 0.4988 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3198, allocations: 0 / 0.4988 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000331/0.3201, allocations: 208.6 kB / 0.499 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.3202, allocations: 104.9 kB / 0.4991 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.3202, allocations: 4 kB / 0.4991 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-05/0.3203, allocations: 4 kB / 0.4991 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.952e-05/0.3204, allocations: 7.984 kB / 0.4991 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.3204, allocations: 4 kB / 0.4991 GB, free: 13.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001674/0.3206, allocations: 205.5 kB / 0.4993 GB, free: 13.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3206, allocations: 0 / 0.4993 GB, free: 13.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002471/0.3208, allocations: 67.83 kB / 0.4993 GB, free: 13.05 MB / 378.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.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008244/0.3217, allocations: 422.9 kB / 0.4998 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002072/0.3219, allocations: 83.91 kB / 0.4998 GB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3219, allocations: 0 / 0.4998 GB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.815e-05/0.322, allocations: 39.92 kB / 0.4999 GB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.3222, allocations: 32.66 kB / 0.4999 GB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000781/0.323, allocations: 0.609 MB / 0.5005 GB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.3233, allocations: 0.7425 MB / 0.5012 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.57e-05/0.3234, allocations: 25.41 kB / 0.5012 GB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.593e-05/0.3234, allocations: 19.44 kB / 0.5013 GB, free: 11.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3234, allocations: 4 kB / 0.5013 GB, free: 11.2 MB / 378.7 MB Notification: Performance of Templates: time 0.004385/0.3278, allocations: 2.041 MB / 0.5033 GB, free: 9.18 MB / 378.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)