Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001494/0.001494, allocations: 199.7 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007936/0.0007937, allocations: 94.09 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.496e-05/1.497e-05, allocations: 0 / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08387, allocations: 51.48 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2958/0.3797, allocations: 101.5 MB / 496.7 MB, free: 7.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.38, allocations: 86.33 kB / 496.8 MB, free: 7.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09147/0.4715, allocations: 34.74 MB / 0.519 GB, free: 10.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4715, allocations: 0 / 0.519 GB, free: 10.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001169/0.4716, allocations: 39.94 kB / 0.5191 GB, free: 10.01 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003264/0.4749, allocations: 1.643 MB / 0.5207 GB, free: 8.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.544e-05/0.475, allocations: 12.03 kB / 0.5207 GB, free: 8.309 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007451/0.4757, allocations: 221.7 kB / 0.5209 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.4779, allocations: 1.187 MB / 0.5221 GB, free: 6.859 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.281e-05/0.4779, allocations: 48 kB / 0.5221 GB, free: 6.812 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.4782, allocations: 99.91 kB / 0.5222 GB, free: 6.715 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002326/0.4805, allocations: 1.396 MB / 0.5236 GB, free: 5.316 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002767/0.4833, allocations: 1.695 MB / 0.5252 GB, free: 3.539 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.82e-05/0.4833, allocations: 7.984 kB / 0.5252 GB, free: 3.531 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001195/0.4835, allocations: 3.953 kB / 0.5252 GB, free: 3.527 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-05/0.4836, allocations: 74.86 kB / 0.5253 GB, free: 3.453 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008577/0.4921, allocations: 5.994 MB / 0.5312 GB, free: 13.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.4934, allocations: 0.8342 MB / 0.532 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008756/0.4943, allocations: 0.5638 MB / 0.5325 GB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002545/0.4945, allocations: 129.6 kB / 0.5326 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.4946, allocations: 43.08 kB / 0.5327 GB, free: 11.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 2.485e-06/0.4946, allocations: 0 / 0.5327 GB, free: 11.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.007743/0.5023, allocations: 4.155 MB / 0.5367 GB, free: 7.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.5024, allocations: 60.19 kB / 0.5368 GB, free: 7.355 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.5035, allocations: 0.7766 MB / 0.5376 GB, free: 6.559 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.704e-05/0.5036, allocations: 29.7 kB / 0.5376 GB, free: 6.523 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004645/0.504, allocations: 0.7668 MB / 0.5383 GB, free: 5.742 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.5043, allocations: 331.2 kB / 0.5387 GB, free: 5.414 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.5044, allocations: 4 kB / 0.5387 GB, free: 5.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.5045, allocations: 353.9 kB / 0.539 GB, free: 5.059 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007102/0.5052, allocations: 0.5414 MB / 0.5395 GB, free: 4.516 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008972/0.5061, allocations: 0.8735 MB / 0.5404 GB, free: 3.496 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000968/0.5071, allocations: 0.705 MB / 0.5411 GB, free: 2.793 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.5071, allocations: 0 / 0.5411 GB, free: 2.793 MB / 410.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003106/0.5102, allocations: 1.985 MB / 0.543 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.5102, allocations: 19.98 kB / 0.543 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.5103, allocations: 8 kB / 0.543 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.5116, allocations: 0.5709 MB / 0.5436 GB, free: 168 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00089/0.5125, allocations: 263.6 kB / 0.5438 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007136/0.5197, allocations: 7.752 MB / 0.5514 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007999/0.5205, allocations: 47.84 kB / 0.5515 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.5206, allocations: 55.97 kB / 0.5515 GB, free: 7.594 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.5208, allocations: 136.8 kB / 0.5516 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002098/0.521, allocations: 110.7 kB / 0.5517 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.5242, allocations: 1.85 MB / 0.5536 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-06/0.5242, allocations: 15.94 kB / 0.5536 GB, free: 5.453 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.5242, allocations: 4 kB / 0.5536 GB, free: 5.449 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.5242, allocations: 3.984 kB / 0.5536 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006048/0.5303, allocations: 3.725 MB / 0.5572 GB, free: 1.637 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.5303, allocations: 3.938 kB / 0.5572 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.5308, allocations: 119.8 kB / 0.5573 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.5326, allocations: 0.7212 MB / 0.558 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.7e-05/0.5326, allocations: 11.98 kB / 0.558 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00917/0.5418, allocations: 8.1 MB / 0.566 GB, free: 8.324 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5418, allocations: 0 / 0.566 GB, free: 8.324 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/0.5458, allocations: 2.744 MB / 0.5686 GB, free: 5.469 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004879/0.5463, allocations: 307.7 kB / 0.5689 GB, free: 5.148 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001427/0.5465, allocations: 8 kB / 0.5689 GB, free: 5.141 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.5471, allocations: 43.94 kB / 0.569 GB, free: 5.098 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.5473, allocations: 88.55 kB / 0.5691 GB, free: 5.008 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.5473, allocations: 28 kB / 0.5691 GB, free: 4.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007637/0.5481, allocations: 0.5865 MB / 0.5697 GB, free: 4.383 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5481, allocations: 0 / 0.5697 GB, free: 4.383 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001274/0.5494, allocations: 360 kB / 0.57 GB, free: 4.031 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (imc.inertiaRotor.phi,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * 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: 3 {(7,63.3%) 22,(1,100.0%) 1,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004457/0.5499, allocations: 291.9 kB / 0.5703 GB, free: 3.746 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002929/0.5528, allocations: 2.133 MB / 0.5724 GB, free: 1.535 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5528, allocations: 0 / 0.5724 GB, free: 1.535 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.5548, allocations: 1.368 MB / 0.5737 GB, free: 116 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1823/0.7371, allocations: 254.5 kB / 0.5739 GB, free: 101.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003928/0.741, allocations: 2.681 MB / 0.5766 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00083/0.7419, allocations: 1.516 MB / 0.578 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007556/0.7427, allocations: 248.8 kB / 0.5783 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.7428, allocations: 76.28 kB / 0.5784 GB, free: 100.5 MB / 442.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7429, allocations: 0 / 0.5784 GB, free: 100.5 MB / 442.7 MB Notification: Performance of Templates: time 0.02619/0.769, allocations: 18.61 MB / 0.5965 GB, free: 99.66 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)