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.001064/0.001064, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001115/0.001115, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.296/1.296, allocations: 205.1 MB / 222 MB, free: 4.77 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.001158/0.001159, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2149, allocations: 46.63 MB / 324.7 MB, free: 2.176 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.0342/0.2492, allocations: 36.67 MB / 361.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01912/0.2683, allocations: 9.91 MB / 371.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007563/0.2759, allocations: 227.2 kB / 371.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02016/0.2961, allocations: 8.533 MB / 380 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.3084, allocations: 3.619 MB / 383.7 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006712/0.3151, allocations: 2.23 MB / 385.9 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01806/0.3332, allocations: 14.53 MB / 400.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03358/0.3668, allocations: 20.9 MB / 421.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008045/0.3749, allocations: 6.183 MB / 427.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009875/0.3848, allocations: 7.574 MB / 435.1 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003144/0.388, allocations: 1.297 MB / 436.4 MB, free: 4.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004674/0.3927, allocations: 1.703 MB / 438.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003433/0.3961, allocations: 3.318 MB / 441.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01212/0.4083, allocations: 7.113 MB / 448.5 MB, free: 7.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3263/0.7346, allocations: 26.32 MB / 474.8 MB, free: 45.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.7346, allocations: 0 / 474.8 MB, free: 45.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.7347, allocations: 0.8125 kB / 474.8 MB, free: 45.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008235/0.7355, allocations: 2.969 kB / 474.8 MB, free: 45.49 MB / 382.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.0547/0.7902, allocations: 16.06 MB / 490.9 MB, free: 38.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.7903, allocations: 15.48 kB / 490.9 MB, free: 38.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04013/0.8304, allocations: 7.364 MB / 498.3 MB, free: 35.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01748/0.8479, allocations: 7.696 MB / 0.4941 GB, free: 32.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001085/0.849, allocations: 0.9173 MB / 0.495 GB, free: 31.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005735/0.8548, allocations: 1.213 MB / 0.4962 GB, free: 30.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04249/0.8973, allocations: 19.24 MB / 0.515 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005308/0.8979, allocations: 27.36 kB / 0.515 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003908/0.9018, allocations: 0.5023 MB / 0.5155 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000562/0.9024, allocations: 0.6776 MB / 0.5162 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03242/0.9348, allocations: 17.69 MB / 0.5334 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09911/1.034, allocations: 63.89 MB / 0.5958 GB, free: 8.137 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2025/1.237, allocations: 38.69 MB / 0.6336 GB, free: 154.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005954/1.242, allocations: 4.242 MB / 0.6378 GB, free: 154.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01778/1.26, allocations: 12.35 MB / 0.6498 GB, free: 149.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/1.26, allocations: 79.72 kB / 0.6499 GB, free: 149.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=408): time 5.951e-06/1.26, allocations: 0 / 0.6499 GB, free: 149.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=418): time 0.03655/1.297, allocations: 20.26 MB / 0.6697 GB, free: 139.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.297, allocations: 120.4 kB / 0.6698 GB, free: 139.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006915/1.304, allocations: 5.312 MB / 0.675 GB, free: 135 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007632/1.305, allocations: 89.7 kB / 0.6751 GB, free: 134.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002422/1.307, allocations: 5.485 MB / 0.6804 GB, free: 130 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001369/1.309, allocations: 1.454 MB / 0.6818 GB, free: 128.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001846/1.31, allocations: 1.313 MB / 0.6831 GB, free: 127.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.481e-05/1.31, allocations: 305.1 kB / 0.6834 GB, free: 127.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00392/1.314, allocations: 2.948 MB / 0.6863 GB, free: 124.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004981/1.319, allocations: 5.674 MB / 0.6918 GB, free: 118.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009569/1.329, allocations: 9.187 MB / 0.7008 GB, free: 108.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-05/1.329, allocations: 28 kB / 0.7008 GB, free: 108.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01572/1.345, allocations: 10.08 MB / 0.7107 GB, free: 98.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/1.345, allocations: 44 kB / 0.7107 GB, free: 98.37 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-05/1.345, allocations: 88 kB / 0.7108 GB, free: 98.29 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/1.348, allocations: 1.121 MB / 0.7119 GB, free: 97.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005095/1.353, allocations: 1.533 MB / 0.7134 GB, free: 95.62 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/1.365, allocations: 12.54 MB / 0.7256 GB, free: 82.54 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/1.371, allocations: 367.5 kB / 0.726 GB, free: 82.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/1.372, allocations: 347.9 kB / 0.7263 GB, free: 81.84 MB / 478.1 MB 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 (806): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006906/1.379, allocations: 4.298 MB / 0.7305 GB, free: 77.53 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001534/1.38, allocations: 0.5364 MB / 0.731 GB, free: 76.98 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/1.391, allocations: 7.189 MB / 0.7381 GB, free: 69.69 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005446/1.396, allocations: 4.314 MB / 0.7423 GB, free: 65.33 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/1.396, allocations: 12 kB / 0.7423 GB, free: 65.32 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.925e-05/1.396, allocations: 23.92 kB / 0.7423 GB, free: 65.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02404/1.42, allocations: 17.16 MB / 0.7591 GB, free: 48 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-05/1.421, allocations: 4 kB / 0.7591 GB, free: 47.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/1.423, allocations: 0.6948 MB / 0.7598 GB, free: 47.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003051/1.426, allocations: 1.17 MB / 0.7609 GB, free: 46.11 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004298/1.427, allocations: 107.9 kB / 0.761 GB, free: 46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0139/1.441, allocations: 16.01 MB / 0.7766 GB, free: 29.21 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.441, allocations: 8 kB / 0.7766 GB, free: 29.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01376/1.455, allocations: 10.42 MB / 0.7868 GB, free: 18.62 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002602/1.457, allocations: 1.127 MB / 0.7879 GB, free: 17.47 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001055/1.458, allocations: 91.92 kB / 0.788 GB, free: 17.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002601/1.461, allocations: 207.8 kB / 0.7882 GB, free: 17.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006727/1.462, allocations: 303.4 kB / 0.7885 GB, free: 16.88 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/1.462, allocations: 124 kB / 0.7886 GB, free: 16.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005234/1.467, allocations: 3.546 MB / 0.7921 GB, free: 13.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.467, allocations: 0 / 0.7921 GB, free: 13.23 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008388/1.476, allocations: 1.998 MB / 0.794 GB, free: 11.23 MB / 478.1 MB 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001053/1.477, allocations: 288.7 kB / 0.7943 GB, free: 10.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01196/1.489, allocations: 7.893 MB / 0.802 GB, free: 2.988 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/1.489, allocations: 4 kB / 0.802 GB, free: 2.984 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.175/1.664, allocations: 4.123 MB / 0.806 GB, free: 161.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007614/1.671, allocations: 1.365 MB / 0.8074 GB, free: 161.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03384/1.705, allocations: 26.08 MB / 0.8328 GB, free: 150.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007448/1.713, allocations: 7.461 MB / 0.8401 GB, free: 148.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006744/1.72, allocations: 2.08 MB / 0.8422 GB, free: 148.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/1.721, allocations: 414.5 kB / 0.8426 GB, free: 148.2 MB / 478.1 MB Notification: Performance of SimCode: time 7.91e-07/1.721, allocations: 0 / 0.8426 GB, free: 148.2 MB / 478.1 MB Notification: Performance of Templates: time 0.1201/1.841, allocations: 83.16 MB / 0.9238 GB, free: 68.86 MB / 478.1 MB 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)