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.001827/0.001827, allocations: 115.9 kB / 16.63 MB, free: 6.812 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.00196/0.00196, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.412/1.412, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.00113/0.00113, allocations: 51.92 kB / 279.5 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.07993, allocations: 46.63 MB / 326.2 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02745/0.1074, allocations: 28.69 MB / 354.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.1229, allocations: 8.432 MB / 363.3 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004953/0.1279, allocations: 171.4 kB / 363.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01662/0.1445, allocations: 7.744 MB / 371.2 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009153/0.1537, allocations: 2.753 MB / 373.9 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005684/0.1594, allocations: 1.774 MB / 375.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1669/0.3263, allocations: 10.44 MB / 386.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02891/0.3553, allocations: 24.79 MB / 410.9 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01423/0.3696, allocations: 6.137 MB / 417.1 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01256/0.3822, allocations: 6.538 MB / 423.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005917/0.3881, allocations: 1.578 MB / 425.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008806/0.397, allocations: 1.949 MB / 427.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006326/0.4034, allocations: 3.189 MB / 430.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01279/0.4162, allocations: 6.125 MB / 436.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02357/0.4398, allocations: 21.07 MB / 457.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4399, allocations: 0 / 457.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4399, allocations: 0 / 457.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005774/0.4405, allocations: 0 / 457.5 MB, free: 9.848 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03838/0.4788, allocations: 12.49 MB / 470 MB, free: 13.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.4789, allocations: 11.69 kB / 470 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04535/0.5243, allocations: 8.572 MB / 478.6 MB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0114/0.5357, allocations: 5.889 MB / 484.5 MB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005792/0.5363, allocations: 0.7463 MB / 485.2 MB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/0.5399, allocations: 0.9752 MB / 486.2 MB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03533/0.5753, allocations: 16.56 MB / 0.491 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002355/0.5755, allocations: 26.53 kB / 0.491 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001371/0.5769, allocations: 412 kB / 0.4914 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005543/0.5775, allocations: 0.6067 MB / 0.492 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02998/0.6075, allocations: 15.95 MB / 0.5076 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3461/0.9536, allocations: 52.12 MB / 0.5585 GB, free: 120.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02441/0.978, allocations: 52.24 MB / 0.6095 GB, free: 70.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004625/0.9827, allocations: 3.47 MB / 0.6129 GB, free: 69.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01209/0.9948, allocations: 9.417 MB / 0.6221 GB, free: 64.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.9949, allocations: 63.94 kB / 0.6221 GB, free: 63.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 3.977e-06/0.9949, allocations: 3.781 kB / 0.6221 GB, free: 63.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02112/1.016, allocations: 12.87 MB / 0.6347 GB, free: 56.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/1.016, allocations: 86.62 kB / 0.6348 GB, free: 56.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004546/1.021, allocations: 4.06 MB / 0.6388 GB, free: 54.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/1.021, allocations: 71.23 kB / 0.6388 GB, free: 54.11 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001709/1.023, allocations: 4.634 MB / 0.6434 GB, free: 50.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000544/1.023, allocations: 0.9928 MB / 0.6443 GB, free: 49.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/1.024, allocations: 1.23 MB / 0.6455 GB, free: 48.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.365e-05/1.024, allocations: 301.1 kB / 0.6458 GB, free: 48.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/1.027, allocations: 2.444 MB / 0.6482 GB, free: 46.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003645/1.031, allocations: 5.601 MB / 0.6537 GB, free: 39.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006923/1.038, allocations: 8.682 MB / 0.6621 GB, free: 29.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.675e-05/1.038, allocations: 32 kB / 0.6622 GB, free: 29.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01197/1.05, allocations: 8.745 MB / 0.6707 GB, free: 20.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.034e-05/1.05, allocations: 52 kB / 0.6708 GB, free: 20.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/1.05, allocations: 112 kB / 0.6709 GB, free: 20.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/1.052, allocations: 0.8564 MB / 0.6717 GB, free: 19.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003909/1.056, allocations: 1.408 MB / 0.6731 GB, free: 18.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008008/1.064, allocations: 7.504 MB / 0.6804 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/1.068, allocations: 355.2 kB / 0.6808 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004098/1.068, allocations: 352 kB / 0.6811 GB, free: 9.746 MB / 446.1 MB 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.004342/1.073, allocations: 3.684 MB / 0.6847 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006981/1.073, allocations: 403 kB / 0.6851 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007041/1.08, allocations: 5.069 MB / 0.69 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/1.08, allocations: 31.94 kB / 0.69 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/1.08, allocations: 8 kB / 0.6901 GB, free: 496 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/1.08, allocations: 19.88 kB / 0.6901 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01817/1.099, allocations: 12.18 MB / 0.702 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/1.099, allocations: 8 kB / 0.702 GB, free: 4.191 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002177/1.101, allocations: 0.5187 MB / 0.7025 GB, free: 3.672 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001857/1.103, allocations: 0.6997 MB / 0.7032 GB, free: 2.969 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/1.103, allocations: 71.92 kB / 0.7032 GB, free: 2.898 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1633/1.266, allocations: 6.636 MB / 0.7097 GB, free: 148.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.266, allocations: 4.062 kB / 0.7097 GB, free: 148.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01069/1.277, allocations: 7.316 MB / 0.7169 GB, free: 146.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.279, allocations: 0.8041 MB / 0.7177 GB, free: 146.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.279, allocations: 57.73 kB / 0.7177 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/1.281, allocations: 169.1 kB / 0.7179 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004676/1.281, allocations: 208.5 kB / 0.7181 GB, free: 146.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002102/1.282, allocations: 84.67 kB / 0.7182 GB, free: 146.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003963/1.286, allocations: 2.67 MB / 0.7208 GB, free: 145.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.286, allocations: 1.375 kB / 0.7208 GB, free: 145.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005749/1.291, allocations: 1.557 MB / 0.7223 GB, free: 145 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 (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.0005359/1.292, allocations: 220 kB / 0.7225 GB, free: 144.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01571/1.308, allocations: 9.102 MB / 0.7314 GB, free: 142.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/1.308, allocations: 0 / 0.7314 GB, free: 142.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003385/1.311, allocations: 2.47 MB / 0.7338 GB, free: 141.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00448/1.316, allocations: 0.9454 MB / 0.7347 GB, free: 141.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02766/1.343, allocations: 20.39 MB / 0.7546 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006826/1.35, allocations: 6.202 MB / 0.7607 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005066/1.355, allocations: 1.951 MB / 0.7626 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008937/1.356, allocations: 322.5 kB / 0.7629 GB, free: 121.6 MB / 462.1 MB Notification: Performance of SimCode: time 7.21e-07/1.356, allocations: 0 / 0.7629 GB, free: 121.6 MB / 462.1 MB Notification: Performance of Templates: time 0.08347/1.44, allocations: 58.86 MB / 0.8204 GB, free: 63.46 MB / 462.1 MB 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)