Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00159/0.00159, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009385/0.0009385, allocations: 97.5 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009263/0.0009264, allocations: 51.92 kB / 356.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.185, allocations: 50.44 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.01762/0.2026, allocations: 24.24 MB / 431.3 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01257/0.2153, allocations: 7.799 MB / 439.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004087/0.2194, allocations: 159.6 kB / 439.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01199/0.2314, allocations: 5.354 MB / 444.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007344/0.2388, allocations: 2.364 MB / 447 MB, free: 3.742 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004582/0.2434, allocations: 1.722 MB / 448.7 MB, free: 2.027 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009517/0.2529, allocations: 8.023 MB / 456.7 MB, free: 9.973 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01882/0.2718, allocations: 12.17 MB / 468.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005349/0.2772, allocations: 3.454 MB / 472.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005866/0.2831, allocations: 4.317 MB / 476.7 MB, free: 5.863 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002332/0.2854, allocations: 0.7304 MB / 477.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003549/0.289, allocations: 1.086 MB / 478.5 MB, free: 4.047 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002735/0.2917, allocations: 1.85 MB / 480.3 MB, free: 2.191 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006782/0.2985, allocations: 3.928 MB / 484.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01436/0.3129, allocations: 14.68 MB / 499 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.313, allocations: 0 / 499 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.313, allocations: 7.938 kB / 499 MB, free: 15.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003315/0.3133, allocations: 0 / 499 MB, free: 15.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02505/0.3384, allocations: 9.221 MB / 0.4963 GB, free: 6.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3384, allocations: 16.03 kB / 0.4963 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02772/0.3662, allocations: 5.306 MB / 0.5015 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1846/0.5508, allocations: 4.604 MB / 0.506 GB, free: 79.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004142/0.5513, allocations: 0.5079 MB / 0.5065 GB, free: 79.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002461/0.5538, allocations: 0.677 MB / 0.5071 GB, free: 79.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02553/0.5793, allocations: 11.15 MB / 0.518 GB, free: 75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/0.5797, allocations: 12.69 kB / 0.518 GB, free: 74.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001835/0.5815, allocations: 282.5 kB / 0.5183 GB, free: 74.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000554/0.5821, allocations: 426.7 kB / 0.5187 GB, free: 74.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01925/0.6013, allocations: 10.72 MB / 0.5292 GB, free: 66.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05189/0.6533, allocations: 36.25 MB / 0.5646 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009157/0.6625, allocations: 11.9 MB / 0.5762 GB, free: 16.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003688/0.6662, allocations: 2.833 MB / 0.579 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003925/0.6666, allocations: 252.3 kB / 0.5792 GB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/0.6667, allocations: 69.44 kB / 0.5793 GB, free: 13.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=365): time 6.502e-06/0.6667, allocations: 4 kB / 0.5793 GB, free: 13.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.03464/0.7013, allocations: 15.71 MB / 0.5946 GB, free: 13.39 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.7014, allocations: 124 kB / 0.5947 GB, free: 13.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004636/0.7061, allocations: 2.781 MB / 0.5974 GB, free: 10.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002898/0.7064, allocations: 89.7 kB / 0.5975 GB, free: 10.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.7081, allocations: 2.88 MB / 0.6003 GB, free: 7.457 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/0.7092, allocations: 1.259 MB / 0.6016 GB, free: 6.207 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001616/0.7108, allocations: 0.8983 MB / 0.6024 GB, free: 5.297 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.711e-05/0.7109, allocations: 309.1 kB / 0.6027 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00362/0.7145, allocations: 2.31 MB / 0.605 GB, free: 2.664 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004493/0.719, allocations: 3.912 MB / 0.6088 GB, free: 14.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008369/0.7274, allocations: 6.691 MB / 0.6154 GB, free: 6.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-05/0.7275, allocations: 16 kB / 0.6154 GB, free: 6.574 MB / 410.7 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.01128/0.7388, allocations: 7.076 MB / 0.6223 GB, free: 15.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/0.7388, allocations: 30.75 kB / 0.6223 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.781e-05/0.7389, allocations: 52 kB / 0.6224 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003544/0.7425, allocations: 1.222 MB / 0.6236 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003648/0.7461, allocations: 1.061 MB / 0.6246 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003187/0.7493, allocations: 2.349 MB / 0.6269 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003077/0.7524, allocations: 295.5 kB / 0.6272 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004643/0.7529, allocations: 224 kB / 0.6274 GB, free: 10.22 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006786/0.7597, allocations: 4.512 MB / 0.6318 GB, free: 5.699 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004445/0.7642, allocations: 3.895 MB / 0.6356 GB, free: 1.062 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008525/0.7727, allocations: 6.679 MB / 0.6421 GB, free: 9.645 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.906e-05/0.7728, allocations: 12 kB / 0.6421 GB, free: 9.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01146/0.7842, allocations: 7.041 MB / 0.649 GB, free: 2.555 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.605e-05/0.7843, allocations: 24 kB / 0.649 GB, free: 2.531 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.151e-05/0.7844, allocations: 52 kB / 0.6491 GB, free: 2.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003465/0.7879, allocations: 1.166 MB / 0.6502 GB, free: 1.312 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004157/0.792, allocations: 1.072 MB / 0.6513 GB, free: 244 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/0.795, allocations: 2.276 MB / 0.6535 GB, free: 13.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003153/0.7981, allocations: 279.7 kB / 0.6537 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005384/0.7987, allocations: 224 kB / 0.654 GB, free: 13.44 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.0009362/0.7996, allocations: 493.6 kB / 0.6544 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008698/0.8005, allocations: 351.7 kB / 0.6548 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009901/0.8104, allocations: 5.847 MB / 0.6605 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/0.8105, allocations: 40 kB / 0.6605 GB, free: 6.684 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.8105, allocations: 3.938 kB / 0.6605 GB, free: 6.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/0.8105, allocations: 19.92 kB / 0.6605 GB, free: 6.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02153/0.832, allocations: 12.88 MB / 0.6731 GB, free: 9.672 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.8321, allocations: 0 / 0.6731 GB, free: 9.672 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002679/0.8348, allocations: 0.667 MB / 0.6738 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/0.8379, allocations: 0.9663 MB / 0.6747 GB, free: 8.035 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003005/0.8382, allocations: 91.91 kB / 0.6748 GB, free: 7.945 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.8409, allocations: 2.041 MB / 0.6768 GB, free: 5.883 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8409, allocations: 4.188 kB / 0.6768 GB, free: 5.879 MB / 474.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2258/1.067, allocations: 22.96 MB / 0.6992 GB, free: 152.8 MB / 474.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.