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.008165/0.008166, allocations: 99.52 kB / 15.73 MB, free: 6.008 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.001613/0.001613, allocations: 197.9 kB / 16.68 MB, free: 5.93 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.572/1.572, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001127/0.001127, allocations: 50.7 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08751/0.08865, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03731/0.126, allocations: 37.33 MB / 410.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02504/0.1511, allocations: 10.03 MB / 420.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007413/0.1585, allocations: 227.2 kB / 420.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02211/0.1807, allocations: 9.185 MB / 430 MB, free: 8.289 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01473/0.1955, allocations: 4.06 MB / 434 MB, free: 4.207 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008272/0.2038, allocations: 2.425 MB / 436.5 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02049/0.2243, allocations: 14.25 MB / 450.7 MB, free: 3.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2671/0.4914, allocations: 25.58 MB / 476.3 MB, free: 4.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01571/0.5072, allocations: 7.289 MB / 483.6 MB, free: 3.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01291/0.5201, allocations: 8.001 MB / 491.6 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005988/0.5261, allocations: 2.037 MB / 493.6 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008778/0.5349, allocations: 2.427 MB / 496 MB, free: 428 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008543/0.5435, allocations: 4.119 MB / 0.4884 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01558/0.5591, allocations: 7.897 MB / 0.4961 GB, free: 6.066 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03432/0.5935, allocations: 26.99 MB / 0.5225 GB, free: 14.28 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.5935, allocations: 0 / 0.5225 GB, free: 14.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5936, allocations: 4 kB / 0.5225 GB, free: 14.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007742/0.5943, allocations: 0 / 0.5225 GB, free: 14.27 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05162/0.646, allocations: 16.01 MB / 0.5381 GB, free: 14.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.646, allocations: 8.031 kB / 0.5381 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04249/0.6885, allocations: 7.4 MB / 0.5454 GB, free: 6.938 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01959/0.7082, allocations: 7.772 MB / 0.553 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001003/0.7092, allocations: 0.9174 MB / 0.5539 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004915/0.7142, allocations: 1.204 MB / 0.555 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05231/0.7665, allocations: 19.22 MB / 0.5738 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005971/0.7671, allocations: 19.8 kB / 0.5738 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004218/0.7714, allocations: 0.5013 MB / 0.5743 GB, free: 9.594 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008505/0.7722, allocations: 0.6853 MB / 0.575 GB, free: 8.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04093/0.8132, allocations: 17.68 MB / 0.5922 GB, free: 7.227 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3373/1.151, allocations: 63.12 MB / 0.6539 GB, free: 145.4 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02518/1.176, allocations: 38.67 MB / 0.6917 GB, free: 113.1 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006663/1.182, allocations: 4.172 MB / 0.6957 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01844/1.201, allocations: 12.19 MB / 0.7076 GB, free: 106.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/1.201, allocations: 81.23 kB / 0.7077 GB, free: 106.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=402): time 5.951e-06/1.201, allocations: 0 / 0.7077 GB, free: 106.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=412): time 0.03615/1.237, allocations: 20.05 MB / 0.7273 GB, free: 95.42 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/1.237, allocations: 129 kB / 0.7274 GB, free: 95.31 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008083/1.245, allocations: 5.3 MB / 0.7326 GB, free: 92.52 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001032/1.246, allocations: 93.7 kB / 0.7327 GB, free: 92.44 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003176/1.25, allocations: 5.497 MB / 0.738 GB, free: 87.65 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001638/1.251, allocations: 1.424 MB / 0.7394 GB, free: 86.43 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0019/1.253, allocations: 1.306 MB / 0.7407 GB, free: 85.67 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 7.268e-05/1.253, allocations: 301.1 kB / 0.741 GB, free: 85.38 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003779/1.257, allocations: 2.912 MB / 0.7438 GB, free: 82.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004431/1.262, allocations: 5.64 MB / 0.7494 GB, free: 75.88 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008318/1.27, allocations: 9.118 MB / 0.7583 GB, free: 65.46 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-05/1.27, allocations: 24 kB / 0.7583 GB, free: 65.44 MB / 0.5137 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01468/1.285, allocations: 9.989 MB / 0.768 GB, free: 55.38 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.699e-05/1.285, allocations: 44 kB / 0.7681 GB, free: 55.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001309/1.285, allocations: 88 kB / 0.7682 GB, free: 55.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002752/1.288, allocations: 1.14 MB / 0.7693 GB, free: 54.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005387/1.293, allocations: 1.529 MB / 0.7708 GB, free: 52.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0135/1.307, allocations: 13.47 MB / 0.7839 GB, free: 38.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006599/1.313, allocations: 367.7 kB / 0.7843 GB, free: 38.18 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001493/1.315, allocations: 352 kB / 0.7846 GB, free: 37.84 MB / 0.5137 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.00802/1.323, allocations: 4.284 MB / 0.7888 GB, free: 33.54 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001759/1.324, allocations: 0.5442 MB / 0.7893 GB, free: 32.99 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.336, allocations: 7.112 MB / 0.7963 GB, free: 25.77 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006019/1.342, allocations: 4.226 MB / 0.8004 GB, free: 21.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.345e-05/1.343, allocations: 12 kB / 0.8004 GB, free: 21.49 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.582e-05/1.343, allocations: 19.92 kB / 0.8004 GB, free: 21.47 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02938/1.372, allocations: 17.04 MB / 0.8171 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/1.372, allocations: 4 kB / 0.8171 GB, free: 4.309 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002662/1.375, allocations: 0.6826 MB / 0.8177 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002869/1.378, allocations: 1.186 MB / 0.8189 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003019/1.378, allocations: 103.9 kB / 0.819 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01853/1.396, allocations: 17.38 MB / 0.836 GB, free: 120 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.396, allocations: 7.938 kB / 0.836 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2317/1.628, allocations: 10.28 MB / 0.846 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003559/1.632, allocations: 1.121 MB / 0.8471 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008158/1.633, allocations: 85.23 kB / 0.8472 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/1.635, allocations: 215.3 kB / 0.8474 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006943/1.636, allocations: 303 kB / 0.8477 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/1.636, allocations: 125.3 kB / 0.8478 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005519/1.641, allocations: 3.544 MB / 0.8513 GB, free: 170 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/1.641, allocations: 3.281 kB / 0.8513 GB, free: 170 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006573/1.648, allocations: 1.989 MB / 0.8532 GB, free: 169.8 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.000649/1.649, allocations: 280.7 kB / 0.8535 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01101/1.66, allocations: 7.829 MB / 0.8611 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.66, allocations: 7.906 kB / 0.8611 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005887/1.666, allocations: 4.075 MB / 0.8651 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007173/1.673, allocations: 1.448 MB / 0.8665 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03715/1.71, allocations: 20.65 MB / 0.8867 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007689/1.718, allocations: 7.451 MB / 0.894 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00553/1.723, allocations: 2.079 MB / 0.896 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/1.725, allocations: 417.9 kB / 0.8964 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.623e-06/1.725, allocations: 0 / 0.8964 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1278/1.852, allocations: 80.95 MB / 0.9754 GB, free: 70.33 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)