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_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.2_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.2_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.001463/0.001463, allocations: 111.4 kB / 16.51 MB, free: 6.715 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.001644/0.001645, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.291/1.291, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001214/0.001214, allocations: 47.94 kB / 279.4 MB, free: 3.562 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08254/0.08376, allocations: 46.61 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03592/0.1197, allocations: 36.68 MB / 362.7 MB, free: 32 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01928/0.139, allocations: 9.912 MB / 372.6 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006698/0.1458, allocations: 223.2 kB / 372.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1658/0.3116, allocations: 8.535 MB / 381.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0109/0.3225, allocations: 3.602 MB / 384.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005789/0.3283, allocations: 2.261 MB / 387.2 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01731/0.3457, allocations: 14.51 MB / 401.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02753/0.3732, allocations: 20.9 MB / 422.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009858/0.3831, allocations: 6.185 MB / 428.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01202/0.3952, allocations: 7.57 MB / 436.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004621/0.3998, allocations: 1.297 MB / 437.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007995/0.4079, allocations: 1.699 MB / 439.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005571/0.4135, allocations: 3.322 MB / 442.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01464/0.4281, allocations: 7.107 MB / 449.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03104/0.4592, allocations: 26.33 MB / 476.1 MB, free: 8.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4593, allocations: 0 / 476.1 MB, free: 8.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4593, allocations: 0 / 476.1 MB, free: 8.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007099/0.46, allocations: 0 / 476.1 MB, free: 8.199 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.04537/0.5053, allocations: 16.07 MB / 492.2 MB, free: 8.129 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.5054, allocations: 12.03 kB / 492.2 MB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04175/0.5472, allocations: 7.365 MB / 499.6 MB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0155/0.5627, allocations: 7.7 MB / 0.4954 GB, free: 9.109 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000822/0.5635, allocations: 0.9131 MB / 0.4963 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003742/0.5673, allocations: 1.209 MB / 0.4974 GB, free: 7.008 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04289/0.6102, allocations: 19.25 MB / 0.5162 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002955/0.6105, allocations: 23.75 kB / 0.5163 GB, free: 3.676 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001848/0.6124, allocations: 0.5015 MB / 0.5167 GB, free: 3.188 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005956/0.613, allocations: 0.6854 MB / 0.5174 GB, free: 2.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03339/0.6464, allocations: 17.68 MB / 0.5347 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.361/1.007, allocations: 63.88 MB / 0.5971 GB, free: 95.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02398/1.031, allocations: 38.71 MB / 0.6349 GB, free: 57.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005386/1.037, allocations: 4.239 MB / 0.639 GB, free: 54.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01667/1.054, allocations: 12.34 MB / 0.6511 GB, free: 41.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/1.054, allocations: 85.69 kB / 0.6511 GB, free: 41.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.731e-06/1.054, allocations: 0 / 0.6511 GB, free: 41.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.03852/1.092, allocations: 20.25 MB / 0.6709 GB, free: 21.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/1.092, allocations: 124.4 kB / 0.671 GB, free: 21.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007452/1.1, allocations: 5.3 MB / 0.6762 GB, free: 15.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007648/1.101, allocations: 101.7 kB / 0.6763 GB, free: 15.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002631/1.103, allocations: 5.49 MB / 0.6817 GB, free: 10.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001577/1.105, allocations: 1.446 MB / 0.6831 GB, free: 8.664 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002092/1.107, allocations: 1.307 MB / 0.6844 GB, free: 7.348 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.251e-05/1.107, allocations: 305.1 kB / 0.6847 GB, free: 7.047 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004/1.111, allocations: 2.949 MB / 0.6875 GB, free: 4.094 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005907/1.117, allocations: 5.679 MB / 0.6931 GB, free: 13.14 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01238/1.129, allocations: 9.186 MB / 0.7021 GB, free: 2.656 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001337/1.129, allocations: 28 kB / 0.7021 GB, free: 2.629 MB / 462.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.2124/1.342, allocations: 10.07 MB / 0.7119 GB, free: 141.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.58e-05/1.342, allocations: 43.88 kB / 0.712 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/1.342, allocations: 91.06 kB / 0.712 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003133/1.345, allocations: 1.131 MB / 0.7132 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005179/1.35, allocations: 1.532 MB / 0.7146 GB, free: 141.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/1.363, allocations: 12.53 MB / 0.7269 GB, free: 132.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004717/1.368, allocations: 366.6 kB / 0.7272 GB, free: 132.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005462/1.369, allocations: 347.8 kB / 0.7276 GB, free: 132.5 MB / 462.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.00623/1.375, allocations: 4.3 MB / 0.7318 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.376, allocations: 0.5403 MB / 0.7323 GB, free: 130.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.387, allocations: 7.186 MB / 0.7393 GB, free: 127.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006094/1.393, allocations: 4.31 MB / 0.7435 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.201e-05/1.393, allocations: 11.75 kB / 0.7435 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.931e-05/1.393, allocations: 19.55 kB / 0.7435 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02403/1.417, allocations: 17.17 MB / 0.7603 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.417, allocations: 7.75 kB / 0.7603 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002618/1.42, allocations: 0.6867 MB / 0.761 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003028/1.423, allocations: 1.182 MB / 0.7621 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003559/1.423, allocations: 99.64 kB / 0.7622 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01493/1.438, allocations: 16.01 MB / 0.7779 GB, free: 98.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/1.438, allocations: 12.14 kB / 0.7779 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01671/1.455, allocations: 10.42 MB / 0.7881 GB, free: 88.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002444/1.457, allocations: 1.13 MB / 0.7892 GB, free: 87.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000922/1.458, allocations: 79.98 kB / 0.7892 GB, free: 87.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002491/1.461, allocations: 215.4 kB / 0.7894 GB, free: 86.97 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006458/1.461, allocations: 303.4 kB / 0.7897 GB, free: 86.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002553/1.461, allocations: 123.1 kB / 0.7899 GB, free: 86.56 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004626/1.466, allocations: 3.554 MB / 0.7933 GB, free: 83.02 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.466, allocations: 0 / 0.7933 GB, free: 83.02 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006502/1.473, allocations: 1.997 MB / 0.7953 GB, free: 81.04 MB / 462.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.0006922/1.473, allocations: 286.2 kB / 0.7955 GB, free: 80.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01065/1.484, allocations: 7.894 MB / 0.8033 GB, free: 72.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.484, allocations: 4 kB / 0.8033 GB, free: 72.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006134/1.49, allocations: 4.137 MB / 0.8073 GB, free: 68.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00664/1.497, allocations: 1.361 MB / 0.8086 GB, free: 67.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03385/1.531, allocations: 26.08 MB / 0.8341 GB, free: 41.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006951/1.538, allocations: 7.452 MB / 0.8414 GB, free: 33.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006083/1.544, allocations: 2.092 MB / 0.8434 GB, free: 31.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/1.545, allocations: 407.4 kB / 0.8438 GB, free: 31.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/1.545, allocations: 4 kB / 0.8438 GB, free: 31.09 MB / 462.1 MB Notification: Performance of Templates: time 0.2922/1.837, allocations: 83.17 MB / 0.925 GB, free: 107.2 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)