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_Mains.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_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007977/0.007977, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.001693/0.001692, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.499/1.499, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.002041/0.002041, allocations: 50.72 kB / 326.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1144, allocations: 46.62 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03961/0.154, allocations: 37.33 MB / 410.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02498/0.1791, allocations: 10.02 MB / 420.6 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00899/0.1881, allocations: 231.2 kB / 420.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02101/0.2092, allocations: 9.099 MB / 429.9 MB, free: 8.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01393/0.2231, allocations: 3.962 MB / 433.8 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008324/0.2315, allocations: 2.421 MB / 436.3 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02103/0.2525, allocations: 14.26 MB / 450.5 MB, free: 3.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2466/0.4991, allocations: 25.58 MB / 476.1 MB, free: 4.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01108/0.5103, allocations: 7.245 MB / 483.4 MB, free: 4.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01189/0.5222, allocations: 7.999 MB / 491.4 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005379/0.5276, allocations: 2.039 MB / 493.4 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01142/0.5391, allocations: 2.434 MB / 495.8 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0142/0.5533, allocations: 4.797 MB / 0.4889 GB, free: 0 / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01734/0.5707, allocations: 7.923 MB / 0.4966 GB, free: 8.676 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03624/0.607, allocations: 26.99 MB / 0.523 GB, free: 284 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.607, allocations: 4 kB / 0.523 GB, free: 280 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6071, allocations: 0 / 0.523 GB, free: 280 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007736/0.6078, allocations: 0 / 0.523 GB, free: 280 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05426/0.6621, allocations: 16.01 MB / 0.5386 GB, free: 272 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.6622, allocations: 12.03 kB / 0.5386 GB, free: 260 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04313/0.7053, allocations: 7.398 MB / 0.5459 GB, free: 8.922 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02076/0.7261, allocations: 7.766 MB / 0.5534 GB, free: 1.465 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00106/0.7272, allocations: 0.9133 MB / 0.5543 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005572/0.7328, allocations: 1.213 MB / 0.5555 GB, free: 15.36 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04747/0.7803, allocations: 19.23 MB / 0.5743 GB, free: 12.09 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007515/0.7811, allocations: 11.89 kB / 0.5743 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005606/0.7867, allocations: 0.497 MB / 0.5748 GB, free: 11.59 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008731/0.7876, allocations: 0.6888 MB / 0.5755 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04078/0.8284, allocations: 17.68 MB / 0.5927 GB, free: 9.215 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5298/1.358, allocations: 63.11 MB / 0.6544 GB, free: 142.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02735/1.386, allocations: 38.67 MB / 0.6921 GB, free: 110.5 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005885/1.392, allocations: 4.178 MB / 0.6962 GB, free: 110.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0204/1.412, allocations: 12.2 MB / 0.7081 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/1.412, allocations: 76.8 kB / 0.7082 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 6.092e-06/1.412, allocations: 0 / 0.7082 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.04013/1.452, allocations: 20.05 MB / 0.7278 GB, free: 93.12 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/1.452, allocations: 125.4 kB / 0.7279 GB, free: 93.02 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00834/1.461, allocations: 5.305 MB / 0.7331 GB, free: 90.22 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0009534/1.462, allocations: 97.17 kB / 0.7332 GB, free: 90.14 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002905/1.465, allocations: 5.495 MB / 0.7385 GB, free: 85.35 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001985/1.467, allocations: 1.426 MB / 0.7399 GB, free: 84.12 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002226/1.469, allocations: 1.31 MB / 0.7412 GB, free: 83.36 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.815e-05/1.469, allocations: 303.8 kB / 0.7415 GB, free: 83.07 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004026/1.473, allocations: 2.903 MB / 0.7443 GB, free: 81.52 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005419/1.478, allocations: 5.641 MB / 0.7498 GB, free: 74.7 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009209/1.488, allocations: 9.111 MB / 0.7587 GB, free: 64.29 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.09e-05/1.488, allocations: 28 kB / 0.7588 GB, free: 64.26 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01564/1.503, allocations: 9.985 MB / 0.7685 GB, free: 54.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.271e-05/1.503, allocations: 49.16 kB / 0.7686 GB, free: 54.16 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001137/1.504, allocations: 92 kB / 0.7686 GB, free: 54.07 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/1.506, allocations: 1.122 MB / 0.7697 GB, free: 52.93 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005236/1.512, allocations: 1.533 MB / 0.7712 GB, free: 51.39 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/1.525, allocations: 13.47 MB / 0.7844 GB, free: 37.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00619/1.531, allocations: 375.7 kB / 0.7848 GB, free: 37 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001167/1.532, allocations: 340 kB / 0.7851 GB, free: 36.66 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008607/1.541, allocations: 4.302 MB / 0.7893 GB, free: 32.35 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001645/1.543, allocations: 0.5364 MB / 0.7898 GB, free: 31.81 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/1.555, allocations: 7.101 MB / 0.7967 GB, free: 24.6 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00672/1.562, allocations: 4.23 MB / 0.8009 GB, free: 20.32 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-05/1.562, allocations: 16 kB / 0.8009 GB, free: 20.31 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.957e-05/1.562, allocations: 19.92 kB / 0.8009 GB, free: 20.29 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02842/1.59, allocations: 17.03 MB / 0.8175 GB, free: 3.137 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.59, allocations: 4 kB / 0.8175 GB, free: 3.133 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002924/1.593, allocations: 0.6866 MB / 0.8182 GB, free: 2.445 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003105/1.596, allocations: 1.197 MB / 0.8194 GB, free: 1.23 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005013/1.597, allocations: 99.97 kB / 0.8195 GB, free: 1.133 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2348/1.832, allocations: 17.36 MB / 0.8364 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/1.832, allocations: 7.219 kB / 0.8364 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/1.849, allocations: 10.29 MB / 0.8465 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002962/1.852, allocations: 1.121 MB / 0.8476 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008684/1.853, allocations: 83.27 kB / 0.8477 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/1.855, allocations: 211.3 kB / 0.8479 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008049/1.856, allocations: 307.6 kB / 0.8482 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003305/1.857, allocations: 120.6 kB / 0.8483 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006388/1.863, allocations: 3.545 MB / 0.8517 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/1.863, allocations: 1.094 kB / 0.8517 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008193/1.871, allocations: 1.99 MB / 0.8537 GB, free: 166 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001019/1.872, allocations: 279.9 kB / 0.8539 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.884, allocations: 7.844 MB / 0.8616 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.884, allocations: 3.969 kB / 0.8616 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006512/1.89, allocations: 4.073 MB / 0.8656 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007461/1.898, allocations: 1.451 MB / 0.867 GB, free: 160 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03006/1.928, allocations: 20.65 MB / 0.8872 GB, free: 150.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006909/1.935, allocations: 7.45 MB / 0.8944 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005516/1.94, allocations: 2.078 MB / 0.8965 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/1.941, allocations: 417.1 kB / 0.8969 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/1.941, allocations: 4 kB / 0.8969 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1231/2.064, allocations: 80.94 MB / 0.9759 GB, free: 66.15 MB / 0.5294 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)