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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.001218/0.001217, allocations: 117 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 208.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 58.25 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.09004, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008777/0.09886, allocations: 8.212 MB / 367.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004453/0.1033, allocations: 2.75 MB / 369.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005424/0.1039, allocations: 35.88 kB / 369.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.1052, allocations: 0.6096 MB / 370.5 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.1065, allocations: 0.6405 MB / 371.2 MB, free: 1.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004987/0.107, allocations: 283.5 kB / 371.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1459/0.2529, allocations: 2.034 MB / 373.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00211/0.2551, allocations: 1.42 MB / 374.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001539/0.2566, allocations: 0.8903 MB / 375.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.2585, allocations: 1.07 MB / 376.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003676/0.2588, allocations: 226.6 kB / 377.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006419/0.2595, allocations: 312.8 kB / 377.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005681/0.2601, allocations: 0.6368 MB / 378 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009205/0.261, allocations: 1.034 MB / 379 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002919/0.2639, allocations: 3 MB / 382 MB, free: 9.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2639, allocations: 0.5625 kB / 382 MB, free: 9.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.264, allocations: 1.125 kB / 382.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.836e-05/0.264, allocations: 0 / 382.1 MB, free: 9.469 MB / 302.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.004644/0.2687, allocations: 2.13 MB / 384.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2687, allocations: 9.219 kB / 384.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005692/0.2693, allocations: 223.1 kB / 384.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.2711, allocations: 1.13 MB / 385.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.925e-05/0.2712, allocations: 116.6 kB / 385.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002651/0.2715, allocations: 155.4 kB / 385.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002822/0.2743, allocations: 1.964 MB / 387.8 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.658e-05/0.2744, allocations: 6.812 kB / 387.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.2745, allocations: 65.69 kB / 387.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-05/0.2746, allocations: 77.94 kB / 387.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002369/0.277, allocations: 1.584 MB / 389.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007923/0.2849, allocations: 6.278 MB / 395.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.2861, allocations: 0.8298 MB / 396.6 MB, free: 1.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008256/0.287, allocations: 0.5811 MB / 397.2 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002005/0.2872, allocations: 117.8 kB / 397.3 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.2872, allocations: 45.59 kB / 397.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.395e-06/0.2872, allocations: 0 / 397.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01277/0.3, allocations: 5.838 MB / 403.2 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.3001, allocations: 64.34 kB / 403.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.3018, allocations: 1.149 MB / 404.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.835e-05/0.3018, allocations: 45.69 kB / 404.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004939/0.3023, allocations: 0.7701 MB / 405.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.3026, allocations: 309.3 kB / 405.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003118/0.3029, allocations: 210.8 kB / 405.7 MB, free: 9.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.303, allocations: 349.9 kB / 406.1 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007363/0.3038, allocations: 0.5452 MB / 406.6 MB, free: 8.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009097/0.3047, allocations: 0.8774 MB / 407.5 MB, free: 7.895 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001751/0.3065, allocations: 1.524 MB / 409 MB, free: 6.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.3065, allocations: 4 kB / 409 MB, free: 6.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003376/0.3099, allocations: 2.041 MB / 411.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.3099, allocations: 12 kB / 411.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3099, allocations: 12 kB / 411.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.3114, allocations: 0.5586 MB / 411.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008049/0.3122, allocations: 244 kB / 411.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008344/0.3206, allocations: 8.648 MB / 420.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.3217, allocations: 67.92 kB / 420.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.3218, allocations: 51.94 kB / 420.6 MB, free: 10.17 MB / 334.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.0008996/0.3227, allocations: 0.518 MB / 421.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002831/0.323, allocations: 126.5 kB / 421.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003018/0.326, allocations: 1.776 MB / 423.1 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3261, allocations: 11.98 kB / 423.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.3261, allocations: 4 kB / 423.1 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.3261, allocations: 7.969 kB / 423.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006766/0.3329, allocations: 3.737 MB / 426.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.3329, allocations: 4 kB / 426.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005565/0.3335, allocations: 123 kB / 426.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/0.3351, allocations: 0.5888 MB / 427.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.71e-05/0.3352, allocations: 23.98 kB / 427.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008023/0.3432, allocations: 7.709 MB / 435.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.3433, allocations: 3.469 kB / 435.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003739/0.347, allocations: 2.487 MB / 437.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008039/0.3478, allocations: 307.6 kB / 438.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002718/0.3481, allocations: 23.98 kB / 438.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007188/0.3488, allocations: 63.88 kB / 438.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.349, allocations: 64.22 kB / 438.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-05/0.3491, allocations: 24.25 kB / 438.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001176/0.3503, allocations: 0.7895 MB / 439 MB, free: 7.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3503, allocations: 4 kB / 439 MB, free: 7.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001418/0.3517, allocations: 376 kB / 439.4 MB, free: 6.938 MB / 350.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.0003562/0.3521, allocations: 179.5 kB / 439.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003137/0.3552, allocations: 2.15 MB / 441.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3552, allocations: 0 / 441.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/0.3572, allocations: 1.296 MB / 443 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.3588, allocations: 375.3 kB / 443.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005155/0.364, allocations: 3.276 MB / 446.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.3652, allocations: 1.468 MB / 448.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008198/0.366, allocations: 263 kB / 448.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/0.3663, allocations: 83.42 kB / 448.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 2.584e-06/0.3663, allocations: 0 / 448.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of Templates: time 0.03548/0.4018, allocations: 21.66 MB / 470.1 MB, free: 8.203 MB / 382.1 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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)