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.001169/0.001169, allocations: 112.3 kB / 16.62 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.001032/0.001032, allocations: 185.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.518/1.518, allocations: 205.1 MB / 223.4 MB, free: 12.36 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.001136/0.001136, allocations: 47.94 kB / 279.5 MB, free: 3.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.08445, allocations: 46.63 MB / 326.2 MB, free: 4.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03654/0.121, allocations: 36.69 MB / 362.9 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.1417, allocations: 9.858 MB / 372.7 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006623/0.1484, allocations: 231.1 kB / 372.9 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.205/0.3535, allocations: 8.543 MB / 381.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0142/0.3677, allocations: 3.572 MB / 385 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008975/0.3767, allocations: 2.229 MB / 387.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02402/0.4007, allocations: 14.31 MB / 401.6 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05012/0.4509, allocations: 28.96 MB / 430.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01546/0.4664, allocations: 7.223 MB / 437.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01524/0.4817, allocations: 8.06 MB / 445.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0063/0.488, allocations: 2.035 MB / 447.9 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008876/0.4969, allocations: 2.427 MB / 450.3 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007027/0.504, allocations: 4.095 MB / 454.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01801/0.522, allocations: 7.892 MB / 462.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03252/0.5546, allocations: 26.82 MB / 489.1 MB, free: 11.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.5546, allocations: 0 / 489.1 MB, free: 11.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5546, allocations: 0 / 489.1 MB, free: 11.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000623/0.5553, allocations: 0 / 489.1 MB, free: 11.9 MB / 398.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.04874/0.604, allocations: 16.07 MB / 0.4933 GB, free: 11.83 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.6041, allocations: 12.03 kB / 0.4933 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0409/0.645, allocations: 7.357 MB / 0.5005 GB, free: 4.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01771/0.6627, allocations: 7.695 MB / 0.508 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00106/0.6638, allocations: 0.9226 MB / 0.5089 GB, free: 11.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005428/0.6693, allocations: 1.211 MB / 0.5101 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04614/0.7154, allocations: 19.25 MB / 0.5289 GB, free: 7.398 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003678/0.7158, allocations: 19.73 kB / 0.5289 GB, free: 7.379 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002451/0.7183, allocations: 0.4978 MB / 0.5294 GB, free: 6.891 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006556/0.719, allocations: 0.6815 MB / 0.5301 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.321/1.04, allocations: 17.69 MB / 0.5474 GB, free: 136.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08877/1.129, allocations: 63.88 MB / 0.6097 GB, free: 90.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02417/1.153, allocations: 38.71 MB / 0.6476 GB, free: 46.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005556/1.159, allocations: 4.239 MB / 0.6517 GB, free: 42.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01724/1.176, allocations: 12.35 MB / 0.6637 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/1.176, allocations: 85.8 kB / 0.6638 GB, free: 30.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 6.131e-06/1.176, allocations: 0 / 0.6638 GB, free: 30.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.03704/1.213, allocations: 20.27 MB / 0.6836 GB, free: 9.484 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/1.213, allocations: 120.4 kB / 0.6837 GB, free: 9.348 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006006/1.219, allocations: 5.308 MB / 0.6889 GB, free: 4.055 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005352/1.22, allocations: 93.7 kB / 0.689 GB, free: 3.957 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002424/1.222, allocations: 5.48 MB / 0.6944 GB, free: 14.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001459/1.224, allocations: 1.45 MB / 0.6958 GB, free: 13.01 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001864/1.225, allocations: 1.31 MB / 0.6971 GB, free: 11.69 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.404e-05/1.226, allocations: 309.1 kB / 0.6974 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004166/1.23, allocations: 2.949 MB / 0.7002 GB, free: 8.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005852/1.236, allocations: 5.675 MB / 0.7058 GB, free: 1.484 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1717/1.407, allocations: 9.189 MB / 0.7147 GB, free: 137.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.928e-05/1.407, allocations: 27 kB / 0.7148 GB, free: 137.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01989/1.427, allocations: 10.07 MB / 0.7246 GB, free: 133.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.533e-05/1.428, allocations: 42.25 kB / 0.7246 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001924/1.428, allocations: 88.75 kB / 0.7247 GB, free: 133.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002835/1.431, allocations: 1.135 MB / 0.7258 GB, free: 133.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005645/1.436, allocations: 1.527 MB / 0.7273 GB, free: 133.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01331/1.45, allocations: 13.49 MB / 0.7405 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005615/1.455, allocations: 369.5 kB / 0.7409 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/1.456, allocations: 343.5 kB / 0.7412 GB, free: 123.7 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.007985/1.464, allocations: 4.291 MB / 0.7454 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/1.466, allocations: 0.546 MB / 0.7459 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/1.478, allocations: 7.189 MB / 0.7529 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006079/1.484, allocations: 4.309 MB / 0.7571 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.172e-05/1.484, allocations: 14.75 kB / 0.7572 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.417e-05/1.484, allocations: 23.11 kB / 0.7572 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03066/1.515, allocations: 17.18 MB / 0.774 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.127e-05/1.515, allocations: 4 kB / 0.774 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003192/1.518, allocations: 0.6824 MB / 0.7746 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003133/1.521, allocations: 1.194 MB / 0.7758 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007848/1.522, allocations: 99.97 kB / 0.7759 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/1.537, allocations: 17.39 MB / 0.7929 GB, free: 84.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.537, allocations: 11.56 kB / 0.7929 GB, free: 84.87 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.551, allocations: 10.41 MB / 0.8031 GB, free: 74.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003015/1.554, allocations: 1.123 MB / 0.8042 GB, free: 73.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001558/1.556, allocations: 91.92 kB / 0.8042 GB, free: 73.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003201/1.559, allocations: 211.8 kB / 0.8044 GB, free: 73.13 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008835/1.56, allocations: 311.4 kB / 0.8047 GB, free: 72.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003043/1.56, allocations: 120 kB / 0.8049 GB, free: 72.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005619/1.566, allocations: 3.55 MB / 0.8083 GB, free: 69.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.566, allocations: 0 / 0.8083 GB, free: 69.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008654/1.575, allocations: 1.992 MB / 0.8103 GB, free: 67.19 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.001171/1.576, allocations: 283.4 kB / 0.8105 GB, free: 66.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02084/1.597, allocations: 11.19 MB / 0.8215 GB, free: 55.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.597, allocations: 4.438 kB / 0.8215 GB, free: 55.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005919/1.603, allocations: 4.138 MB / 0.8255 GB, free: 51.49 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006834/1.61, allocations: 1.447 MB / 0.8269 GB, free: 50.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03518/1.645, allocations: 26.08 MB / 0.8524 GB, free: 23.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009119/1.654, allocations: 7.442 MB / 0.8597 GB, free: 16.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006202/1.66, allocations: 2.088 MB / 0.8617 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/1.662, allocations: 415.4 kB / 0.8621 GB, free: 13.93 MB / 462.1 MB Notification: Performance of SimCode: time 1.552e-06/1.662, allocations: 0 / 0.8621 GB, free: 13.93 MB / 462.1 MB Notification: Performance of Templates: time 0.3098/1.971, allocations: 86.16 MB / 0.9462 GB, free: 89.07 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)