Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0009666/0.0009667, 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.007991/0.007992, allocations: 172 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.812/1.812, allocations: 205.4 MB / 222.5 MB, free: 5.57 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.0006314/0.0006314, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3713, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.01462/0.3861, allocations: 10.78 MB / 337.8 MB, free: 8.566 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.3974, allocations: 3.705 MB / 341.5 MB, free: 4.848 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004208/0.4017, allocations: 51.69 kB / 341.6 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003314/0.405, allocations: 0.7186 MB / 342.3 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005472/0.4105, allocations: 0.8392 MB / 343.1 MB, free: 3.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.4129, allocations: 443.4 kB / 343.6 MB, free: 2.797 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007395/0.4203, allocations: 3.78 MB / 347.3 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003705/0.4241, allocations: 2.105 MB / 349.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.4267, allocations: 1.116 MB / 350.6 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003435/0.4302, allocations: 1.525 MB / 352.1 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006569/0.4309, allocations: 168 kB / 352.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001243/0.4321, allocations: 267.8 kB / 352.5 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.4333, allocations: 0.8253 MB / 353.3 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002408/0.4357, allocations: 1.482 MB / 354.8 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006571/0.4423, allocations: 4.78 MB / 359.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/0.4424, allocations: 4 kB / 359.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.4424, allocations: 0 / 359.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002456/0.4427, allocations: 0 / 359.6 MB, free: 2.637 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.01089/0.4536, allocations: 2.931 MB / 362.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001068/0.4537, allocations: 12.03 kB / 362.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002654/0.4564, allocations: 349 kB / 362.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005724/0.4621, allocations: 1.765 MB / 364.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.4624, allocations: 193.1 kB / 364.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009163/0.4634, allocations: 251.9 kB / 365.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0089/0.4723, allocations: 3.414 MB / 368.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.4725, allocations: 15.83 kB / 368.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.4728, allocations: 104 kB / 368.6 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001925/0.473, allocations: 116.8 kB / 368.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005633/0.4786, allocations: 2.931 MB / 371.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01971/0.4983, allocations: 10.95 MB / 382.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003435/0.5018, allocations: 2.429 MB / 385 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/0.5038, allocations: 1.191 MB / 386.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002953/0.5041, allocations: 130.4 kB / 386.4 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.265e-05/0.5042, allocations: 47.88 kB / 386.4 MB, free: 7.086 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 5.13e-06/0.5042, allocations: 3.938 kB / 386.4 MB, free: 7.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.0174/0.5216, allocations: 7.293 MB / 393.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/0.5217, allocations: 90.42 kB / 393.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003296/0.525, allocations: 1.835 MB / 395.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/0.5252, allocations: 49.7 kB / 395.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.5266, allocations: 1.218 MB / 396.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007642/0.5274, allocations: 0.4968 MB / 397.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.5276, allocations: 145.6 kB / 397.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.5278, allocations: 301.1 kB / 397.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.5292, allocations: 0.8511 MB / 398.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001984/0.5312, allocations: 1.322 MB / 400 MB, free: 9.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/0.5345, allocations: 2.264 MB / 402.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.281e-05/0.5346, allocations: 4 kB / 402.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005353/0.5399, allocations: 2.864 MB / 405.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005227/0.5405, allocations: 0.4988 MB / 405.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.863e-05/0.5405, allocations: 16 kB / 405.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/0.5423, allocations: 0.6629 MB / 406.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.5436, allocations: 367.4 kB / 406.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009165/0.5527, allocations: 8.299 MB / 415 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.5548, allocations: 111.8 kB / 415.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.555, allocations: 72 kB / 415.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.555, allocations: 6.969 kB / 415.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004208/0.5592, allocations: 2.642 MB / 417.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/0.5593, allocations: 16 kB / 417.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.5607, allocations: 0.6792 MB / 418.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.5619, allocations: 347.5 kB / 418.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009755/0.5716, allocations: 8.315 MB / 427.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/0.574, allocations: 108.1 kB / 427.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003117/0.5743, allocations: 68 kB / 427.3 MB, free: 12.53 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.002504/0.5768, allocations: 0.9297 MB / 428.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007285/0.5776, allocations: 205.6 kB / 428.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006026/0.5836, allocations: 2.566 MB / 431 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.5837, allocations: 12 kB / 431 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-05/0.5837, allocations: 4 kB / 431 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.12e-05/0.5838, allocations: 8.078 kB / 431 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/0.597, allocations: 5.449 MB / 436.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.5971, allocations: 0 / 436.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.5981, allocations: 223.7 kB / 436.7 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/0.6001, allocations: 0.6944 MB / 437.4 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001635/0.6003, allocations: 28 kB / 437.4 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/0.6131, allocations: 9.783 MB / 447.2 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.6132, allocations: 8.031 kB / 447.2 MB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007208/0.6204, allocations: 3.758 MB / 451 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/0.622, allocations: 474.5 kB / 451.4 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008184/0.6228, allocations: 39.98 kB / 451.5 MB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001654/0.6245, allocations: 95.89 kB / 451.6 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004311/0.625, allocations: 113.1 kB / 451.7 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.6251, allocations: 43.98 kB / 451.7 MB, free: 3.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003205/0.6283, allocations: 1.264 MB / 453 MB, free: 2.094 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6284, allocations: 0 / 453 MB, free: 2.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005239/0.6336, allocations: 0.9961 MB / 454 MB, free: 1.098 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.0006238/0.6343, allocations: 194.9 kB / 454.2 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2482/0.8825, allocations: 4.505 MB / 458.7 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.494e-05/0.8826, allocations: 4.906 kB / 458.7 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003289/0.8859, allocations: 1.726 MB / 460.4 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004491/0.8904, allocations: 0.5919 MB / 461 MB, free: 109.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.9025, allocations: 7.097 MB / 468.1 MB, free: 106.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001772/0.9043, allocations: 2.097 MB / 470.2 MB, free: 105.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002068/0.9063, allocations: 0.5807 MB / 470.8 MB, free: 105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.9067, allocations: 136.2 kB / 470.9 MB, free: 105 MB / 382.1 MB Notification: Performance of SimCode: time 2.064e-06/0.9067, allocations: 0 / 470.9 MB, free: 105 MB / 382.1 MB Notification: Performance of Templates: time 0.07048/0.9772, allocations: 39.52 MB / 0.4985 GB, free: 66.02 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)