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.001263/0.001263, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001331/0.001331, allocations: 200 kB / 18.01 MB, free: 5.055 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.494/1.494, allocations: 205.1 MB / 223.9 MB, free: 12.2 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.001289/0.001289, allocations: 52.3 kB / 327.9 MB, free: 3.246 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09626, allocations: 46.62 MB / 374.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2184/0.3147, allocations: 37.33 MB / 411.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02355/0.3383, allocations: 10.02 MB / 421.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008463/0.3468, allocations: 239 kB / 422.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02314/0.37, allocations: 9.109 MB / 431.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01688/0.3869, allocations: 3.955 MB / 435.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0101/0.397, allocations: 2.422 MB / 437.6 MB, free: 484 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02203/0.4191, allocations: 14.25 MB / 451.8 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04389/0.463, allocations: 25.58 MB / 477.4 MB, free: 8.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0128/0.4758, allocations: 7.285 MB / 484.7 MB, free: 1.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0137/0.4896, allocations: 7.996 MB / 492.7 MB, free: 9.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00642/0.496, allocations: 2.043 MB / 494.7 MB, free: 7.047 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009909/0.506, allocations: 2.433 MB / 497.2 MB, free: 4.617 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008043/0.514, allocations: 4.087 MB / 0.4895 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01649/0.5306, allocations: 7.895 MB / 0.4972 GB, free: 8.594 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03295/0.5635, allocations: 26.98 MB / 0.5236 GB, free: 13.53 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.5636, allocations: 0 / 0.5236 GB, free: 13.53 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5636, allocations: 0 / 0.5236 GB, free: 13.53 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006396/0.5642, allocations: 0 / 0.5236 GB, free: 13.53 MB / 462.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.05582/0.6201, allocations: 16.02 MB / 0.5392 GB, free: 13.39 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.6201, allocations: 12.02 kB / 0.5392 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04292/0.6631, allocations: 7.398 MB / 0.5465 GB, free: 5.957 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3953/1.058, allocations: 7.756 MB / 0.554 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001166/1.06, allocations: 0.9096 MB / 0.5549 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004971/1.065, allocations: 1.208 MB / 0.5561 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04935/1.114, allocations: 19.22 MB / 0.5749 GB, free: 125.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000392/1.114, allocations: 20.94 kB / 0.5749 GB, free: 125.2 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002615/1.117, allocations: 0.4973 MB / 0.5754 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005685/1.118, allocations: 0.6825 MB / 0.576 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03214/1.15, allocations: 17.68 MB / 0.5933 GB, free: 115.8 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09317/1.243, allocations: 63.12 MB / 0.655 GB, free: 51.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02492/1.268, allocations: 38.68 MB / 0.6927 GB, free: 8.512 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005685/1.274, allocations: 4.176 MB / 0.6968 GB, free: 4.336 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02278/1.296, allocations: 12.2 MB / 0.7087 GB, free: 8.137 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.808e-05/1.296, allocations: 81.72 kB / 0.7088 GB, free: 8.047 MB / 494.1 MB Notification: Performance of pre-optimization done (n=402): time 5.34e-06/1.297, allocations: 0 / 0.7088 GB, free: 8.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=412): time 0.04171/1.338, allocations: 20.05 MB / 0.7284 GB, free: 3.652 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.338, allocations: 124.4 kB / 0.7285 GB, free: 3.512 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009077/1.347, allocations: 5.304 MB / 0.7337 GB, free: 14.22 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001243/1.349, allocations: 89.7 kB / 0.7338 GB, free: 14.13 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004208/1.353, allocations: 5.493 MB / 0.7391 GB, free: 8.602 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00212/1.355, allocations: 1.434 MB / 0.7405 GB, free: 7.18 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002304/1.357, allocations: 1.302 MB / 0.7418 GB, free: 5.867 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001018/1.358, allocations: 317 kB / 0.7421 GB, free: 5.555 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004457/1.362, allocations: 2.902 MB / 0.7449 GB, free: 2.648 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2062/1.568, allocations: 5.634 MB / 0.7504 GB, free: 160.6 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/1.58, allocations: 9.116 MB / 0.7593 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002187/1.58, allocations: 26.16 kB / 0.7594 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01909/1.599, allocations: 9.989 MB / 0.7691 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.666e-05/1.6, allocations: 43.56 kB / 0.7692 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000179/1.6, allocations: 91.36 kB / 0.7692 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003181/1.603, allocations: 1.133 MB / 0.7703 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006775/1.61, allocations: 1.527 MB / 0.7718 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01583/1.626, allocations: 13.47 MB / 0.785 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005507/1.631, allocations: 369 kB / 0.7853 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/1.632, allocations: 348.9 kB / 0.7857 GB, free: 141.9 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.007787/1.64, allocations: 4.295 MB / 0.7899 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001394/1.641, allocations: 0.5364 MB / 0.7904 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/1.653, allocations: 7.112 MB / 0.7973 GB, free: 136.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005848/1.659, allocations: 4.224 MB / 0.8015 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.426e-05/1.659, allocations: 12.2 kB / 0.8015 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.834e-05/1.659, allocations: 19.08 kB / 0.8015 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02806/1.687, allocations: 17.04 MB / 0.8181 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-05/1.687, allocations: 4 kB / 0.8181 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/1.69, allocations: 0.6843 MB / 0.8188 GB, free: 124.6 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002926/1.693, allocations: 1.184 MB / 0.82 GB, free: 123.7 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000385/1.694, allocations: 99.64 kB / 0.8201 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01479/1.708, allocations: 17.37 MB / 0.837 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/1.708, allocations: 10.45 kB / 0.837 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/1.723, allocations: 10.29 MB / 0.8471 GB, free: 96.23 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002972/1.726, allocations: 1.119 MB / 0.8482 GB, free: 95.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/1.727, allocations: 79.94 kB / 0.8482 GB, free: 95.01 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003009/1.73, allocations: 215.8 kB / 0.8484 GB, free: 94.8 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007376/1.73, allocations: 311.3 kB / 0.8487 GB, free: 94.49 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002701/1.731, allocations: 120.8 kB / 0.8489 GB, free: 94.37 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005208/1.736, allocations: 3.55 MB / 0.8523 GB, free: 90.84 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.5e-07/1.736, allocations: 0 / 0.8523 GB, free: 90.84 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01026/1.746, allocations: 1.989 MB / 0.8543 GB, free: 88.86 MB / 0.5138 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.00128/1.747, allocations: 287.8 kB / 0.8545 GB, free: 88.58 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01196/1.759, allocations: 7.83 MB / 0.8622 GB, free: 80.68 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.759, allocations: 0 / 0.8622 GB, free: 80.68 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005771/1.765, allocations: 4.075 MB / 0.8662 GB, free: 76.54 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007447/1.773, allocations: 1.453 MB / 0.8676 GB, free: 75.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03204/1.805, allocations: 20.67 MB / 0.8878 GB, free: 54.38 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007045/1.812, allocations: 7.442 MB / 0.895 GB, free: 46.89 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005513/1.817, allocations: 2.08 MB / 0.8971 GB, free: 44.81 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/1.819, allocations: 411.4 kB / 0.8975 GB, free: 44.41 MB / 0.5138 GB Notification: Performance of SimCode: time 1.042e-06/1.819, allocations: 0 / 0.8975 GB, free: 44.41 MB / 0.5138 GB Notification: Performance of Templates: time 0.3398/2.159, allocations: 81.43 MB / 0.977 GB, free: 140.7 MB / 0.5138 GB 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)