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.0008639/0.0008637, allocations: 98.19 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.009373/0.009373, allocations: 173.7 kB / 16.27 MB, free: 6.648 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.785/1.785, allocations: 205.4 MB / 222.4 MB, free: 5.809 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.000654/0.000654, allocations: 12 kB / 279.5 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.402, allocations: 47.59 MB / 327 MB, free: 1.215 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.02105/0.4231, allocations: 10.78 MB / 337.8 MB, free: 8.465 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01569/0.4389, allocations: 3.697 MB / 341.5 MB, free: 4.754 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004482/0.4435, allocations: 51.75 kB / 341.6 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004504/0.4481, allocations: 0.7186 MB / 342.3 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007003/0.4551, allocations: 0.8392 MB / 343.1 MB, free: 3.137 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003055/0.4582, allocations: 443.5 kB / 343.6 MB, free: 2.703 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.4683, allocations: 3.776 MB / 347.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006474/0.4749, allocations: 2.112 MB / 349.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004435/0.4794, allocations: 1.105 MB / 350.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004992/0.4844, allocations: 1.54 MB / 352.1 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001682/0.4862, allocations: 171.9 kB / 352.3 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002853/0.489, allocations: 267.8 kB / 352.5 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002654/0.4917, allocations: 0.8214 MB / 353.3 MB, free: 8.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005337/0.4971, allocations: 1.486 MB / 354.8 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.5081, allocations: 4.768 MB / 359.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.821e-05/0.5082, allocations: 4 kB / 359.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.833e-06/0.5082, allocations: 0 / 359.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0003264/0.5086, allocations: 0 / 359.6 MB, free: 2.543 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.01299/0.5216, allocations: 2.934 MB / 362.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.92e-05/0.5217, allocations: 12.03 kB / 362.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003038/0.5247, allocations: 349 kB / 362.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007297/0.532, allocations: 1.758 MB / 364.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004339/0.5325, allocations: 193.1 kB / 364.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/0.5343, allocations: 251.9 kB / 365.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.5475, allocations: 3.414 MB / 368.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.5477, allocations: 11.84 kB / 368.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004198/0.5481, allocations: 104 kB / 368.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002107/0.5483, allocations: 116.8 kB / 368.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008861/0.5572, allocations: 2.935 MB / 371.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02696/0.5842, allocations: 10.95 MB / 382.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004409/0.5887, allocations: 2.441 MB / 385.1 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002625/0.5913, allocations: 1.184 MB / 386.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.5917, allocations: 122.4 kB / 386.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.179e-05/0.5917, allocations: 51.88 kB / 386.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 6.632e-06/0.5918, allocations: 0 / 386.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.0181/0.6099, allocations: 7.293 MB / 393.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.61, allocations: 94.42 kB / 393.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003525/0.6136, allocations: 1.831 MB / 395.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.6137, allocations: 49.7 kB / 395.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.6148, allocations: 1.218 MB / 396.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004889/0.6153, allocations: 0.4929 MB / 397.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/0.6155, allocations: 149.6 kB / 397.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.6158, allocations: 301.1 kB / 397.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.6172, allocations: 0.8511 MB / 398.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.6189, allocations: 1.322 MB / 400 MB, free: 9.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00326/0.6222, allocations: 2.268 MB / 402.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.6222, allocations: 4 kB / 402.3 MB, free: 6.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005631/0.6279, allocations: 2.868 MB / 405.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007794/0.6287, allocations: 0.4949 MB / 405.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.207e-05/0.6287, allocations: 16 kB / 405.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/0.6304, allocations: 0.6668 MB / 406.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.6318, allocations: 359.4 kB / 406.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/0.6423, allocations: 8.306 MB / 415 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.6445, allocations: 111.8 kB / 415.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.6447, allocations: 67.98 kB / 415.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.6447, allocations: 11.03 kB / 415.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004322/0.649, allocations: 2.642 MB / 417.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/0.6491, allocations: 16 kB / 417.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/0.6505, allocations: 0.6751 MB / 418.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.6517, allocations: 355.4 kB / 418.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00895/0.6607, allocations: 8.315 MB / 427.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.6626, allocations: 108 kB / 427.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.6627, allocations: 64.12 kB / 427.3 MB, free: 12.44 MB / 366.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_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].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 (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): 2 systems {(2,9,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.002093/0.6648, allocations: 0.9336 MB / 428.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004765/0.6653, allocations: 201.6 kB / 428.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004329/0.6696, allocations: 2.574 MB / 431 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.6697, allocations: 12 kB / 431 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.6697, allocations: 4 kB / 431 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.6697, allocations: 7.969 kB / 431 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00908/0.6788, allocations: 5.445 MB / 436.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.6788, allocations: 192 / 436.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009144/0.6797, allocations: 219.7 kB / 436.7 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/0.6814, allocations: 0.7024 MB / 437.4 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.795e-05/0.6815, allocations: 35.98 kB / 437.4 MB, free: 2.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/0.6921, allocations: 9.767 MB / 447.2 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.6921, allocations: 4.156 kB / 447.2 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006195/0.6983, allocations: 3.766 MB / 451 MB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/0.6997, allocations: 474.5 kB / 451.4 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.7, allocations: 35.98 kB / 451.5 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.701, allocations: 99.89 kB / 451.6 MB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.7014, allocations: 113.1 kB / 451.7 MB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-05/0.7015, allocations: 36 kB / 451.7 MB, free: 3.258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002034/0.7035, allocations: 1.275 MB / 453 MB, free: 1.992 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7035, allocations: 0 / 453 MB, free: 1.992 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00345/0.707, allocations: 0.9961 MB / 454 MB, free: 0.9961 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 (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): 3 systems {(2,9,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004596/0.7074, allocations: 199 kB / 454.2 MB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2993/1.007, allocations: 4.503 MB / 458.7 MB, free: 110 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-05/1.007, allocations: 1.031 kB / 458.7 MB, free: 110 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003733/1.011, allocations: 1.73 MB / 460.4 MB, free: 109.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004925/1.016, allocations: 0.5826 MB / 461 MB, free: 109.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/1.029, allocations: 7.094 MB / 468.1 MB, free: 105.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001938/1.031, allocations: 2.105 MB / 470.2 MB, free: 104.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002559/1.034, allocations: 0.5833 MB / 470.8 MB, free: 104.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003987/1.034, allocations: 131.6 kB / 470.9 MB, free: 104.7 MB / 382.1 MB Notification: Performance of SimCode: time 2.364e-06/1.034, allocations: 6.156 kB / 470.9 MB, free: 104.7 MB / 382.1 MB Notification: Performance of Templates: time 0.07486/1.109, allocations: 39.51 MB / 0.4985 GB, free: 65.93 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)