Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001374/0.001374, allocations: 88.08 kB / 16.31 MB, free: 6.449 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.001356/0.001356, allocations: 184.9 kB / 17.21 MB, free: 6.32 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.774/1.774, allocations: 205.4 MB / 223.4 MB, free: 5.75 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.0004873/0.0004875, allocations: 16 kB / 280.2 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3289, allocations: 47.58 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking): time 0.01163/0.3405, allocations: 10.13 MB / 337.9 MB, free: 9.387 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008239/0.3488, allocations: 3.566 MB / 341.4 MB, free: 5.809 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002561/0.3514, allocations: 51.75 kB / 341.5 MB, free: 5.758 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002764/0.3542, allocations: 0.6562 MB / 342.1 MB, free: 5.098 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.004361/0.3586, allocations: 0.7884 MB / 342.9 MB, free: 4.305 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.3601, allocations: 319.5 kB / 343.2 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007307/0.3675, allocations: 3.409 MB / 346.6 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004172/0.3717, allocations: 1.675 MB / 348.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.3745, allocations: 1.097 MB / 349.4 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003529/0.378, allocations: 1.483 MB / 350.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000907/0.3789, allocations: 168 kB / 351.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.3805, allocations: 227.9 kB / 351.3 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.382, allocations: 0.8138 MB / 352.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001505/0.3835, allocations: 0.6056 MB / 352.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00562/0.3892, allocations: 4.106 MB / 356.8 MB, free: 6.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3892, allocations: 3.938 kB / 356.8 MB, free: 6.332 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3892, allocations: 0 / 356.8 MB, free: 6.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002261/0.3894, allocations: 0 / 356.8 MB, free: 6.332 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.01175/0.4012, allocations: 2.966 MB / 359.8 MB, free: 3.301 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.4013, allocations: 8.031 kB / 359.8 MB, free: 3.293 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.4031, allocations: 352 kB / 360.1 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005009/0.4082, allocations: 1.707 MB / 361.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/0.4084, allocations: 193 kB / 362 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006576/0.4091, allocations: 240 kB / 362.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009042/0.4181, allocations: 3.41 MB / 365.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.362e-05/0.4183, allocations: 3.984 kB / 365.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003633/0.4187, allocations: 108 kB / 365.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001836/0.4188, allocations: 116.8 kB / 365.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007829/0.4267, allocations: 2.919 MB / 368.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02553/0.4522, allocations: 10.95 MB / 379.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0042/0.4565, allocations: 2.414 MB / 382.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002633/0.4592, allocations: 1.184 MB / 383.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003551/0.4596, allocations: 138.3 kB / 383.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.4596, allocations: 47.81 kB / 383.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 4.348e-06/0.4596, allocations: 0 / 383.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.02385/0.4835, allocations: 7.246 MB / 390.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.4837, allocations: 94.38 kB / 390.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005178/0.4889, allocations: 1.827 MB / 392.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/0.4892, allocations: 49.7 kB / 392.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.4907, allocations: 1.218 MB / 394 MB, free: 272 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008456/0.4916, allocations: 0.497 MB / 394.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.4918, allocations: 32 kB / 394.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002757/0.4921, allocations: 373.9 kB / 394.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002359/0.4945, allocations: 0.8393 MB / 395.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002389/0.4969, allocations: 1.314 MB / 397 MB, free: 13.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002573/0.4995, allocations: 1.033 MB / 398.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-05/0.4995, allocations: 4 kB / 398.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007883/0.5074, allocations: 2.849 MB / 400.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005851/0.508, allocations: 0.5055 MB / 401.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.533e-05/0.5081, allocations: 12 kB / 401.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002266/0.5104, allocations: 0.6668 MB / 402.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002081/0.5125, allocations: 359.4 kB / 402.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/0.5267, allocations: 8.303 MB / 410.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/0.5296, allocations: 111.8 kB / 410.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004728/0.5301, allocations: 72 kB / 410.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.5302, allocations: 4 kB / 410.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007481/0.5377, allocations: 2.623 MB / 413.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.798e-05/0.5378, allocations: 16 kB / 413.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002299/0.5401, allocations: 0.6792 MB / 414.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.5422, allocations: 351.4 kB / 414.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/0.557, allocations: 8.292 MB / 422.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002691/0.5598, allocations: 99.91 kB / 423 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004974/0.5603, allocations: 71.98 kB / 423.1 MB, free: 1.918 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.003094/0.5634, allocations: 0.9261 MB / 424 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009106/0.5644, allocations: 205.6 kB / 424.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006981/0.5714, allocations: 2.559 MB / 426.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/0.5714, allocations: 20.11 kB / 426.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.815e-05/0.5714, allocations: 3.938 kB / 426.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.171e-05/0.5715, allocations: 11.92 kB / 426.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/0.5879, allocations: 5.429 MB / 432.2 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.588, allocations: 4 kB / 432.2 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.5894, allocations: 231.9 kB / 432.4 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002636/0.592, allocations: 0.6825 MB / 433.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/0.5922, allocations: 35.98 kB / 433.1 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01692/0.6092, allocations: 9.756 MB / 442.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/0.6092, allocations: 4.031 kB / 442.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/0.6196, allocations: 3.762 MB / 446.7 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/0.6217, allocations: 474.5 kB / 447.1 MB, free: 9.055 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008662/0.6226, allocations: 28 kB / 447.2 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/0.6244, allocations: 96.14 kB / 447.3 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004453/0.6249, allocations: 125 kB / 447.4 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001774/0.6251, allocations: 47.98 kB / 447.4 MB, free: 8.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003685/0.6288, allocations: 1.244 MB / 448.7 MB, free: 7.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6288, allocations: 0 / 448.7 MB, free: 7.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006292/0.6351, allocations: 0.9999 MB / 449.7 MB, free: 6.531 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.0005212/0.6357, allocations: 155 kB / 449.8 MB, free: 6.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007953/0.6437, allocations: 4.49 MB / 454.3 MB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.6437, allocations: 384 / 454.3 MB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2248/0.8685, allocations: 1.729 MB / 456 MB, free: 110.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004272/0.8728, allocations: 0.5841 MB / 456.6 MB, free: 110.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.8867, allocations: 6.814 MB / 463.4 MB, free: 107.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/0.8885, allocations: 2.095 MB / 465.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002374/0.8909, allocations: 0.5842 MB / 466.1 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.8913, allocations: 128.6 kB / 466.2 MB, free: 106.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.884e-06/0.8913, allocations: 7.969 kB / 466.3 MB, free: 106.8 MB / 382.1 MB Notification: Performance of Templates: time 0.0614/0.9527, allocations: 38.49 MB / 0.4929 GB, free: 72.25 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)