Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001252, allocations: 99.23 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004287/0.0004288, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.195, allocations: 47.59 MB / 326.5 MB, free: 1.465 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02315/0.2182, allocations: 23.41 MB / 349.9 MB, free: 12.03 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01725/0.2354, allocations: 8.134 MB / 358 MB, free: 3.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004849/0.2403, allocations: 171.4 kB / 358.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005929/0.2463, allocations: 1.71 MB / 359.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009706/0.256, allocations: 2.925 MB / 362.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004765/0.2608, allocations: 1.435 MB / 364.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01331/0.2741, allocations: 8.337 MB / 372.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03353/0.3077, allocations: 17.25 MB / 389.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006233/0.314, allocations: 3.703 MB / 393.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007317/0.3213, allocations: 4.245 MB / 397.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002199/0.3236, allocations: 0.6055 MB / 398.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003837/0.3274, allocations: 0.9135 MB / 399.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003044/0.3305, allocations: 1.904 MB / 401.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003264/0.3338, allocations: 2.044 MB / 403.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01791/0.3517, allocations: 17.77 MB / 421 MB, free: 4.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3517, allocations: 0 / 421 MB, free: 4.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3517, allocations: 0 / 421 MB, free: 4.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004693/0.3522, allocations: 0 / 421 MB, free: 4.641 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02699/0.3792, allocations: 10.31 MB / 431.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3793, allocations: 11.97 kB / 431.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04633/0.4256, allocations: 8.501 MB / 439.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/0.4399, allocations: 5.854 MB / 445.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006633/0.4407, allocations: 0.7386 MB / 446.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003805/0.4445, allocations: 0.9724 MB / 447.4 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3195/0.764, allocations: 16.4 MB / 463.8 MB, free: 89.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002372/0.7643, allocations: 18.06 kB / 463.8 MB, free: 89.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001528/0.7658, allocations: 407.6 kB / 464.2 MB, free: 89.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005087/0.7664, allocations: 0.6091 MB / 464.8 MB, free: 88.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02662/0.793, allocations: 15.88 MB / 480.7 MB, free: 81.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06466/0.8577, allocations: 52.2 MB / 0.5204 GB, free: 32.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02903/0.8867, allocations: 52.19 MB / 0.5714 GB, free: 5.039 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01697/0.9038, allocations: 9.617 MB / 0.5808 GB, free: 11.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/0.9039, allocations: 64.78 kB / 0.5809 GB, free: 11.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 4.318e-06/0.9039, allocations: 0 / 0.5809 GB, free: 11.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.02399/0.9279, allocations: 12.85 MB / 0.5934 GB, free: 14.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.928, allocations: 85.69 kB / 0.5935 GB, free: 14.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005343/0.9333, allocations: 3.994 MB / 0.5974 GB, free: 10.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002298/0.9336, allocations: 73.7 kB / 0.5974 GB, free: 10.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002697/0.9363, allocations: 4.62 MB / 0.602 GB, free: 5.508 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007869/0.9371, allocations: 1.028 MB / 0.603 GB, free: 4.488 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.9373, allocations: 124 kB / 0.6031 GB, free: 4.367 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003457/0.9377, allocations: 0.5465 MB / 0.6036 GB, free: 3.812 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003451/0.9411, allocations: 2.464 MB / 0.606 GB, free: 1.344 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005356/0.9465, allocations: 5.591 MB / 0.6115 GB, free: 10.22 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004795/0.9513, allocations: 3.767 MB / 0.6152 GB, free: 6.434 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.073e-05/0.9514, allocations: 35.94 kB / 0.6152 GB, free: 6.398 MB / 462.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.1832/1.135, allocations: 8.774 MB / 0.6238 GB, free: 152.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-05/1.135, allocations: 52.28 kB / 0.6238 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/1.135, allocations: 109.8 kB / 0.6239 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/1.137, allocations: 0.8543 MB / 0.6248 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/1.142, allocations: 1.425 MB / 0.6261 GB, free: 152.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008014/1.15, allocations: 7.162 MB / 0.6331 GB, free: 149.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004262/1.154, allocations: 352.2 kB / 0.6335 GB, free: 149.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000569/1.154, allocations: 353.3 kB / 0.6338 GB, free: 149.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * 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 (742): * Single equations (assignments): 741 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00514/1.16, allocations: 3.678 MB / 0.6374 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008774/1.161, allocations: 406.3 kB / 0.6378 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007526/1.168, allocations: 5.18 MB / 0.6428 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.018e-05/1.168, allocations: 29.75 kB / 0.6429 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/1.168, allocations: 7.875 kB / 0.6429 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.531e-05/1.168, allocations: 19.19 kB / 0.6429 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01742/1.186, allocations: 12.41 MB / 0.655 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.914e-05/1.186, allocations: 3.344 kB / 0.655 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0021/1.188, allocations: 0.5432 MB / 0.6556 GB, free: 141.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001667/1.189, allocations: 0.6852 MB / 0.6562 GB, free: 140.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001622/1.19, allocations: 69.72 kB / 0.6563 GB, free: 140.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006924/1.197, allocations: 6.305 MB / 0.6624 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.197, allocations: 7.359 kB / 0.6625 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008907/1.205, allocations: 7.842 MB / 0.6701 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001961/1.207, allocations: 0.8369 MB / 0.6709 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005253/1.208, allocations: 56 kB / 0.671 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001654/1.21, allocations: 175.7 kB / 0.6711 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/1.21, allocations: 209.5 kB / 0.6713 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/1.21, allocations: 87.98 kB / 0.6714 GB, free: 129.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003185/1.213, allocations: 2.622 MB / 0.674 GB, free: 126.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.213, allocations: 0 / 0.674 GB, free: 126.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004983/1.218, allocations: 1.554 MB / 0.6755 GB, free: 125.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.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 (274): * Single equations (assignments): 273 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004378/1.219, allocations: 234.6 kB / 0.6757 GB, free: 124.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007832/1.227, allocations: 6.176 MB / 0.6818 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.227, allocations: 448 / 0.6818 GB, free: 118.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003245/1.23, allocations: 2.519 MB / 0.6842 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/1.233, allocations: 0.856 MB / 0.6851 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02252/1.256, allocations: 19.27 MB / 0.7039 GB, free: 96.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004773/1.261, allocations: 6.36 MB / 0.7101 GB, free: 89.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004926/1.266, allocations: 1.975 MB / 0.712 GB, free: 87.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000791/1.267, allocations: 327.4 kB / 0.7123 GB, free: 87.36 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/1.267, allocations: 0 / 0.7123 GB, free: 87.36 MB / 462.1 MB Notification: Performance of Templates: time 0.07742/1.344, allocations: 54.87 MB / 0.7659 GB, free: 32.47 MB / 462.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) Environment - environmentSimulation: