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.001425/0.001425, 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.04124/0.04124, allocations: 8.714 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.428/1.428, allocations: 221.5 MB / 240.9 MB, free: 13.17 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.0009819/0.000982, allocations: 91.22 kB / 293.9 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.686e-05, allocations: 4 kB / 352.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 52.54 MB / 405.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4039/0.5211, allocations: 130.8 MB / 0.5234 GB, free: 5.105 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.5214, allocations: 79.95 kB / 0.5235 GB, free: 5.027 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.195/1.717, allocations: 311.8 MB / 0.828 GB, free: 37.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.717, allocations: 0 / 0.828 GB, free: 37.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005546/1.717, allocations: 207.9 kB / 0.8282 GB, free: 37.14 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03212/1.749, allocations: 8.26 MB / 0.8363 GB, free: 34.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.793e-05/1.749, allocations: 14.98 kB / 0.8363 GB, free: 34.49 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02324/1.773, allocations: 3.86 MB / 0.8401 GB, free: 34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01649/1.789, allocations: 7.245 MB / 0.8472 GB, free: 30.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004611/1.79, allocations: 287.2 kB / 0.8474 GB, free: 30.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00318/1.793, allocations: 0.5085 MB / 0.8479 GB, free: 30.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02296/1.816, allocations: 11.22 MB / 0.8589 GB, free: 25.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03798/1.854, allocations: 13.11 MB / 0.8717 GB, free: 16.44 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000515/1.855, allocations: 11.56 kB / 0.8717 GB, free: 16.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003272/1.858, allocations: 8 kB / 0.8717 GB, free: 16.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008023/1.859, allocations: 0.682 MB / 0.8724 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08879/1.947, allocations: 46.25 MB / 0.9175 GB, free: 2.812 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3535/2.301, allocations: 27.92 MB / 0.9448 GB, free: 38.66 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004732/2.306, allocations: 2.98 MB / 0.9477 GB, free: 38.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003882/2.306, allocations: 249.1 kB / 0.9479 GB, free: 38.44 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/2.306, allocations: 72.11 kB / 0.948 GB, free: 38.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=377): time 6.312e-06/2.306, allocations: 1.094 kB / 0.948 GB, free: 38.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.02565/2.332, allocations: 12.9 MB / 0.9606 GB, free: 37.13 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/2.332, allocations: 90.98 kB / 0.9607 GB, free: 37.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004584/2.337, allocations: 2.728 MB / 0.9634 GB, free: 36.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005383/2.337, allocations: 28.7 kB / 0.9634 GB, free: 36.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/2.34, allocations: 3.95 MB / 0.9672 GB, free: 34.72 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001437/2.341, allocations: 1.261 MB / 0.9685 GB, free: 33.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/2.341, allocations: 0 / 0.9685 GB, free: 33.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000286/2.342, allocations: 0.5457 MB / 0.969 GB, free: 33.58 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003699/2.345, allocations: 2.498 MB / 0.9715 GB, free: 33.56 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004888/2.35, allocations: 4.885 MB / 0.9762 GB, free: 30.58 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007515/2.358, allocations: 4.303 MB / 0.9804 GB, free: 30.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001244/2.358, allocations: 23.75 kB / 0.9804 GB, free: 30.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.0188/2.377, allocations: 8.584 MB / 0.9888 GB, free: 30.17 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/2.377, allocations: 43 kB / 0.9889 GB, free: 30.17 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002151/2.377, allocations: 85.19 kB / 0.989 GB, free: 30.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002495/2.38, allocations: 0.9263 MB / 0.9899 GB, free: 30.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004923/2.385, allocations: 1.357 MB / 0.9912 GB, free: 30.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/2.395, allocations: 7.683 MB / 0.9987 GB, free: 28.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005309/2.401, allocations: 252 kB / 0.9989 GB, free: 28.63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/2.402, allocations: 298.1 kB / 0.9992 GB, free: 28.63 MB / 474.7 MB 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 (696): * Single equations (assignments): 694 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00102/2.403, allocations: 322.4 kB / 0.9995 GB, free: 28.47 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008567/2.404, allocations: 378.9 kB / 0.9999 GB, free: 28.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/2.415, allocations: 6.384 MB / 1.006 GB, free: 27.98 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.121e-05/2.416, allocations: 36.45 kB / 1.006 GB, free: 27.98 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/2.416, allocations: 10.84 kB / 1.006 GB, free: 27.98 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.971e-05/2.416, allocations: 19.55 kB / 1.006 GB, free: 27.98 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02658/2.442, allocations: 14.42 MB / 1.02 GB, free: 23.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/2.442, allocations: 3.969 kB / 1.02 GB, free: 23.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002732/2.445, allocations: 0.7064 MB / 1.021 GB, free: 23.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/2.447, allocations: 0.6709 MB / 1.022 GB, free: 23.68 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/2.447, allocations: 30.83 kB / 1.022 GB, free: 23.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007471/2.455, allocations: 5.932 MB / 1.027 GB, free: 20.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/2.455, allocations: 10.19 kB / 1.027 GB, free: 20.32 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/2.468, allocations: 9.545 MB / 1.037 GB, free: 16.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/2.471, allocations: 0.8779 MB / 1.038 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000493/2.471, allocations: 5.5 kB / 1.038 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/2.473, allocations: 160.3 kB / 1.038 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/2.474, allocations: 265.2 kB / 1.038 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000233/2.474, allocations: 105.5 kB / 1.038 GB, free: 15.43 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00342/2.478, allocations: 1.989 MB / 1.04 GB, free: 14.63 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.31e-07/2.478, allocations: 0 / 1.04 GB, free: 14.63 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006847/2.484, allocations: 1.362 MB / 1.041 GB, free: 14.61 MB / 474.7 MB 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,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009015/2.485, allocations: 414.7 kB / 1.042 GB, free: 14.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009437/2.495, allocations: 6.273 MB / 1.048 GB, free: 12.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/2.495, allocations: 7.875 kB / 1.048 GB, free: 12.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003803/2.499, allocations: 2.841 MB / 1.051 GB, free: 10.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/2.503, allocations: 0.6674 MB / 1.051 GB, free: 10.79 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02589/2.529, allocations: 13.22 MB / 1.064 GB, free: 1.508 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008614/2.537, allocations: 6.126 MB / 1.07 GB, free: 13.13 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006688/2.544, allocations: 1.845 MB / 1.072 GB, free: 11.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/2.545, allocations: 326 kB / 1.072 GB, free: 11.63 MB / 490.7 MB Notification: Performance of SimCode: time 1.483e-06/2.545, allocations: 0 / 1.072 GB, free: 11.63 MB / 490.7 MB Notification: Performance of Templates: time 0.4568/3.002, allocations: 53.38 MB / 1.124 GB, free: 89.39 MB / 0.4948 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)