Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05852/0.05852, allocations: 8.715 MB / 16.79 MB, free: 3.371 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 221.5 MB / 240.9 MB, free: 13.13 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.000952/0.000952, allocations: 99.48 kB / 293.9 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.542e-05/1.546e-05, allocations: 4 kB / 352.6 MB, free: 1.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.119, allocations: 52.54 MB / 405.2 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4013/0.5204, allocations: 139.3 MB / 0.5317 GB, free: 12.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5207, allocations: 79.97 kB / 0.5318 GB, free: 12.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.118/1.638, allocations: 268.9 MB / 0.7944 GB, free: 51.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.638, allocations: 1.375 kB / 0.7944 GB, free: 51.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001287/1.64, allocations: 177.5 kB / 0.7946 GB, free: 51.78 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03835/1.678, allocations: 7.412 MB / 0.8018 GB, free: 49.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.225e-05/1.678, allocations: 17.27 kB / 0.8019 GB, free: 49.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02523/1.703, allocations: 3.886 MB / 0.8057 GB, free: 48.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02381/1.727, allocations: 6.762 MB / 0.8123 GB, free: 48.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009282/1.728, allocations: 248.7 kB / 0.8125 GB, free: 48.14 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005982/1.734, allocations: 449.1 kB / 0.8129 GB, free: 48.14 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03507/1.769, allocations: 9.979 MB / 0.8227 GB, free: 48.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04406/1.814, allocations: 11.27 MB / 0.8337 GB, free: 45.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006653/1.814, allocations: 18.42 kB / 0.8337 GB, free: 45.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004404/1.819, allocations: 3.844 kB / 0.8337 GB, free: 45.27 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001004/1.82, allocations: 0.5959 MB / 0.8343 GB, free: 45.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09445/1.914, allocations: 42.99 MB / 0.8763 GB, free: 20.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02962/1.944, allocations: 25.99 MB / 0.9016 GB, free: 10.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005722/1.95, allocations: 2.919 MB / 0.9045 GB, free: 7.656 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006484/1.95, allocations: 245.2 kB / 0.9047 GB, free: 7.406 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005228/1.956, allocations: 2.531 MB / 0.9072 GB, free: 5.273 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 1.426e-05/1.956, allocations: 8 kB / 0.9072 GB, free: 5.266 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.4111/2.367, allocations: 15.69 MB / 0.9225 GB, free: 64.89 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/2.367, allocations: 353.5 kB / 0.9229 GB, free: 64.52 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004011/2.371, allocations: 2.705 MB / 0.9255 GB, free: 64.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003289/2.371, allocations: 32.23 kB / 0.9255 GB, free: 64.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/2.373, allocations: 3.379 MB / 0.9288 GB, free: 62.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009706/2.374, allocations: 1.293 MB / 0.9301 GB, free: 61.85 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/2.374, allocations: 0 / 0.9301 GB, free: 61.85 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002953/2.375, allocations: 0.5253 MB / 0.9306 GB, free: 61.54 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003235/2.378, allocations: 2.485 MB / 0.933 GB, free: 61.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004304/2.382, allocations: 4.375 MB / 0.9373 GB, free: 59.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007201/2.389, allocations: 4.369 MB / 0.9416 GB, free: 59.21 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.483e-05/2.389, allocations: 20.34 kB / 0.9416 GB, free: 59.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01723/2.407, allocations: 8.607 MB / 0.95 GB, free: 58.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.821e-05/2.407, allocations: 61.36 kB / 0.9501 GB, free: 58.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/2.407, allocations: 59.59 kB / 0.9501 GB, free: 58.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002713/2.41, allocations: 0.9947 MB / 0.9511 GB, free: 58.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005515/2.415, allocations: 1.298 MB / 0.9524 GB, free: 58.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/2.428, allocations: 7.954 MB / 0.9601 GB, free: 57.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006062/2.434, allocations: 306.6 kB / 0.9604 GB, free: 57.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001614/2.436, allocations: 264 kB / 0.9607 GB, free: 57.34 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 661 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001252/2.437, allocations: 305.2 kB / 0.961 GB, free: 57.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/2.439, allocations: 366.5 kB / 0.9613 GB, free: 56.97 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01311/2.452, allocations: 6.661 MB / 0.9678 GB, free: 56.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.272e-05/2.452, allocations: 40.69 kB / 0.9678 GB, free: 56.69 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/2.452, allocations: 13.45 kB / 0.9679 GB, free: 56.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-05/2.452, allocations: 19.78 kB / 0.9679 GB, free: 56.69 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02741/2.479, allocations: 14.63 MB / 0.9822 GB, free: 55.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/2.479, allocations: 3.875 kB / 0.9822 GB, free: 55.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00287/2.482, allocations: 0.7175 MB / 0.9829 GB, free: 55.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/2.485, allocations: 0.8588 MB / 0.9837 GB, free: 54.99 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003937/2.485, allocations: 31.55 kB / 0.9837 GB, free: 54.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008879/2.494, allocations: 6.925 MB / 0.9905 GB, free: 52.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.659e-06/2.494, allocations: 8.016 kB / 0.9905 GB, free: 52.54 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/2.509, allocations: 9.879 MB / 1 GB, free: 48.03 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002546/2.511, allocations: 0.948 MB / 1.001 GB, free: 47.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007211/2.512, allocations: 8.656 kB / 1.001 GB, free: 47.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/2.514, allocations: 182.3 kB / 1.001 GB, free: 47.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006053/2.515, allocations: 272.5 kB / 1.002 GB, free: 47.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002249/2.515, allocations: 108 kB / 1.002 GB, free: 47.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003007/2.518, allocations: 1.964 MB / 1.004 GB, free: 46.58 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.81e-07/2.518, allocations: 1.406 kB / 1.004 GB, free: 46.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006341/2.525, allocations: 1.312 MB / 1.005 GB, free: 46.55 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008692/2.526, allocations: 421.6 kB / 1.005 GB, free: 46.42 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009169/2.535, allocations: 6.263 MB / 1.011 GB, free: 44.03 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/2.535, allocations: 3.906 kB / 1.011 GB, free: 44.03 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004216/2.539, allocations: 3.044 MB / 1.014 GB, free: 42.76 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/2.542, allocations: 0.5538 MB / 1.015 GB, free: 42.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02225/2.565, allocations: 11.92 MB / 1.027 GB, free: 37.81 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004684/2.569, allocations: 5.129 MB / 1.032 GB, free: 34.11 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005833/2.575, allocations: 1.651 MB / 1.033 GB, free: 33.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000982/2.576, allocations: 321.9 kB / 1.033 GB, free: 32.73 MB / 474.7 MB Notification: Performance of SimCode: time 1.883e-06/2.576, allocations: 0 / 1.033 GB, free: 32.73 MB / 474.7 MB Notification: Performance of Templates: time 0.08555/2.662, allocations: 52.94 MB / 1.085 GB, free: 13.12 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)