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.001098/0.001098, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001191/0.001191, allocations: 192.2 kB / 16.14 MB, free: 6.707 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.347/1.347, allocations: 205.1 MB / 222 MB, free: 4.945 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.001078/0.001078, allocations: 43.94 kB / 278.1 MB, free: 12.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1982, allocations: 46.64 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03523/0.2334, allocations: 36.67 MB / 361.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.2545, allocations: 9.917 MB / 371.3 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0069/0.2615, allocations: 223.2 kB / 371.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02005/0.2816, allocations: 8.541 MB / 380.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01242/0.294, allocations: 3.608 MB / 383.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007209/0.3012, allocations: 2.249 MB / 385.9 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01873/0.32, allocations: 14.5 MB / 400.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03734/0.3573, allocations: 20.91 MB / 421.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009556/0.3669, allocations: 6.179 MB / 427.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01082/0.3778, allocations: 7.578 MB / 435.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004504/0.3823, allocations: 1.301 MB / 436.4 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007541/0.3899, allocations: 1.691 MB / 438.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006403/0.3963, allocations: 3.326 MB / 441.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01433/0.4106, allocations: 7.113 MB / 448.5 MB, free: 7.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1964/0.6071, allocations: 26.32 MB / 474.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.6071, allocations: 3.812 kB / 474.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6072, allocations: 0.75 kB / 474.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000879/0.608, allocations: 0 / 474.8 MB, free: 45.39 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.05396/0.662, allocations: 16.07 MB / 490.9 MB, free: 38.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.6621, allocations: 11.45 kB / 490.9 MB, free: 38.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04022/0.7023, allocations: 7.361 MB / 498.3 MB, free: 35.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01681/0.7192, allocations: 7.698 MB / 0.4941 GB, free: 32.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001001/0.7202, allocations: 0.9234 MB / 0.495 GB, free: 31.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005496/0.7257, allocations: 1.207 MB / 0.4962 GB, free: 30.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04769/0.7734, allocations: 19.24 MB / 0.515 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007337/0.7742, allocations: 27.55 kB / 0.515 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004899/0.7791, allocations: 0.4977 MB / 0.5155 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006546/0.7798, allocations: 0.6815 MB / 0.5162 GB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03658/0.8164, allocations: 17.69 MB / 0.5334 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1137/0.9302, allocations: 63.89 MB / 0.5958 GB, free: 7.887 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1866/1.117, allocations: 38.7 MB / 0.6336 GB, free: 154 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005911/1.123, allocations: 4.249 MB / 0.6378 GB, free: 154 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01809/1.141, allocations: 12.34 MB / 0.6498 GB, free: 148.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/1.141, allocations: 76.75 kB / 0.6499 GB, free: 148.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=408): time 5.901e-06/1.141, allocations: 1.203 kB / 0.6499 GB, free: 148.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=418): time 0.04084/1.182, allocations: 20.27 MB / 0.6697 GB, free: 139.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/1.182, allocations: 128.3 kB / 0.6698 GB, free: 139 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008679/1.191, allocations: 5.3 MB / 0.675 GB, free: 134.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007381/1.191, allocations: 93.7 kB / 0.6751 GB, free: 134.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002642/1.194, allocations: 5.485 MB / 0.6804 GB, free: 129.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001469/1.195, allocations: 1.45 MB / 0.6818 GB, free: 128.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001942/1.197, allocations: 1.313 MB / 0.6831 GB, free: 127.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.002e-05/1.197, allocations: 305.1 kB / 0.6834 GB, free: 126.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003872/1.201, allocations: 2.95 MB / 0.6863 GB, free: 124.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004938/1.206, allocations: 5.673 MB / 0.6918 GB, free: 117.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009468/1.216, allocations: 9.189 MB / 0.7008 GB, free: 108.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-05/1.216, allocations: 28 kB / 0.7008 GB, free: 108.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01585/1.232, allocations: 10.08 MB / 0.7107 GB, free: 98.03 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.732e-05/1.232, allocations: 45.97 kB / 0.7107 GB, free: 97.99 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/1.232, allocations: 88 kB / 0.7108 GB, free: 97.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002909/1.235, allocations: 1.119 MB / 0.7119 GB, free: 96.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005413/1.24, allocations: 1.533 MB / 0.7134 GB, free: 95.23 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/1.254, allocations: 12.54 MB / 0.7256 GB, free: 82.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005779/1.259, allocations: 367.5 kB / 0.726 GB, free: 81.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00135/1.261, allocations: 347.9 kB / 0.7263 GB, free: 81.46 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.007525/1.268, allocations: 4.301 MB / 0.7305 GB, free: 77.14 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/1.27, allocations: 0.5364 MB / 0.731 GB, free: 76.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.283, allocations: 7.184 MB / 0.7381 GB, free: 69.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00632/1.289, allocations: 4.313 MB / 0.7423 GB, free: 64.95 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.536e-05/1.289, allocations: 12 kB / 0.7423 GB, free: 64.94 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-05/1.289, allocations: 23.92 kB / 0.7423 GB, free: 64.91 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03351/1.323, allocations: 17.16 MB / 0.7591 GB, free: 47.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/1.323, allocations: 4 kB / 0.7591 GB, free: 47.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003029/1.326, allocations: 0.6871 MB / 0.7597 GB, free: 46.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003217/1.329, allocations: 1.182 MB / 0.7609 GB, free: 45.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006729/1.33, allocations: 99.97 kB / 0.761 GB, free: 45.64 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.344, allocations: 16.01 MB / 0.7766 GB, free: 28.84 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/1.344, allocations: 8 kB / 0.7766 GB, free: 28.83 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/1.359, allocations: 10.42 MB / 0.7868 GB, free: 18.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/1.361, allocations: 1.123 MB / 0.7879 GB, free: 17.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001448/1.363, allocations: 83.98 kB / 0.788 GB, free: 17.02 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003135/1.366, allocations: 207.8 kB / 0.7882 GB, free: 16.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007418/1.367, allocations: 307.4 kB / 0.7885 GB, free: 16.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003587/1.367, allocations: 124 kB / 0.7886 GB, free: 16.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005969/1.373, allocations: 3.547 MB / 0.7921 GB, free: 12.86 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.373, allocations: 4 kB / 0.7921 GB, free: 12.86 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008417/1.381, allocations: 1.994 MB / 0.794 GB, free: 10.87 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.0009978/1.382, allocations: 288.3 kB / 0.7943 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0121/1.395, allocations: 7.898 MB / 0.802 GB, free: 2.617 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/1.395, allocations: 4 kB / 0.802 GB, free: 2.613 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1729/1.568, allocations: 4.13 MB / 0.806 GB, free: 161.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007956/1.575, allocations: 1.36 MB / 0.8074 GB, free: 161.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03909/1.615, allocations: 26.08 MB / 0.8328 GB, free: 150.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0103/1.625, allocations: 7.46 MB / 0.8401 GB, free: 148.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008122/1.633, allocations: 2.086 MB / 0.8422 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/1.635, allocations: 416.9 kB / 0.8426 GB, free: 147.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/1.635, allocations: 0 / 0.8426 GB, free: 147.7 MB / 478.1 MB Notification: Performance of Templates: time 0.1264/1.762, allocations: 83.16 MB / 0.9238 GB, free: 68.32 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)