Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001496/0.001496, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.389/1.389, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 59.91 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.226, allocations: 50.54 MB / 410.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01008/0.2361, allocations: 8.238 MB / 418.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00478/0.2409, allocations: 2.738 MB / 421.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000578/0.2414, allocations: 39.88 kB / 421.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.243, allocations: 0.6523 MB / 421.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001439/0.2444, allocations: 0.6718 MB / 422.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005558/0.2449, allocations: 283.6 kB / 422.8 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002128/0.2471, allocations: 2.035 MB / 424.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.2483, allocations: 1.019 MB / 425.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/0.2495, allocations: 0.911 MB / 426.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.2508, allocations: 1.062 MB / 427.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002874/0.251, allocations: 235.9 kB / 428.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005047/0.2516, allocations: 311.8 kB / 428.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006292/0.2522, allocations: 0.6388 MB / 429 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.2532, allocations: 1.027 MB / 430.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003045/0.2562, allocations: 3.005 MB / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2562, allocations: 4 kB / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2563, allocations: 0 / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.194e-05/0.2563, allocations: 0 / 433.1 MB, free: 10.45 MB / 350.1 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.003893/0.2602, allocations: 2.186 MB / 435.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2602, allocations: 8.031 kB / 435.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005992/0.2608, allocations: 231.6 kB / 435.5 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.2628, allocations: 1.142 MB / 436.6 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.934e-05/0.2629, allocations: 111.4 kB / 436.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002595/0.2631, allocations: 163.9 kB / 436.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/0.2662, allocations: 1.955 MB / 438.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.485e-05/0.2663, allocations: 11.95 kB / 438.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.2664, allocations: 67.95 kB / 438.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.121e-05/0.2665, allocations: 78.86 kB / 439 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002618/0.2691, allocations: 1.581 MB / 440.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009537/0.2786, allocations: 6.29 MB / 446.9 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/0.28, allocations: 0.8033 MB / 447.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.2811, allocations: 0.5456 MB / 448.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000218/0.2813, allocations: 117.6 kB / 448.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.2813, allocations: 43.12 kB / 448.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.113e-06/0.2813, allocations: 0 / 448.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01363/0.295, allocations: 5.858 MB / 454.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.295, allocations: 60.41 kB / 454.3 MB, free: 4.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.2966, allocations: 1.145 MB / 455.4 MB, free: 3.465 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.083e-05/0.2967, allocations: 41.7 kB / 455.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006505/0.2973, allocations: 0.7963 MB / 456.3 MB, free: 2.613 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002719/0.2976, allocations: 325.3 kB / 456.6 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003336/0.2979, allocations: 206.9 kB / 456.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.2981, allocations: 353.9 kB / 457.1 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008172/0.2989, allocations: 0.5374 MB / 457.7 MB, free: 1.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.3, allocations: 0.8873 MB / 458.6 MB, free: 160 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.3021, allocations: 1.516 MB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3021, allocations: 4 kB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003508/0.3056, allocations: 2.048 MB / 462.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3056, allocations: 8 kB / 462.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.3057, allocations: 15.94 kB / 462.2 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.3071, allocations: 0.5477 MB / 462.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008578/0.3079, allocations: 247.6 kB / 463 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00938/0.3173, allocations: 8.655 MB / 471.6 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.3183, allocations: 75.88 kB / 471.7 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.901e-05/0.3184, allocations: 47.98 kB / 471.7 MB, free: 2.25 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 4 systems {(1,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009445/0.3194, allocations: 0.5169 MB / 472.2 MB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002476/0.3196, allocations: 135.2 kB / 472.4 MB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.3228, allocations: 1.759 MB / 474.1 MB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.3228, allocations: 8 kB / 474.1 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.3229, allocations: 8 kB / 474.2 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.3229, allocations: 3.984 kB / 474.2 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006336/0.3292, allocations: 3.733 MB / 477.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3292, allocations: 4 kB / 477.9 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005538/0.3298, allocations: 119.9 kB / 478 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00159/0.3314, allocations: 0.5993 MB / 478.6 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.671e-05/0.3314, allocations: 31.92 kB / 478.6 MB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008865/0.3403, allocations: 7.707 MB / 486.3 MB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3403, allocations: 0 / 486.3 MB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004023/0.3443, allocations: 2.48 MB / 488.8 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006439/0.345, allocations: 320.2 kB / 489.1 MB, free: 228 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.3451, allocations: 23.94 kB / 489.2 MB, free: 204 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006553/0.3458, allocations: 55.94 kB / 489.2 MB, free: 148 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.3459, allocations: 68.55 kB / 489.3 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.818e-05/0.346, allocations: 20 kB / 489.3 MB, free: 56 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.3472, allocations: 0.7895 MB / 490.1 MB, free: 15.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3472, allocations: 0 / 490.1 MB, free: 15.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001342/0.3486, allocations: 383.9 kB / 490.5 MB, free: 14.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (imc.inertiaRotor.w,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 59 * 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): 3 systems {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00034/0.3489, allocations: 175.3 kB / 490.6 MB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003401/0.3523, allocations: 2.083 MB / 492.7 MB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3523, allocations: 0 / 492.7 MB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002151/0.3545, allocations: 1.268 MB / 494 MB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.3561, allocations: 376.7 kB / 494.4 MB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005081/0.3611, allocations: 3.332 MB / 497.7 MB, free: 7.453 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.3624, allocations: 1.464 MB / 499.2 MB, free: 5.957 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006907/0.3631, allocations: 267 kB / 499.4 MB, free: 5.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.3633, allocations: 79.44 kB / 499.5 MB, free: 5.613 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3633, allocations: 0 / 499.5 MB, free: 5.613 MB / 414.1 MB Notification: Performance of Templates: time 0.03874/0.402, allocations: 22.16 MB / 0.5094 GB, free: 15.69 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)