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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.000976/0.0009761, allocations: 180.5 kB / 16.12 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.04078/0.04078, allocations: 8.77 MB / 25.63 MB, free: 3.418 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.4 MB / 233.9 MB, free: 12.46 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007815/0.0007816, allocations: 82.38 kB / 284.4 MB, free: 14.33 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004647/0.0004649, allocations: 20 kB / 344.8 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2342, allocations: 49.71 MB / 394.5 MB, free: 36.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3267/0.5609, allocations: 130.7 MB / 0.5129 GB, free: 103.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.5612, allocations: 83.59 kB / 0.513 GB, free: 103.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.059/1.621, allocations: 323.6 MB / 0.829 GB, free: 35.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.682e-06/1.621, allocations: 0 / 0.829 GB, free: 35.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005976/1.621, allocations: 210 kB / 0.8292 GB, free: 35.82 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2735 * Number of variables: 2735 Notification: Performance of Generate backend data structure: time 0.0285/1.65, allocations: 8.906 MB / 0.8379 GB, free: 33.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/1.65, allocations: 11.59 kB / 0.838 GB, free: 33.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02915/1.679, allocations: 5.833 MB / 0.8436 GB, free: 32.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/1.693, allocations: 6.753 MB / 0.8502 GB, free: 31.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009189/1.694, allocations: 0.7124 MB / 0.8509 GB, free: 31.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004202/1.698, allocations: 0.9163 MB / 0.8518 GB, free: 31.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03668/1.735, allocations: 16.87 MB / 0.8683 GB, free: 30.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003839/1.735, allocations: 22.06 kB / 0.8683 GB, free: 30.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002698/1.738, allocations: 401.7 kB / 0.8687 GB, free: 30.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006241/1.739, allocations: 0.7122 MB / 0.8694 GB, free: 30.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0458/1.785, allocations: 15.72 MB / 0.8848 GB, free: 30.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08528/1.87, allocations: 51.78 MB / 0.9353 GB, free: 10.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03018/1.9, allocations: 41.17 MB / 0.9755 GB, free: 5.07 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01589/1.916, allocations: 7.375 MB / 0.9827 GB, free: 15.76 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2644/2.181, allocations: 21.74 MB / 1.004 GB, free: 81.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.988e-05/2.181, allocations: 96.23 kB / 1.004 GB, free: 81.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=681): time 8.887e-06/2.181, allocations: 0 / 1.004 GB, free: 81.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=688): time 0.0778/2.259, allocations: 36.75 MB / 1.04 GB, free: 78.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/2.259, allocations: 110 kB / 1.04 GB, free: 78.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/2.262, allocations: 2.669 MB / 1.043 GB, free: 78.42 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009747/2.263, allocations: 119.4 kB / 1.043 GB, free: 78.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001856/2.265, allocations: 3.553 MB / 1.046 GB, free: 76.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002334/2.267, allocations: 2.268 MB / 1.048 GB, free: 75.26 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004286/2.268, allocations: 124.9 kB / 1.049 GB, free: 75.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004281/2.268, allocations: 0.6043 MB / 1.049 GB, free: 74.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005848/2.274, allocations: 4.465 MB / 1.054 GB, free: 74.92 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007775/2.282, allocations: 6.268 MB / 1.06 GB, free: 72.92 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01568/2.298, allocations: 11.46 MB / 1.071 GB, free: 70.76 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-05/2.298, allocations: 14.56 kB / 1.071 GB, free: 70.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=929) (initialization): time 0.0234/2.321, allocations: 13.55 MB / 1.084 GB, free: 67.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.859e-05/2.321, allocations: 28.88 kB / 1.084 GB, free: 67.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/2.321, allocations: 50.84 kB / 1.084 GB, free: 67.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007019/2.328, allocations: 3.997 MB / 1.088 GB, free: 66.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004972/2.333, allocations: 1.2 MB / 1.089 GB, free: 66.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/2.345, allocations: 9.661 MB / 1.099 GB, free: 61.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006236/2.351, allocations: 354.8 kB / 1.099 GB, free: 61.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001679/2.353, allocations: 306.2 kB / 1.099 GB, free: 61.11 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 238 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (635): * Single equations (assignments): 583 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.007474/2.36, allocations: 3.582 MB / 1.103 GB, free: 59.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/2.362, allocations: 436.7 kB / 1.103 GB, free: 59.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02027/2.382, allocations: 12.81 MB / 1.116 GB, free: 53.31 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001774/2.382, allocations: 185.1 kB / 1.116 GB, free: 53.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/2.382, allocations: 4 kB / 1.116 GB, free: 53.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.241e-05/2.382, allocations: 31.08 kB / 1.116 GB, free: 53.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03854/2.421, allocations: 24.47 MB / 1.14 GB, free: 32.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.207e-05/2.421, allocations: 4.031 kB / 1.14 GB, free: 32.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003439/2.424, allocations: 0.7989 MB / 1.141 GB, free: 31.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006687/2.431, allocations: 3.903 MB / 1.144 GB, free: 28.75 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001631/2.433, allocations: 148.8 kB / 1.145 GB, free: 28.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009326/2.442, allocations: 9.555 MB / 1.154 GB, free: 19.97 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/2.442, allocations: 4 kB / 1.154 GB, free: 19.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02993/2.472, allocations: 19.06 MB / 1.173 GB, free: 3.047 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00377/2.476, allocations: 1.454 MB / 1.174 GB, free: 1.727 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001344/2.477, allocations: 100 kB / 1.174 GB, free: 1.629 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003178/2.48, allocations: 266 kB / 1.174 GB, free: 1.441 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001056/2.481, allocations: 0.5168 MB / 1.175 GB, free: 1.148 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006991/2.482, allocations: 267.3 kB / 1.175 GB, free: 1.148 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.2562/2.738, allocations: 1.781 MB / 1.177 GB, free: 79.31 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.738, allocations: 0 / 1.177 GB, free: 79.31 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007894/2.746, allocations: 1.68 MB / 1.178 GB, free: 79.31 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (428): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001229/2.748, allocations: 0.4928 MB / 1.179 GB, free: 79.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01634/2.764, allocations: 11.04 MB / 1.19 GB, free: 78.95 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/2.764, allocations: 0 / 1.19 GB, free: 78.95 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009061/2.773, allocations: 5.657 MB / 1.195 GB, free: 78.79 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00594/2.779, allocations: 0.8772 MB / 1.196 GB, free: 78.78 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03069/2.81, allocations: 23.45 MB / 1.219 GB, free: 70.85 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006076/2.816, allocations: 6.298 MB / 1.225 GB, free: 69.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004918/2.821, allocations: 1.534 MB / 1.227 GB, free: 69.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009802/2.822, allocations: 323.8 kB / 1.227 GB, free: 69.76 MB / 490.7 MB Notification: Performance of SimCode: time 9.62e-07/2.822, allocations: 0 / 1.227 GB, free: 69.76 MB / 490.7 MB Notification: Performance of Templates: time 0.1428/2.965, allocations: 108.3 MB / 1.333 GB, free: 15.22 MB / 490.7 MB 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)