Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001791/0.001791, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00233/0.00233, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.68/1.68, allocations: 205.1 MB / 222.4 MB, free: 4.637 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.001209/0.001209, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2152, allocations: 46.64 MB / 325.3 MB, free: 1.875 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03653/0.2518, allocations: 37.32 MB / 362.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0228/0.2746, allocations: 10.02 MB / 372.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009053/0.2837, allocations: 235.2 kB / 372.9 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02112/0.3049, allocations: 9.103 MB / 382 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01308/0.318, allocations: 3.966 MB / 386 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007502/0.3256, allocations: 2.42 MB / 388.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02035/0.3459, allocations: 14.13 MB / 402.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04307/0.389, allocations: 25.75 MB / 428.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01495/0.404, allocations: 7.246 MB / 435.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01684/0.4209, allocations: 8.016 MB / 443.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008446/0.4294, allocations: 2.039 MB / 445.6 MB, free: 11.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009425/0.4389, allocations: 2.437 MB / 448 MB, free: 8.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007708/0.4466, allocations: 4.087 MB / 452.1 MB, free: 4.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.381/0.8277, allocations: 7.891 MB / 460 MB, free: 40.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03239/0.8601, allocations: 26.83 MB / 486.8 MB, free: 35.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.8602, allocations: 2.906 kB / 486.8 MB, free: 35.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.8602, allocations: 0 / 486.8 MB, free: 35.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009044/0.8611, allocations: 0 / 486.8 MB, free: 35.1 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.05222/0.9133, allocations: 16.06 MB / 0.4911 GB, free: 27.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.9134, allocations: 15.39 kB / 0.4911 GB, free: 27.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04178/0.9552, allocations: 7.356 MB / 0.4983 GB, free: 23.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01485/0.97, allocations: 7.729 MB / 0.5059 GB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004878/0.9706, allocations: 0.9215 MB / 0.5068 GB, free: 16.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003623/0.9742, allocations: 1.211 MB / 0.5079 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05182/1.026, allocations: 19.23 MB / 0.5267 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006345/1.027, allocations: 15.81 kB / 0.5267 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004778/1.032, allocations: 0.498 MB / 0.5272 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008007/1.032, allocations: 0.6812 MB / 0.5279 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03732/1.07, allocations: 17.66 MB / 0.5451 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1074/1.177, allocations: 63.87 MB / 0.6075 GB, free: 8.965 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2004/1.378, allocations: 38.68 MB / 0.6453 GB, free: 134.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006705/1.384, allocations: 4.198 MB / 0.6494 GB, free: 134.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01868/1.403, allocations: 12.24 MB / 0.6613 GB, free: 130.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.79e-05/1.403, allocations: 76.3 kB / 0.6614 GB, free: 130.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=402): time 6.152e-06/1.403, allocations: 3.969 kB / 0.6614 GB, free: 130.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=412): time 0.04264/1.446, allocations: 20.05 MB / 0.681 GB, free: 121.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/1.446, allocations: 126.8 kB / 0.6811 GB, free: 121.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00732/1.453, allocations: 5.307 MB / 0.6863 GB, free: 119.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008945/1.454, allocations: 92.02 kB / 0.6864 GB, free: 119.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002927/1.457, allocations: 5.494 MB / 0.6917 GB, free: 115 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/1.458, allocations: 1.432 MB / 0.6931 GB, free: 113.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001879/1.46, allocations: 1.312 MB / 0.6944 GB, free: 112.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.664e-05/1.46, allocations: 309.1 kB / 0.6947 GB, free: 112.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003789/1.464, allocations: 2.907 MB / 0.6976 GB, free: 109.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00458/1.469, allocations: 5.641 MB / 0.7031 GB, free: 103.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008685/1.477, allocations: 9.11 MB / 0.712 GB, free: 93.66 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.214e-05/1.478, allocations: 24 kB / 0.712 GB, free: 93.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01461/1.492, allocations: 9.996 MB / 0.7217 GB, free: 84.36 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.267e-05/1.492, allocations: 44 kB / 0.7218 GB, free: 84.31 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.835e-05/1.492, allocations: 88 kB / 0.7219 GB, free: 84.23 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002561/1.495, allocations: 1.139 MB / 0.723 GB, free: 83.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004628/1.5, allocations: 1.525 MB / 0.7245 GB, free: 81.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/1.512, allocations: 13.49 MB / 0.7376 GB, free: 67.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0055/1.518, allocations: 363.5 kB / 0.738 GB, free: 67.13 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000983/1.519, allocations: 347.9 kB / 0.7383 GB, free: 66.79 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 (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.006412/1.525, allocations: 4.293 MB / 0.7425 GB, free: 62.49 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001211/1.526, allocations: 0.5442 MB / 0.7431 GB, free: 61.94 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.536, allocations: 7.113 MB / 0.75 GB, free: 54.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005561/1.542, allocations: 4.222 MB / 0.7541 GB, free: 50.45 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-05/1.542, allocations: 16 kB / 0.7541 GB, free: 50.43 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-05/1.542, allocations: 19.92 kB / 0.7542 GB, free: 50.41 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02582/1.568, allocations: 17.05 MB / 0.7708 GB, free: 33.24 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/1.568, allocations: 4 kB / 0.7708 GB, free: 33.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002882/1.571, allocations: 0.6865 MB / 0.7715 GB, free: 32.55 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002998/1.574, allocations: 1.198 MB / 0.7727 GB, free: 31.33 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004717/1.574, allocations: 99.97 kB / 0.7727 GB, free: 31.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/1.589, allocations: 17.39 MB / 0.7897 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.589, allocations: 8.125 kB / 0.7897 GB, free: 13.03 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/1.603, allocations: 10.27 MB / 0.7998 GB, free: 2.582 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002591/1.605, allocations: 1.123 MB / 0.8009 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008159/1.606, allocations: 83.94 kB / 0.8009 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002392/1.608, allocations: 215.8 kB / 0.8011 GB, free: 1.141 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006422/1.609, allocations: 307.3 kB / 0.8014 GB, free: 0.832 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.609, allocations: 127.9 kB / 0.8016 GB, free: 0.707 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.2025/1.812, allocations: 3.541 MB / 0.805 GB, free: 153 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.72e-07/1.812, allocations: 0 / 0.805 GB, free: 153 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009699/1.822, allocations: 1.992 MB / 0.807 GB, free: 153 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 (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.0009782/1.823, allocations: 287.8 kB / 0.8072 GB, free: 152.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02208/1.845, allocations: 10.97 MB / 0.818 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.845, allocations: 3.844 kB / 0.818 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00579/1.85, allocations: 4.065 MB / 0.8219 GB, free: 151 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006363/1.857, allocations: 1.449 MB / 0.8233 GB, free: 150.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03483/1.892, allocations: 20.93 MB / 0.8438 GB, free: 139.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01071/1.903, allocations: 7.445 MB / 0.8511 GB, free: 134 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006119/1.909, allocations: 2.072 MB / 0.8531 GB, free: 132.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/1.91, allocations: 417.2 kB / 0.8535 GB, free: 132.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/1.91, allocations: 0 / 0.8535 GB, free: 132.2 MB / 478.1 MB Notification: Performance of Templates: time 0.1863/2.096, allocations: 85.67 MB / 0.9371 GB, free: 51.07 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)