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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 108 kB / 15.6 MB, free: 132 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.001282/0.001283, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.35/1.35, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.001195/0.001196, allocations: 47.94 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2146, allocations: 46.63 MB / 325.3 MB, free: 1.906 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04279/0.2574, allocations: 41.75 MB / 367.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02372/0.2812, allocations: 11.08 MB / 378.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008824/0.29, allocations: 271.1 kB / 378.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0215/0.3116, allocations: 8.792 MB / 387.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0148/0.3264, allocations: 3.795 MB / 391 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007727/0.3342, allocations: 2.459 MB / 393.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01857/0.3528, allocations: 13.78 MB / 407.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04473/0.3975, allocations: 25.87 MB / 433.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01256/0.4101, allocations: 7.195 MB / 440.3 MB, free: 464 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01262/0.4228, allocations: 8.257 MB / 448.6 MB, free: 8.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006202/0.429, allocations: 2.035 MB / 450.6 MB, free: 6.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009661/0.4387, allocations: 2.429 MB / 453 MB, free: 3.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3313/0.7701, allocations: 4.238 MB / 457.3 MB, free: 39.98 MB / 382.2 MB Notification: Performance of NFVerifyModel.verify: time 0.01584/0.786, allocations: 8.042 MB / 465.3 MB, free: 39.46 MB / 382.2 MB Notification: Performance of NFConvertDAE.convert: time 0.02533/0.8113, allocations: 26.81 MB / 492.1 MB, free: 32.36 MB / 382.2 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.8114, allocations: 0 / 492.1 MB, free: 32.36 MB / 382.2 MB Notification: Performance of FrontEnd: time 1.974e-06/0.8114, allocations: 2.344 kB / 492.1 MB, free: 32.36 MB / 382.2 MB Notification: Performance of Transformations before backend: time 0.0007859/0.8122, allocations: 0 / 492.1 MB, free: 32.36 MB / 382.2 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04524/0.8574, allocations: 16.06 MB / 0.4963 GB, free: 22.54 MB / 382.2 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.8575, allocations: 11.16 kB / 0.4963 GB, free: 22.54 MB / 382.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04778/0.9052, allocations: 9.17 MB / 0.5052 GB, free: 18.2 MB / 382.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01631/0.9216, allocations: 7.686 MB / 0.5128 GB, free: 10.83 MB / 382.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009641/0.9226, allocations: 0.978 MB / 0.5137 GB, free: 9.867 MB / 382.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005369/0.928, allocations: 1.281 MB / 0.515 GB, free: 8.602 MB / 382.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05129/0.9793, allocations: 20.51 MB / 0.535 GB, free: 4.031 MB / 398.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005617/0.9799, allocations: 27.8 kB / 0.535 GB, free: 4.004 MB / 398.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004463/0.9843, allocations: 0.526 MB / 0.5355 GB, free: 3.492 MB / 398.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008314/0.9852, allocations: 0.7455 MB / 0.5363 GB, free: 2.746 MB / 398.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04373/1.029, allocations: 19.24 MB / 0.555 GB, free: 15.51 MB / 430.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.296/1.325, allocations: 65.04 MB / 0.6186 GB, free: 151 MB / 478.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03767/1.363, allocations: 57.29 MB / 0.6745 GB, free: 98.54 MB / 478.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008633/1.371, allocations: 4.196 MB / 0.6786 GB, free: 98.46 MB / 478.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02655/1.398, allocations: 11.67 MB / 0.69 GB, free: 97.37 MB / 478.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/1.398, allocations: 74.72 kB / 0.6901 GB, free: 97.33 MB / 478.2 MB Notification: Performance of pre-optimization done (n=361): time 4.728e-06/1.398, allocations: 0 / 0.6901 GB, free: 97.33 MB / 478.2 MB Notification: Performance of matching and sorting (n=403): time 0.03194/1.43, allocations: 17.87 MB / 0.7075 GB, free: 90.63 MB / 478.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/1.43, allocations: 97.3 kB / 0.7076 GB, free: 90.56 MB / 478.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008738/1.439, allocations: 5.691 MB / 0.7132 GB, free: 88.48 MB / 478.2 MB Notification: Performance of collectPreVariables (initialization): time 0.0006067/1.439, allocations: 88.95 kB / 0.7133 GB, free: 88.4 MB / 478.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.002929/1.442, allocations: 6.06 MB / 0.7192 GB, free: 83.83 MB / 478.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/1.444, allocations: 1.421 MB / 0.7206 GB, free: 82.75 MB / 478.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003464/1.447, allocations: 1.543 MB / 0.7221 GB, free: 82 MB / 478.2 MB Notification: Performance of setup shared object (initialization): time 4.873e-05/1.447, allocations: 301.1 kB / 0.7224 GB, free: 81.7 MB / 478.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004628/1.452, allocations: 3.141 MB / 0.7254 GB, free: 79.49 MB / 478.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005648/1.458, allocations: 6.893 MB / 0.7322 GB, free: 71.32 MB / 478.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/1.468, allocations: 10.81 MB / 0.7427 GB, free: 58.68 MB / 478.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.582e-05/1.468, allocations: 36 kB / 0.7427 GB, free: 58.64 MB / 478.2 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01693/1.485, allocations: 11.03 MB / 0.7535 GB, free: 47.55 MB / 478.2 MB Notification: Performance of prepare postOptimizeDAE: time 9.325e-05/1.485, allocations: 60.81 kB / 0.7536 GB, free: 47.49 MB / 478.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/1.485, allocations: 124 kB / 0.7537 GB, free: 47.37 MB / 478.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/1.487, allocations: 0.9915 MB / 0.7547 GB, free: 46.36 MB / 478.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005773/1.493, allocations: 1.856 MB / 0.7565 GB, free: 44.5 MB / 478.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0096/1.503, allocations: 10.25 MB / 0.7665 GB, free: 33.84 MB / 478.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006019/1.509, allocations: 459.1 kB / 0.7669 GB, free: 33.39 MB / 478.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/1.51, allocations: 428 kB / 0.7673 GB, free: 32.97 MB / 478.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01017/1.52, allocations: 4.511 MB / 0.7717 GB, free: 28.44 MB / 478.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001494/1.522, allocations: 0.5672 MB / 0.7723 GB, free: 27.87 MB / 478.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009816/1.531, allocations: 6.709 MB / 0.7788 GB, free: 21.11 MB / 478.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/1.531, allocations: 44 kB / 0.7789 GB, free: 21.07 MB / 478.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/1.532, allocations: 12 kB / 0.7789 GB, free: 21.06 MB / 478.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.41e-05/1.532, allocations: 23.92 kB / 0.7789 GB, free: 21.04 MB / 478.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03277/1.564, allocations: 16.49 MB / 0.795 GB, free: 4.5 MB / 478.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/1.564, allocations: 4 kB / 0.795 GB, free: 4.496 MB / 478.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003179/1.568, allocations: 0.7806 MB / 0.7958 GB, free: 3.715 MB / 478.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00205/1.57, allocations: 0.804 MB / 0.7966 GB, free: 2.895 MB / 478.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004196/1.57, allocations: 91.97 kB / 0.7967 GB, free: 2.805 MB / 478.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1976/1.768, allocations: 9.34 MB / 0.8058 GB, free: 148.7 MB / 478.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.768, allocations: 7.312 kB / 0.8058 GB, free: 148.7 MB / 478.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01646/1.784, allocations: 9.818 MB / 0.8154 GB, free: 148.1 MB / 478.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003096/1.787, allocations: 1.112 MB / 0.8165 GB, free: 148 MB / 478.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001553/1.789, allocations: 86.48 kB / 0.8165 GB, free: 148 MB / 478.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00362/1.793, allocations: 230.7 kB / 0.8168 GB, free: 148 MB / 478.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007864/1.793, allocations: 274.7 kB / 0.817 GB, free: 147.9 MB / 478.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003687/1.794, allocations: 118.4 kB / 0.8171 GB, free: 147.9 MB / 478.2 MB Notification: Performance of sorting global known variables: time 0.007182/1.801, allocations: 3.744 MB / 0.8208 GB, free: 146.6 MB / 478.2 MB Notification: Performance of sort global known variables: time 4.21e-07/1.801, allocations: 3.344 kB / 0.8208 GB, free: 146.6 MB / 478.2 MB Notification: Performance of remove unused functions: time 0.009297/1.81, allocations: 2.044 MB / 0.8228 GB, free: 146.4 MB / 478.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008528/1.811, allocations: 262.5 kB / 0.823 GB, free: 146.2 MB / 478.2 MB Notification: Performance of simCode: created initialization part: time 0.02891/1.84, allocations: 13.87 MB / 0.8366 GB, free: 142.8 MB / 478.2 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/1.84, allocations: 3.844 kB / 0.8366 GB, free: 142.8 MB / 478.2 MB Notification: Performance of simCode: created simulation system equations: time 0.005105/1.845, allocations: 3.611 MB / 0.8401 GB, free: 141 MB / 478.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008459/1.854, allocations: 1.42 MB / 0.8415 GB, free: 139.8 MB / 478.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03877/1.893, allocations: 21.53 MB / 0.8625 GB, free: 120.2 MB / 478.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008049/1.901, allocations: 7.687 MB / 0.87 GB, free: 114.4 MB / 478.2 MB Notification: Performance of simCode: alias equations: time 0.00679/1.907, allocations: 2.4 MB / 0.8724 GB, free: 112.8 MB / 478.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/1.909, allocations: 454.4 kB / 0.8728 GB, free: 112.3 MB / 478.2 MB Notification: Performance of SimCode: time 7.51e-07/1.909, allocations: 0 / 0.8728 GB, free: 112.3 MB / 478.2 MB Notification: Performance of Templates: time 0.1335/2.042, allocations: 82.35 MB / 0.9532 GB, free: 32.08 MB / 478.2 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)