Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001059/0.001059, allocations: 101.3 kB / 17.06 MB, free: 6.117 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.001003/0.001003, allocations: 200.1 kB / 18 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001229/0.001229, allocations: 51.92 kB / 327.9 MB, free: 3.246 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08292/0.08416, allocations: 46.62 MB / 374.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2188/0.303, allocations: 29.2 MB / 403.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02047/0.3235, allocations: 8.533 MB / 412.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006865/0.3304, allocations: 186.6 kB / 412.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02065/0.3512, allocations: 8.265 MB / 420.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01616/0.3674, allocations: 3.078 MB / 423.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006569/0.3739, allocations: 1.903 MB / 425.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01404/0.388, allocations: 10.5 MB / 436.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02718/0.4152, allocations: 21.46 MB / 457.6 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008353/0.4236, allocations: 5.622 MB / 463.3 MB, free: 6.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01266/0.4363, allocations: 6.369 MB / 469.6 MB, free: 268 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004369/0.4407, allocations: 1.578 MB / 471.2 MB, free: 14.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006938/0.4477, allocations: 1.933 MB / 473.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005258/0.453, allocations: 3.187 MB / 476.3 MB, free: 9.555 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01126/0.4643, allocations: 6.128 MB / 482.5 MB, free: 3.402 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02471/0.489, allocations: 21.19 MB / 0.4919 GB, free: 14.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4891, allocations: 0 / 0.4919 GB, free: 14.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4891, allocations: 0 / 0.4919 GB, free: 14.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007445/0.4898, allocations: 4 kB / 0.4919 GB, free: 14.14 MB / 430.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.03593/0.5258, allocations: 12.43 MB / 0.504 GB, free: 1.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.5258, allocations: 15.97 kB / 0.504 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04713/0.573, allocations: 8.606 MB / 0.5124 GB, free: 8.973 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0126/0.5856, allocations: 5.899 MB / 0.5182 GB, free: 3.012 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008785/0.5865, allocations: 0.7425 MB / 0.5189 GB, free: 2.266 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003536/0.5901, allocations: 0.9686 MB / 0.5199 GB, free: 1.297 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0369/0.627, allocations: 16.56 MB / 0.536 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004655/0.6275, allocations: 27.78 kB / 0.5361 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002865/0.6304, allocations: 408 kB / 0.5364 GB, free: 220 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006785/0.6311, allocations: 0.6106 MB / 0.537 GB, free: 15.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3654/0.9964, allocations: 15.97 MB / 0.5526 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08002/1.077, allocations: 51.58 MB / 0.603 GB, free: 103.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02342/1.1, allocations: 52.27 MB / 0.6541 GB, free: 49.07 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005164/1.105, allocations: 3.466 MB / 0.6574 GB, free: 47.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01561/1.121, allocations: 9.38 MB / 0.6666 GB, free: 38.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/1.121, allocations: 68.5 kB / 0.6667 GB, free: 38.75 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.61e-06/1.121, allocations: 3.938 kB / 0.6667 GB, free: 38.74 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02567/1.147, allocations: 12.93 MB / 0.6793 GB, free: 25.68 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/1.147, allocations: 77.59 kB / 0.6794 GB, free: 25.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006644/1.153, allocations: 4.068 MB / 0.6833 GB, free: 21.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000386/1.154, allocations: 69.7 kB / 0.6834 GB, free: 21.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001964/1.156, allocations: 4.63 MB / 0.6879 GB, free: 16.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008652/1.157, allocations: 0.9936 MB / 0.6889 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002072/1.159, allocations: 1.23 MB / 0.6901 GB, free: 14.54 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.604e-05/1.159, allocations: 305.1 kB / 0.6904 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003082/1.162, allocations: 2.448 MB / 0.6928 GB, free: 11.79 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004161/1.166, allocations: 5.596 MB / 0.6983 GB, free: 4.656 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009037/1.175, allocations: 8.698 MB / 0.7067 GB, free: 10.39 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.234e-05/1.175, allocations: 32 kB / 0.7068 GB, free: 10.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01512/1.19, allocations: 8.751 MB / 0.7153 GB, free: 1.551 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.107e-05/1.19, allocations: 55.94 kB / 0.7154 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/1.191, allocations: 112 kB / 0.7155 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002471/1.193, allocations: 0.8731 MB / 0.7163 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004385/1.197, allocations: 1.4 MB / 0.7177 GB, free: 15.11 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/1.208, allocations: 7.566 MB / 0.7251 GB, free: 7.395 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/1.212, allocations: 355.3 kB / 0.7254 GB, free: 7.047 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007597/1.213, allocations: 348 kB / 0.7258 GB, free: 6.707 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006071/1.219, allocations: 3.677 MB / 0.7294 GB, free: 3.016 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/1.22, allocations: 407 kB / 0.7297 GB, free: 2.613 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009463/1.23, allocations: 5.07 MB / 0.7347 GB, free: 13.48 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-05/1.23, allocations: 31.94 kB / 0.7347 GB, free: 13.45 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.713e-05/1.23, allocations: 12 kB / 0.7347 GB, free: 13.44 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-05/1.23, allocations: 15.94 kB / 0.7347 GB, free: 13.43 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02398/1.254, allocations: 12.22 MB / 0.7467 GB, free: 1.125 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/1.254, allocations: 4 kB / 0.7467 GB, free: 1.121 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00242/1.256, allocations: 0.5149 MB / 0.7472 GB, free: 0.6055 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1976/1.454, allocations: 0.7042 MB / 0.7479 GB, free: 172.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000578/1.455, allocations: 67.95 kB / 0.7479 GB, free: 172.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00869/1.463, allocations: 6.696 MB / 0.7545 GB, free: 170.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.463, allocations: 7.438 kB / 0.7545 GB, free: 170.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/1.474, allocations: 7.35 MB / 0.7617 GB, free: 167.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002015/1.476, allocations: 0.802 MB / 0.7624 GB, free: 167.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005337/1.477, allocations: 54.61 kB / 0.7625 GB, free: 167.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/1.479, allocations: 165.3 kB / 0.7627 GB, free: 167.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005698/1.479, allocations: 208.3 kB / 0.7629 GB, free: 167.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002014/1.479, allocations: 86.7 kB / 0.7629 GB, free: 167.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004454/1.484, allocations: 2.675 MB / 0.7656 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.7e-07/1.484, allocations: 2.844 kB / 0.7656 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005746/1.49, allocations: 1.544 MB / 0.7671 GB, free: 166 MB / 0.5138 GB 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 (263): * Single equations (assignments): 262 * 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): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005477/1.49, allocations: 221.9 kB / 0.7673 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009223/1.499, allocations: 6.139 MB / 0.7733 GB, free: 163.5 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.5, allocations: 3.812 kB / 0.7733 GB, free: 163.5 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003296/1.503, allocations: 2.484 MB / 0.7757 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/1.507, allocations: 0.9459 MB / 0.7766 GB, free: 162.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02254/1.529, allocations: 16.09 MB / 0.7923 GB, free: 154.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005534/1.535, allocations: 6.205 MB / 0.7984 GB, free: 149.4 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004496/1.539, allocations: 1.943 MB / 0.8003 GB, free: 148.1 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007738/1.54, allocations: 330.8 kB / 0.8006 GB, free: 147.8 MB / 0.5138 GB Notification: Performance of SimCode: time 8.02e-07/1.54, allocations: 0.7656 kB / 0.8006 GB, free: 147.8 MB / 0.5138 GB Notification: Performance of Templates: time 0.08407/1.624, allocations: 55.87 MB / 0.8552 GB, free: 93.94 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)