Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.001089, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001072/0.001072, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.000747/0.0007474, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4215/0.4223, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.0124/0.4347, allocations: 10.14 MB / 336.6 MB, free: 9.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008522/0.4433, allocations: 3.551 MB / 340.2 MB, free: 5.781 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002617/0.4459, allocations: 51.75 kB / 340.2 MB, free: 5.73 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002685/0.4487, allocations: 0.6562 MB / 340.9 MB, free: 5.07 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFTyping.typeBindings: time 0.003839/0.4525, allocations: 0.7884 MB / 341.7 MB, free: 4.277 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.4537, allocations: 319.5 kB / 342 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004892/0.4586, allocations: 3.413 MB / 345.4 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002618/0.4612, allocations: 1.679 MB / 347.1 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002072/0.4633, allocations: 1.097 MB / 348.2 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002251/0.4656, allocations: 1.471 MB / 349.6 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003653/0.466, allocations: 172 kB / 349.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007076/0.4667, allocations: 239.8 kB / 350 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008832/0.4676, allocations: 0.8099 MB / 350.9 MB, free: 11.03 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008763/0.4685, allocations: 0.6056 MB / 351.5 MB, free: 10.42 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004664/0.4731, allocations: 4.11 MB / 355.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.4732, allocations: 0 / 355.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4732, allocations: 0 / 355.6 MB, free: 6.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001667/0.4734, allocations: 0 / 355.6 MB, free: 6.297 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.007549/0.4809, allocations: 2.954 MB / 358.5 MB, free: 3.277 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.632e-05/0.481, allocations: 8.031 kB / 358.5 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/0.4821, allocations: 356 kB / 358.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003921/0.4861, allocations: 1.715 MB / 360.6 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.4863, allocations: 185 kB / 360.8 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005547/0.4869, allocations: 248 kB / 361 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009549/0.4965, allocations: 3.402 MB / 364.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.32e-05/0.4966, allocations: 8 kB / 364.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003323/0.4969, allocations: 104 kB / 364.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001742/0.4971, allocations: 124.8 kB / 364.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00787/0.505, allocations: 2.912 MB / 367.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02641/0.5315, allocations: 10.95 MB / 378.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004772/0.5363, allocations: 2.429 MB / 380.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003032/0.5394, allocations: 1.172 MB / 382.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003849/0.5398, allocations: 126.4 kB / 382.2 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.068e-05/0.5399, allocations: 47.88 kB / 382.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 5.64e-06/0.5399, allocations: 4 kB / 382.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.02235/0.5623, allocations: 7.251 MB / 389.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.5624, allocations: 98.38 kB / 389.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004707/0.5672, allocations: 1.823 MB / 391.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/0.5673, allocations: 53.7 kB / 391.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.5685, allocations: 1.218 MB / 392.7 MB, free: 236 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005682/0.5691, allocations: 0.4892 MB / 393.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.5692, allocations: 32 kB / 393.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.5694, allocations: 373.9 kB / 393.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/0.571, allocations: 0.851 MB / 394.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.573, allocations: 1.307 MB / 395.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00192/0.575, allocations: 1.029 MB / 396.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.218e-05/0.575, allocations: 4 kB / 396.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005549/0.5806, allocations: 2.841 MB / 399.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004315/0.581, allocations: 0.5105 MB / 400.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.196e-05/0.5811, allocations: 12 kB / 400.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001661/0.5827, allocations: 0.6669 MB / 400.8 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.5843, allocations: 363.4 kB / 401.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/0.5955, allocations: 8.303 MB / 409.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002101/0.5976, allocations: 111.8 kB / 409.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003264/0.598, allocations: 68.06 kB / 409.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.598, allocations: 4 kB / 409.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005031/0.603, allocations: 2.627 MB / 412.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.397e-05/0.6031, allocations: 16 kB / 412.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.6047, allocations: 0.6754 MB / 413 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.606, allocations: 347.4 kB / 413.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009653/0.6157, allocations: 8.3 MB / 421.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.6175, allocations: 99.97 kB / 421.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003227/0.6179, allocations: 75.98 kB / 421.8 MB, free: 1.883 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002127/0.62, allocations: 0.926 MB / 422.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006573/0.6207, allocations: 201.5 kB / 422.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/0.6257, allocations: 2.559 MB / 425.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.082e-05/0.6258, allocations: 23.97 kB / 425.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/0.6258, allocations: 4 kB / 425.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.6258, allocations: 3.984 kB / 425.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01179/0.6376, allocations: 5.429 MB / 430.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.6377, allocations: 0 / 430.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009809/0.6387, allocations: 223.7 kB / 431.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001928/0.6406, allocations: 0.6983 MB / 431.9 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.6408, allocations: 35.98 kB / 431.9 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/0.6527, allocations: 9.752 MB / 441.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.6527, allocations: 3.938 kB / 441.6 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006901/0.6596, allocations: 3.751 MB / 445.4 MB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.6613, allocations: 474.5 kB / 445.9 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007133/0.662, allocations: 32.25 kB / 445.9 MB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.6635, allocations: 103.9 kB / 446 MB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004232/0.664, allocations: 121 kB / 446.1 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.6641, allocations: 43.98 kB / 446.2 MB, free: 8.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003242/0.6674, allocations: 1.248 MB / 447.4 MB, free: 7.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6674, allocations: 0 / 447.4 MB, free: 7.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005047/0.6724, allocations: 1.004 MB / 448.4 MB, free: 6.504 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006264/0.6731, allocations: 151.1 kB / 448.6 MB, free: 6.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00799/0.6811, allocations: 4.493 MB / 453 MB, free: 1.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.6811, allocations: 4 kB / 453.1 MB, free: 1.734 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2599/0.9411, allocations: 1.73 MB / 454.8 MB, free: 111.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005263/0.9464, allocations: 0.5869 MB / 455.4 MB, free: 111.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01692/0.9634, allocations: 6.798 MB / 462.2 MB, free: 108.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/0.9661, allocations: 2.1 MB / 464.3 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003076/0.9692, allocations: 0.5888 MB / 464.9 MB, free: 107.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.9696, allocations: 131.1 kB / 465 MB, free: 107.7 MB / 382.1 MB Notification: Performance of SimCode: time 5.761e-06/0.9696, allocations: 0 / 465 MB, free: 107.7 MB / 382.1 MB Notification: Performance of Templates: time 0.06519/1.035, allocations: 38.49 MB / 0.4917 GB, free: 72.81 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)