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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001055, allocations: 86.56 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 239 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009966/0.0009964, allocations: 176.5 kB / 290.3 MB, free: 2.113 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03198/0.03198, allocations: 8.797 MB / 350.2 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003814, allocations: 14.91 kB / 413.2 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1178, allocations: 52.56 MB / 465.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.03019/0.148, allocations: 24.07 MB / 489.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.1648, allocations: 7.37 MB / 497.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005503/0.1703, allocations: 195.4 kB / 497.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005555/0.1759, allocations: 1.262 MB / 498.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00944/0.1854, allocations: 2.222 MB / 0.4891 GB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004576/0.19, allocations: 1.188 MB / 0.4903 GB, free: 9.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01561/0.2056, allocations: 10.62 MB / 0.5007 GB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03308/0.2387, allocations: 17.2 MB / 0.5175 GB, free: 13.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008525/0.2473, allocations: 3.746 MB / 0.5211 GB, free: 9.352 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01041/0.2578, allocations: 4.292 MB / 0.5253 GB, free: 5.043 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002673/0.2605, allocations: 0.5859 MB / 0.5259 GB, free: 4.457 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004505/0.265, allocations: 0.9332 MB / 0.5268 GB, free: 3.523 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002508/0.2675, allocations: 1.771 MB / 0.5285 GB, free: 1.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.209/0.4766, allocations: 1.915 MB / 0.5304 GB, free: 22.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01515/0.4918, allocations: 17.12 MB / 0.5471 GB, free: 17.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4918, allocations: 0 / 0.5471 GB, free: 17.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4918, allocations: 1.375 kB / 0.5471 GB, free: 17.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005937/0.4924, allocations: 0 / 0.5471 GB, free: 17.5 MB / 366.1 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.02773/0.5202, allocations: 9.685 MB / 0.5566 GB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.5202, allocations: 8.469 kB / 0.5566 GB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03033/0.5506, allocations: 5.585 MB / 0.562 GB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01492/0.5656, allocations: 5.948 MB / 0.5678 GB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006362/0.5662, allocations: 0.6936 MB / 0.5685 GB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004105/0.5704, allocations: 0.9053 MB / 0.5694 GB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04521/0.6156, allocations: 14.79 MB / 0.5838 GB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006237/0.6163, allocations: 19.86 kB / 0.5839 GB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004392/0.6207, allocations: 386.5 kB / 0.5842 GB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005588/0.6213, allocations: 0.5087 MB / 0.5847 GB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03371/0.655, allocations: 13.49 MB / 0.5979 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1461/0.8011, allocations: 46.73 MB / 0.6435 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02794/0.8291, allocations: 28.26 MB / 0.6711 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006049/0.8352, allocations: 3.012 MB / 0.6741 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005527/0.8358, allocations: 238.6 kB / 0.6743 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.102e-05/0.8359, allocations: 73.52 kB / 0.6744 GB, free: 11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=375): time 5.992e-06/0.8359, allocations: 4 kB / 0.6744 GB, free: 11 MB / 462.1 MB Notification: Performance of matching and sorting (n=382): time 0.03892/0.8748, allocations: 15.47 MB / 0.6895 GB, free: 11.48 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.205e-05/0.8749, allocations: 94.39 kB / 0.6896 GB, free: 11.37 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006419/0.8813, allocations: 3.447 MB / 0.6929 GB, free: 7.922 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004817/0.8818, allocations: 85.7 kB / 0.693 GB, free: 7.832 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00256/0.8844, allocations: 3.959 MB / 0.6969 GB, free: 3.848 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001366/0.8858, allocations: 1.302 MB / 0.6982 GB, free: 2.555 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003345/0.8861, allocations: 119.5 kB / 0.6983 GB, free: 2.441 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003469/0.8865, allocations: 0.5459 MB / 0.6988 GB, free: 1.887 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2279/1.114, allocations: 2.521 MB / 0.7013 GB, free: 157.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00648/1.121, allocations: 4.982 MB / 0.7061 GB, free: 154.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005763/1.127, allocations: 3.712 MB / 0.7098 GB, free: 153.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/1.127, allocations: 24.75 kB / 0.7098 GB, free: 153.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01319/1.14, allocations: 8.432 MB / 0.718 GB, free: 150.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.729e-05/1.14, allocations: 39.56 kB / 0.7181 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/1.14, allocations: 83.72 kB / 0.7181 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/1.142, allocations: 0.8482 MB / 0.719 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00409/1.146, allocations: 1.333 MB / 0.7203 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008272/1.155, allocations: 7.081 MB / 0.7272 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/1.159, allocations: 326.8 kB / 0.7275 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000856/1.16, allocations: 298.8 kB / 0.7278 GB, free: 146.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00619/1.166, allocations: 3.485 MB / 0.7312 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000989/1.167, allocations: 383.3 kB / 0.7315 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008776/1.176, allocations: 5.829 MB / 0.7372 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.577e-05/1.176, allocations: 48.7 kB / 0.7373 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/1.176, allocations: 8 kB / 0.7373 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.52e-05/1.176, allocations: 23.31 kB / 0.7373 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02317/1.199, allocations: 14.75 MB / 0.7517 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.199, allocations: 4.562 kB / 0.7517 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/1.201, allocations: 0.6748 MB / 0.7524 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00186/1.203, allocations: 0.6895 MB / 0.7531 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003646/1.204, allocations: 87.98 kB / 0.7531 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006803/1.21, allocations: 6.129 MB / 0.7591 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/1.21, allocations: 15.89 kB / 0.7591 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01044/1.221, allocations: 8.499 MB / 0.7674 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/1.223, allocations: 0.8592 MB / 0.7683 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005952/1.223, allocations: 73.56 kB / 0.7684 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/1.225, allocations: 187.8 kB / 0.7685 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/1.225, allocations: 250.7 kB / 0.7688 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.226, allocations: 119.9 kB / 0.7689 GB, free: 110.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0033/1.229, allocations: 2.303 MB / 0.7711 GB, free: 108.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.229, allocations: 0 / 0.7711 GB, free: 108.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006315/1.235, allocations: 1.511 MB / 0.7726 GB, free: 106.6 MB / 478.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007618/1.236, allocations: 246.4 kB / 0.7728 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008971/1.245, allocations: 6.361 MB / 0.7791 GB, free: 99.96 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.245, allocations: 0 / 0.7791 GB, free: 99.96 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/1.249, allocations: 2.854 MB / 0.7818 GB, free: 97.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004649/1.253, allocations: 0.8606 MB / 0.7827 GB, free: 96.25 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02762/1.281, allocations: 18.57 MB / 0.8008 GB, free: 77.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009241/1.29, allocations: 5.894 MB / 0.8066 GB, free: 71.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008624/1.299, allocations: 1.86 MB / 0.8084 GB, free: 69.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002029/1.301, allocations: 331.4 kB / 0.8087 GB, free: 69.47 MB / 478.1 MB Notification: Performance of SimCode: time 1.021e-06/1.301, allocations: 4 kB / 0.8087 GB, free: 69.47 MB / 478.1 MB Notification: Performance of Templates: time 0.1216/1.423, allocations: 56.01 MB / 0.8634 GB, free: 13.77 MB / 478.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: