Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009066/0.009066, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.502/1.502, allocations: 205.4 MB / 222.4 MB, free: 5.781 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.0004368/0.0004369, allocations: 8 kB / 279.5 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2612, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01611/0.2774, allocations: 14.9 MB / 341.9 MB, free: 4.441 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.2908, allocations: 5.27 MB / 347.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00511/0.296, allocations: 87.56 kB / 347.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003895/0.2999, allocations: 0.9636 MB / 348.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006248/0.3062, allocations: 1.201 MB / 349.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003771/0.31, allocations: 0.8772 MB / 350.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00762/0.3177, allocations: 4.072 MB / 354.4 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005545/0.3232, allocations: 2.962 MB / 357.4 MB, free: 4.898 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002789/0.326, allocations: 1.33 MB / 358.7 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003791/0.3299, allocations: 1.816 MB / 360.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001244/0.3311, allocations: 208 kB / 360.7 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.3338, allocations: 439.7 kB / 361.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001637/0.3354, allocations: 0.9028 MB / 362 MB, free: 204 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003801/0.3392, allocations: 1.843 MB / 363.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009454/0.3487, allocations: 6.427 MB / 370.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3487, allocations: 0 / 370.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3487, allocations: 0 / 370.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002846/0.349, allocations: 0 / 370.3 MB, free: 7.891 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01172/0.3608, allocations: 3.917 MB / 374.2 MB, free: 3.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.3608, allocations: 12.02 kB / 374.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003774/0.3646, allocations: 0.6715 MB / 374.9 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005536/0.3702, allocations: 2.342 MB / 377.3 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002921/0.3705, allocations: 271.5 kB / 377.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009273/0.3714, allocations: 351.8 kB / 377.9 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009293/0.3807, allocations: 4.46 MB / 382.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.71e-05/0.3809, allocations: 7.844 kB / 382.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003457/0.3812, allocations: 140 kB / 382.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001813/0.3814, allocations: 162.8 kB / 382.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007255/0.3887, allocations: 3.735 MB / 386.4 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02595/0.4146, allocations: 14.58 MB / 400.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005504/0.4202, allocations: 5.364 MB / 406.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/0.4223, allocations: 1.275 MB / 407.6 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006887/0.4292, allocations: 3.823 MB / 411.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.4293, allocations: 43.88 kB / 411.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 4.008e-06/0.4293, allocations: 0 / 411.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.01035/0.4396, allocations: 5.49 MB / 416.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.4397, allocations: 68.72 kB / 417 MB, free: 7.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/0.4431, allocations: 2.102 MB / 419.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001787/0.4433, allocations: 45.7 kB / 419.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.4445, allocations: 1.653 MB / 420.8 MB, free: 3.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004747/0.445, allocations: 469.3 kB / 421.3 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.4453, allocations: 145.6 kB / 421.4 MB, free: 3.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4454, allocations: 301.1 kB / 421.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.4466, allocations: 0.7184 MB / 422.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001551/0.4481, allocations: 1.357 MB / 423.8 MB, free: 456 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.451, allocations: 2.231 MB / 426 MB, free: 13.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.4511, allocations: 7.938 kB / 426 MB, free: 13.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.0043/0.4554, allocations: 2.518 MB / 428.5 MB, free: 11.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.4554, allocations: 16.09 kB / 428.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-05/0.4555, allocations: 24 kB / 428.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004587/0.4559, allocations: 146.4 kB / 428.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/0.4578, allocations: 463.3 kB / 429.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003071/0.4609, allocations: 3.083 MB / 432.3 MB, free: 7.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/0.463, allocations: 107.8 kB / 432.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/0.4632, allocations: 87.92 kB / 432.4 MB, free: 7.176 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002345/0.4656, allocations: 1.051 MB / 433.5 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004969/0.4661, allocations: 221.3 kB / 433.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004056/0.4701, allocations: 2.181 MB / 435.9 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.427e-05/0.4702, allocations: 16 kB / 435.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/0.4702, allocations: 4 kB / 435.9 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.4702, allocations: 11.97 kB / 435.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00966/0.4799, allocations: 5.169 MB / 441.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.48, allocations: 0 / 441.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009992/0.481, allocations: 231.7 kB / 441.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007053/0.4817, allocations: 275.2 kB / 441.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.19e-05/0.4818, allocations: 31.98 kB / 441.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006622/0.4884, allocations: 7.115 MB / 448.7 MB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.4885, allocations: 8.125 kB / 448.7 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005061/0.4935, allocations: 3.179 MB / 451.9 MB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.4947, allocations: 466.2 kB / 452.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.4949, allocations: 28 kB / 452.4 MB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.496, allocations: 71.92 kB / 452.5 MB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.4962, allocations: 100.8 kB / 452.6 MB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.713e-05/0.4963, allocations: 36 kB / 452.6 MB, free: 2.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002276/0.4986, allocations: 1.431 MB / 454 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4986, allocations: 0 / 454 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002482/0.5011, allocations: 0.5586 MB / 454.6 MB, free: 132 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1954/0.6965, allocations: 155 kB / 454.7 MB, free: 111.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00484/0.7014, allocations: 2.103 MB / 456.9 MB, free: 111.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.7014, allocations: 0 / 456.9 MB, free: 111.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002231/0.7036, allocations: 1.376 MB / 458.2 MB, free: 110.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/0.7073, allocations: 0.5177 MB / 458.7 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.7178, allocations: 7.728 MB / 466.5 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/0.7196, allocations: 2.411 MB / 468.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001763/0.7214, allocations: 499 kB / 469.4 MB, free: 104.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003881/0.7218, allocations: 159.1 kB / 469.5 MB, free: 104.8 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7218, allocations: 0 / 469.5 MB, free: 104.8 MB / 382.1 MB Notification: Performance of Templates: time 0.0431/0.7649, allocations: 27.07 MB / 496.6 MB, free: 79 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)