Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008783/0.008789, allocations: 101 kB / 15.73 MB, free: 6.039 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.001939/0.00194, allocations: 193.8 kB / 16.68 MB, free: 5.953 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.412/1.412, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.00116/0.00116, allocations: 46.81 kB / 326.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09139, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04301/0.1344, allocations: 41.75 MB / 415 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02646/0.161, allocations: 11.08 MB / 426 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009681/0.1707, allocations: 279 kB / 426.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02169/0.1924, allocations: 8.788 MB / 435.1 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01403/0.2065, allocations: 3.791 MB / 438.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008579/0.2151, allocations: 2.463 MB / 441.4 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2373/0.4524, allocations: 13.88 MB / 455.2 MB, free: 6.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04239/0.4948, allocations: 25.79 MB / 481 MB, free: 2.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01195/0.5068, allocations: 7.201 MB / 488.2 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01354/0.5204, allocations: 8.27 MB / 496.5 MB, free: 13.1 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004754/0.5252, allocations: 2.031 MB / 498.5 MB, free: 12.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006163/0.5314, allocations: 2.419 MB / 0.4892 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005672/0.5371, allocations: 4.237 MB / 0.4933 GB, free: 6.621 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01526/0.5524, allocations: 8.045 MB / 0.5012 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02985/0.5822, allocations: 27 MB / 0.5276 GB, free: 6.832 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.5823, allocations: 3.938 kB / 0.5276 GB, free: 6.828 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5823, allocations: 0 / 0.5276 GB, free: 6.828 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000688/0.583, allocations: 4 kB / 0.5276 GB, free: 6.824 MB / 430.1 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.04533/0.6283, allocations: 16.01 MB / 0.5432 GB, free: 6.812 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.6284, allocations: 12.03 kB / 0.5432 GB, free: 6.801 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05046/0.6789, allocations: 9.196 MB / 0.5522 GB, free: 13.69 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01606/0.695, allocations: 7.716 MB / 0.5597 GB, free: 6.297 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008781/0.6959, allocations: 0.9641 MB / 0.5607 GB, free: 5.344 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004993/0.7009, allocations: 1.27 MB / 0.5619 GB, free: 4.09 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05128/0.7522, allocations: 20.52 MB / 0.582 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005643/0.7528, allocations: 31.38 kB / 0.582 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003785/0.7566, allocations: 0.5201 MB / 0.5825 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008306/0.7574, allocations: 0.7493 MB / 0.5832 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04007/0.7975, allocations: 19.25 MB / 0.602 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5239/1.321, allocations: 64.32 MB / 0.6648 GB, free: 142 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02993/1.351, allocations: 57.28 MB / 0.7208 GB, free: 86.16 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006005/1.357, allocations: 4.166 MB / 0.7249 GB, free: 84.03 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01884/1.376, allocations: 11.63 MB / 0.7362 GB, free: 76.34 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/1.376, allocations: 72.28 kB / 0.7363 GB, free: 76.27 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.781e-06/1.376, allocations: 0 / 0.7363 GB, free: 76.27 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.03195/1.408, allocations: 17.87 MB / 0.7537 GB, free: 65.84 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/1.409, allocations: 94.58 kB / 0.7538 GB, free: 65.73 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006938/1.415, allocations: 5.685 MB / 0.7594 GB, free: 60.07 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005373/1.416, allocations: 89.7 kB / 0.7595 GB, free: 59.98 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002339/1.418, allocations: 6.047 MB / 0.7654 GB, free: 53.9 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/1.419, allocations: 1.43 MB / 0.7668 GB, free: 52.48 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001792/1.421, allocations: 1.549 MB / 0.7683 GB, free: 50.93 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.54e-05/1.421, allocations: 305.1 kB / 0.7686 GB, free: 50.63 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00393/1.425, allocations: 3.15 MB / 0.7716 GB, free: 47.48 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005193/1.43, allocations: 6.888 MB / 0.7784 GB, free: 38.79 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009986/1.44, allocations: 10.81 MB / 0.7889 GB, free: 26.15 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.802e-05/1.441, allocations: 43.92 kB / 0.789 GB, free: 26.11 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01614/1.457, allocations: 11.02 MB / 0.7997 GB, free: 15.03 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/1.457, allocations: 60 kB / 0.7998 GB, free: 14.97 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/1.457, allocations: 128 kB / 0.7999 GB, free: 14.84 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002244/1.459, allocations: 0.9803 MB / 0.8009 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005602/1.465, allocations: 1.856 MB / 0.8027 GB, free: 11.99 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009688/1.474, allocations: 10.25 MB / 0.8127 GB, free: 1.32 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005775/1.48, allocations: 450.1 kB / 0.8131 GB, free: 0.8828 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008211/1.481, allocations: 431.9 kB / 0.8135 GB, free: 472 kB / 0.5138 GB 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.007662/1.489, allocations: 4.523 MB / 0.8179 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001289/1.49, allocations: 0.571 MB / 0.8185 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01166/1.502, allocations: 6.697 MB / 0.825 GB, free: 4.598 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.328e-05/1.502, allocations: 40 kB / 0.8251 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.535e-05/1.502, allocations: 8 kB / 0.8251 GB, free: 4.551 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.62e-05/1.502, allocations: 23.91 kB / 0.8251 GB, free: 4.527 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2432/1.745, allocations: 16.47 MB / 0.8412 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/1.745, allocations: 4.5 kB / 0.8412 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003337/1.749, allocations: 0.7824 MB / 0.842 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/1.751, allocations: 0.7946 MB / 0.8427 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003515/1.751, allocations: 88.17 kB / 0.8428 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008651/1.76, allocations: 9.336 MB / 0.8519 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.76, allocations: 6.609 kB / 0.8519 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/1.773, allocations: 9.825 MB / 0.8615 GB, free: 162.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002996/1.776, allocations: 1.116 MB / 0.8626 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/1.777, allocations: 83.56 kB / 0.8627 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/1.779, allocations: 227 kB / 0.8629 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005553/1.78, allocations: 277.8 kB / 0.8632 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/1.78, allocations: 116.1 kB / 0.8633 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005482/1.785, allocations: 3.751 MB / 0.867 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.1e-07/1.785, allocations: 0 / 0.867 GB, free: 160.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008261/1.794, allocations: 2.045 MB / 0.869 GB, free: 160.7 MB / 0.5294 GB 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.0007281/1.795, allocations: 255.6 kB / 0.8692 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.805, allocations: 8.251 MB / 0.8773 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/1.805, allocations: 3.906 kB / 0.8773 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004597/1.81, allocations: 3.612 MB / 0.8808 GB, free: 155.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006623/1.816, allocations: 1.425 MB / 0.8822 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03195/1.848, allocations: 21.25 MB / 0.9029 GB, free: 135.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007295/1.856, allocations: 7.696 MB / 0.9105 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005771/1.862, allocations: 2.393 MB / 0.9128 GB, free: 125.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/1.863, allocations: 455.3 kB / 0.9132 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.113e-06/1.863, allocations: 4 kB / 0.9132 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.113/1.976, allocations: 77.46 MB / 0.9889 GB, free: 47.18 MB / 0.5294 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)