Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 174.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06049/0.06049, allocations: 8.698 MB / 21.96 MB, free: 3.367 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.535/1.535, allocations: 221.4 MB / 246 MB, free: 3.617 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.0008946/0.0008945, allocations: 100.8 kB / 299.1 MB, free: 3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.132e-05, allocations: 4 kB / 359.5 MB, free: 6.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.258, allocations: 52.54 MB / 412.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.6685, allocations: 131.5 MB / 0.5308 GB, free: 41.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/0.6687, allocations: 81.52 kB / 0.5309 GB, free: 41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8865/1.555, allocations: 315.2 MB / 0.8387 GB, free: 1.195 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.555, allocations: 0 / 0.8387 GB, free: 1.195 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000524/1.556, allocations: 203.8 kB / 0.8389 GB, free: 0.9961 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.374/1.93, allocations: 8.26 MB / 0.847 GB, free: 37.93 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/1.93, allocations: 7.688 kB / 0.847 GB, free: 37.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02443/1.954, allocations: 3.867 MB / 0.8507 GB, free: 37.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01985/1.974, allocations: 7.236 MB / 0.8578 GB, free: 36.72 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006967/1.975, allocations: 0.6605 MB / 0.8584 GB, free: 36.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003863/1.979, allocations: 0.8655 MB / 0.8593 GB, free: 36.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03486/2.014, allocations: 14.51 MB / 0.8735 GB, free: 35.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003482/2.014, allocations: 16.42 kB / 0.8735 GB, free: 35.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002013/2.016, allocations: 382 kB / 0.8738 GB, free: 35.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006746/2.017, allocations: 0.6834 MB / 0.8745 GB, free: 35.62 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03069/2.048, allocations: 12.35 MB / 0.8866 GB, free: 35.54 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0967/2.144, allocations: 46.89 MB / 0.9324 GB, free: 18.08 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/2.168, allocations: 28.16 MB / 0.9599 GB, free: 6.883 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005549/2.174, allocations: 2.942 MB / 0.9627 GB, free: 5.781 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007935/2.175, allocations: 244.5 kB / 0.963 GB, free: 5.582 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001151/2.175, allocations: 73.86 kB / 0.963 GB, free: 5.516 MB / 474.7 MB Notification: Performance of pre-optimization done (n=377): time 1.179e-05/2.175, allocations: 0 / 0.963 GB, free: 5.516 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.02424/2.199, allocations: 11.03 MB / 0.9738 GB, free: 476 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/2.199, allocations: 95.89 kB / 0.9739 GB, free: 408 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006733/2.206, allocations: 3.138 MB / 0.977 GB, free: 15.66 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008523/2.207, allocations: 86.73 kB / 0.9771 GB, free: 15.58 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002898/2.21, allocations: 3.947 MB / 0.9809 GB, free: 12.61 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001901/2.212, allocations: 1.315 MB / 0.9822 GB, free: 11.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003756/2.212, allocations: 118 kB / 0.9823 GB, free: 11.51 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003796/2.212, allocations: 0.5455 MB / 0.9828 GB, free: 11.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003604/2.216, allocations: 2.46 MB / 0.9852 GB, free: 10.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005662/2.222, allocations: 4.886 MB / 0.99 GB, free: 4.977 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006399/2.228, allocations: 3.664 MB / 0.9936 GB, free: 1.93 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.889e-05/2.228, allocations: 24 kB / 0.9936 GB, free: 1.906 MB / 490.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.02138/2.25, allocations: 8.615 MB / 1.002 GB, free: 11.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000135/2.25, allocations: 43.5 kB / 1.002 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001823/2.25, allocations: 84.16 kB / 1.002 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002585/2.253, allocations: 0.8861 MB / 1.003 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005709/2.258, allocations: 1.33 MB / 1.004 GB, free: 9.941 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01241/2.271, allocations: 7.506 MB / 1.012 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005865/2.277, allocations: 336 kB / 1.012 GB, free: 2.996 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001681/2.278, allocations: 296.9 kB / 1.012 GB, free: 2.715 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (702): * Single equations (assignments): 700 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002379/2.281, allocations: 494.9 kB / 1.013 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/2.282, allocations: 386.5 kB / 1.013 GB, free: 1.844 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/2.297, allocations: 5.928 MB / 1.019 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.855e-05/2.297, allocations: 40 kB / 1.019 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.442e-05/2.298, allocations: 8 kB / 1.019 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.666e-05/2.298, allocations: 17.91 kB / 1.019 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03695/2.335, allocations: 14.88 MB / 1.033 GB, free: 0.9688 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-05/2.335, allocations: 4.562 kB / 1.033 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003182/2.338, allocations: 0.6739 MB / 1.034 GB, free: 408 kB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/2.341, allocations: 0.7363 MB / 1.035 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009401/2.342, allocations: 105.7 kB / 1.035 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3957/2.737, allocations: 6.125 MB / 1.041 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/2.738, allocations: 9.375 kB / 1.041 GB, free: 93.86 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/2.752, allocations: 8.696 MB / 1.049 GB, free: 92.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004113/2.756, allocations: 0.8675 MB / 1.05 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001476/2.758, allocations: 67.06 kB / 1.05 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002648/2.761, allocations: 195.5 kB / 1.051 GB, free: 92.76 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005782/2.761, allocations: 254.1 kB / 1.051 GB, free: 92.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002356/2.762, allocations: 110.9 kB / 1.051 GB, free: 92.75 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003886/2.765, allocations: 2.253 MB / 1.053 GB, free: 92.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.71e-07/2.765, allocations: 0 / 1.053 GB, free: 92.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008533/2.774, allocations: 1.556 MB / 1.055 GB, free: 92.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/2.775, allocations: 0.5626 MB / 1.055 GB, free: 92.47 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00984/2.785, allocations: 6.265 MB / 1.061 GB, free: 92.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/2.785, allocations: 2.219 kB / 1.061 GB, free: 92.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004525/2.79, allocations: 2.787 MB / 1.064 GB, free: 92.07 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004872/2.794, allocations: 0.7927 MB / 1.065 GB, free: 92.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02712/2.822, allocations: 13.21 MB / 1.078 GB, free: 89.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005921/2.828, allocations: 6.04 MB / 1.084 GB, free: 88.68 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005148/2.833, allocations: 1.839 MB / 1.085 GB, free: 88.63 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009573/2.834, allocations: 332.5 kB / 1.086 GB, free: 88.62 MB / 0.5105 GB Notification: Performance of SimCode: time 1.362e-06/2.834, allocations: 0 / 1.086 GB, free: 88.62 MB / 0.5105 GB Notification: Performance of Templates: time 0.1058/2.94, allocations: 59.38 MB / 1.144 GB, free: 79.4 MB / 0.5105 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)