Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008648/0.008649, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001697/0.001697, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.63/1.63, allocations: 205.1 MB / 222.6 MB, free: 4.469 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.001334/0.001334, allocations: 51.53 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1156, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.02398/0.1397, allocations: 11.61 MB / 384.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.154, allocations: 3.945 MB / 388.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004083/0.1582, allocations: 67.62 kB / 388.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005066/0.1633, allocations: 0.8654 MB / 389.7 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006608/0.17, allocations: 0.9551 MB / 390.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.173, allocations: 0.5149 MB / 391.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007722/0.1807, allocations: 3.305 MB / 394.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007196/0.188, allocations: 2.981 MB / 397.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004267/0.1923, allocations: 1.53 MB / 399 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005233/0.1976, allocations: 1.969 MB / 400.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001995/0.1996, allocations: 424 kB / 401.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003813/0.2035, allocations: 0.5271 MB / 401.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004185/0.2077, allocations: 1.216 MB / 403.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006926/0.2147, allocations: 1.886 MB / 405 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01242/0.2271, allocations: 5.531 MB / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.2272, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2272, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002172/0.2274, allocations: 4 kB / 410.5 MB, free: 11.78 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01433/0.2418, allocations: 3.896 MB / 414.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.709e-05/0.2419, allocations: 15.89 kB / 414.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001736/0.2436, allocations: 406.5 kB / 414.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005163/0.2488, allocations: 1.959 MB / 416.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.2491, allocations: 214 kB / 417 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006423/0.2498, allocations: 295.8 kB / 417.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01008/0.2598, allocations: 3.701 MB / 421 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.26, allocations: 7.938 kB / 421 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003689/0.2604, allocations: 120 kB / 421.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002067/0.2606, allocations: 137.5 kB / 421.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008538/0.2691, allocations: 3.106 MB / 424.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/0.2981, allocations: 11.54 MB / 435.9 MB, free: 1.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002763/0.3009, allocations: 1.908 MB / 437.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.3028, allocations: 1.072 MB / 438.9 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004056/0.3032, allocations: 207.2 kB / 439.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.11e-05/0.3033, allocations: 43.56 kB / 439.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 4.308e-06/0.3033, allocations: 0 / 439.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01382/0.3171, allocations: 6.583 MB / 445.7 MB, free: 7.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.3172, allocations: 64.72 kB / 445.7 MB, free: 7.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/0.3217, allocations: 1.994 MB / 447.7 MB, free: 5.645 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.3219, allocations: 49.7 kB / 447.8 MB, free: 5.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001356/0.3233, allocations: 1.444 MB / 449.2 MB, free: 4.133 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000565/0.3239, allocations: 0.5035 MB / 449.7 MB, free: 3.625 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006459/0.3245, allocations: 327.4 kB / 450.1 MB, free: 3.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3247, allocations: 309 kB / 450.4 MB, free: 2.992 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.3261, allocations: 0.8159 MB / 451.2 MB, free: 2.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/0.328, allocations: 1.379 MB / 452.6 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.29/0.618, allocations: 2.369 MB / 454.9 MB, free: 67.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.021e-05/0.6181, allocations: 6.531 kB / 454.9 MB, free: 67.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00784/0.6259, allocations: 2.86 MB / 457.8 MB, free: 66.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.926e-05/0.626, allocations: 13 kB / 457.8 MB, free: 66.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.975e-05/0.6261, allocations: 22.09 kB / 457.8 MB, free: 66.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.6273, allocations: 386.9 kB / 458.2 MB, free: 66.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001788/0.6291, allocations: 433.3 kB / 458.6 MB, free: 66.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007332/0.6365, allocations: 6.699 MB / 465.3 MB, free: 60.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/0.6386, allocations: 133.6 kB / 465.5 MB, free: 60.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.6388, allocations: 80.67 kB / 465.5 MB, free: 60.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001897/0.6407, allocations: 0.9118 MB / 466.4 MB, free: 60.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005034/0.6412, allocations: 215.6 kB / 466.7 MB, free: 60.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006288/0.6475, allocations: 2.422 MB / 469.1 MB, free: 59.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.08e-05/0.6476, allocations: 15.12 kB / 469.1 MB, free: 59.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.847e-05/0.6476, allocations: 2.75 kB / 469.1 MB, free: 59.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.5e-05/0.6476, allocations: 7.312 kB / 469.1 MB, free: 59.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.6593, allocations: 5.514 MB / 474.6 MB, free: 57.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.6594, allocations: 3.938 kB / 474.6 MB, free: 57.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6604, allocations: 264.2 kB / 474.9 MB, free: 57.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.6614, allocations: 403.9 kB / 475.3 MB, free: 56.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.677e-05/0.6616, allocations: 35.67 kB / 475.3 MB, free: 56.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006426/0.668, allocations: 8.251 MB / 483.6 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.668, allocations: 3.781 kB / 483.6 MB, free: 49.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005492/0.6735, allocations: 3.632 MB / 487.2 MB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.6751, allocations: 468.8 kB / 487.6 MB, free: 47.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007438/0.6758, allocations: 39.98 kB / 487.7 MB, free: 47.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/0.6775, allocations: 87.89 kB / 487.8 MB, free: 46.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.6778, allocations: 105 kB / 487.9 MB, free: 46.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.678, allocations: 51.98 kB / 487.9 MB, free: 46.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003412/0.6814, allocations: 1.357 MB / 489.3 MB, free: 45.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6814, allocations: 0 / 489.3 MB, free: 45.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003738/0.6852, allocations: 0.5371 MB / 489.8 MB, free: 44.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * 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 {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005956/0.6858, allocations: 196.9 kB / 490 MB, free: 44.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003778/0.6896, allocations: 2.505 MB / 492.5 MB, free: 42.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/0.6896, allocations: 2.906 kB / 492.5 MB, free: 42.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00184/0.6914, allocations: 1.492 MB / 494 MB, free: 40.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/0.6947, allocations: 0.5391 MB / 494.6 MB, free: 40.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.7054, allocations: 5.747 MB / 0.4886 GB, free: 34.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002835/0.7083, allocations: 2.209 MB / 0.4907 GB, free: 32.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001761/0.7101, allocations: 0.494 MB / 0.4912 GB, free: 31.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006776/0.7108, allocations: 151.4 kB / 0.4914 GB, free: 31.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.7108, allocations: 0 / 0.4914 GB, free: 31.42 MB / 382.1 MB Notification: Performance of Templates: time 0.04832/0.7591, allocations: 30.13 MB / 0.5208 GB, free: 1.262 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)