Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 176.1 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.0412/0.0412, allocations: 8.716 MB / 16.79 MB, free: 3.375 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.368/1.368, allocations: 221.5 MB / 240.9 MB, free: 13.19 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.0009633/0.0009632, allocations: 92.53 kB / 293.8 MB, free: 7.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.798e-05/1.801e-05, allocations: 4 kB / 352.6 MB, free: 1.25 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.5/0.6191, allocations: 139.3 MB / 0.5317 GB, free: 12.6 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/0.6195, allocations: 75.97 kB / 0.5318 GB, free: 12.53 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.168/1.788, allocations: 268.9 MB / 0.7944 GB, free: 51.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.083e-06/1.788, allocations: 0 / 0.7944 GB, free: 51.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009899/1.789, allocations: 175.9 kB / 0.7946 GB, free: 51.62 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.02998/1.819, allocations: 7.42 MB / 0.8019 GB, free: 49.26 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/1.819, allocations: 11.2 kB / 0.8019 GB, free: 49.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02257/1.841, allocations: 3.882 MB / 0.8057 GB, free: 48.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01957/1.861, allocations: 6.759 MB / 0.8123 GB, free: 47.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005873/1.862, allocations: 250.3 kB / 0.8125 GB, free: 47.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004063/1.866, allocations: 451.9 kB / 0.8129 GB, free: 47.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02534/1.891, allocations: 9.978 MB / 0.8227 GB, free: 47.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03222/1.923, allocations: 11.27 MB / 0.8337 GB, free: 44.96 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000454/1.924, allocations: 16.02 kB / 0.8337 GB, free: 44.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002953/1.927, allocations: 10.81 kB / 0.8337 GB, free: 44.95 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007425/1.928, allocations: 0.5966 MB / 0.8343 GB, free: 44.83 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07568/2.003, allocations: 42.98 MB / 0.8763 GB, free: 20.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02901/2.032, allocations: 25.99 MB / 0.9016 GB, free: 9.984 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005205/2.038, allocations: 2.921 MB / 0.9045 GB, free: 7.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004516/2.038, allocations: 237.6 kB / 0.9047 GB, free: 7.094 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003858/2.042, allocations: 2.538 MB / 0.9072 GB, free: 4.949 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 5.36e-06/2.042, allocations: 0 / 0.9072 GB, free: 4.949 MB / 474.7 MB Notification: Performance of matching and sorting (n=397): time 0.5003/2.542, allocations: 15.68 MB / 0.9225 GB, free: 64.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/2.543, allocations: 356.9 kB / 0.9229 GB, free: 64.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007889/2.55, allocations: 2.702 MB / 0.9255 GB, free: 64.14 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001159/2.552, allocations: 28.48 kB / 0.9255 GB, free: 64.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003428/2.555, allocations: 3.376 MB / 0.9288 GB, free: 62.58 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002841/2.558, allocations: 1.301 MB / 0.9301 GB, free: 61.73 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/2.559, allocations: 0 / 0.9301 GB, free: 61.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009269/2.56, allocations: 0.5221 MB / 0.9306 GB, free: 61.42 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005516/2.566, allocations: 2.487 MB / 0.933 GB, free: 61.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006307/2.572, allocations: 4.379 MB / 0.9373 GB, free: 59.14 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009076/2.581, allocations: 4.368 MB / 0.9416 GB, free: 59.09 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/2.581, allocations: 16.06 kB / 0.9416 GB, free: 59.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.02411/2.606, allocations: 8.604 MB / 0.95 GB, free: 58.74 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001107/2.606, allocations: 63.05 kB / 0.95 GB, free: 58.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/2.606, allocations: 58.72 kB / 0.9501 GB, free: 58.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002737/2.609, allocations: 0.9925 MB / 0.9511 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005819/2.614, allocations: 1.303 MB / 0.9523 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/2.628, allocations: 7.952 MB / 0.9601 GB, free: 57.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005963/2.634, allocations: 308.1 kB / 0.9604 GB, free: 57.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001445/2.636, allocations: 264.3 kB / 0.9607 GB, free: 57.22 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.001114/2.637, allocations: 305.5 kB / 0.9609 GB, free: 57.04 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/2.638, allocations: 367.6 kB / 0.9613 GB, free: 56.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01331/2.651, allocations: 6.657 MB / 0.9678 GB, free: 56.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.862e-05/2.651, allocations: 50.33 kB / 0.9678 GB, free: 56.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/2.651, allocations: 7.469 kB / 0.9679 GB, free: 56.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.408e-05/2.651, allocations: 22.09 kB / 0.9679 GB, free: 56.57 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03111/2.683, allocations: 14.63 MB / 0.9822 GB, free: 54.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/2.683, allocations: 3.875 kB / 0.9822 GB, free: 54.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003031/2.686, allocations: 0.7166 MB / 0.9829 GB, free: 54.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002515/2.688, allocations: 0.8573 MB / 0.9837 GB, free: 54.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003896/2.689, allocations: 35.12 kB / 0.9837 GB, free: 54.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008702/2.697, allocations: 6.927 MB / 0.9905 GB, free: 52.19 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/2.697, allocations: 9.25 kB / 0.9905 GB, free: 52.19 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/2.711, allocations: 9.876 MB / 1 GB, free: 47.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00232/2.714, allocations: 0.9457 MB / 1.001 GB, free: 47.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006237/2.714, allocations: 13.48 kB / 1.001 GB, free: 47.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002195/2.716, allocations: 175.2 kB / 1.001 GB, free: 47.12 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006083/2.717, allocations: 269.7 kB / 1.002 GB, free: 47.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/2.717, allocations: 116.2 kB / 1.002 GB, free: 47.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003111/2.72, allocations: 1.958 MB / 1.004 GB, free: 46.23 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.72, allocations: 0 / 1.004 GB, free: 46.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008763/2.729, allocations: 1.309 MB / 1.005 GB, free: 46.21 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.001742/2.731, allocations: 427.9 kB / 1.005 GB, free: 46.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.012/2.743, allocations: 6.26 MB / 1.011 GB, free: 43.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.818e-05/2.743, allocations: 4.156 kB / 1.011 GB, free: 43.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006824/2.75, allocations: 3.047 MB / 1.014 GB, free: 42.42 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005303/2.755, allocations: 0.5454 MB / 1.015 GB, free: 42.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03514/2.79, allocations: 11.93 MB / 1.026 GB, free: 37.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00602/2.797, allocations: 5.135 MB / 1.032 GB, free: 33.58 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005251/2.802, allocations: 1.649 MB / 1.033 GB, free: 32.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/2.803, allocations: 313.8 kB / 1.033 GB, free: 32.21 MB / 474.7 MB Notification: Performance of SimCode: time 1.272e-06/2.803, allocations: 0 / 1.033 GB, free: 32.21 MB / 474.7 MB Notification: Performance of Templates: time 0.09145/2.894, allocations: 52.94 MB / 1.085 GB, free: 12.8 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)