Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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.0.0_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.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 101.2 kB / 16.5 MB, free: 6.688 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.001615/0.001615, allocations: 194.3 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000932/0.000932, allocations: 46.95 kB / 300 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.0883, allocations: 49.45 MB / 349.4 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008587/0.09692, allocations: 8.145 MB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004333/0.1013, allocations: 2.684 MB / 360.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009121/0.1022, allocations: 39.81 kB / 360.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001674/0.1039, allocations: 0.5402 MB / 360.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001617/0.1056, allocations: 0.5711 MB / 361.4 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000672/0.1063, allocations: 247.8 kB / 361.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002437/0.1087, allocations: 2.355 MB / 364 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.11, allocations: 1.156 MB / 365.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009925/0.111, allocations: 0.7859 MB / 365.9 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.1121, allocations: 1.035 MB / 367 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.1123, allocations: 144 kB / 367.1 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004916/0.1128, allocations: 239.8 kB / 367.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005023/0.1133, allocations: 0.5491 MB / 367.9 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009355/0.1143, allocations: 0.9407 MB / 368.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.162/0.2763, allocations: 2.894 MB / 371.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.2764, allocations: 0 / 371.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2764, allocations: 0 / 371.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.964e-05/0.2765, allocations: 0 / 371.7 MB, free: 14.66 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.005216/0.2817, allocations: 2.126 MB / 373.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.2818, allocations: 13.8 kB / 373.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/0.2825, allocations: 214.9 kB / 374.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.2844, allocations: 1.1 MB / 375.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-05/0.2845, allocations: 110.2 kB / 375.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002314/0.2848, allocations: 163.8 kB / 375.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003206/0.288, allocations: 1.959 MB / 377.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.582e-05/0.288, allocations: 7.672 kB / 377.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.2882, allocations: 61.84 kB / 377.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.712e-05/0.2883, allocations: 79.98 kB / 377.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.2908, allocations: 1.584 MB / 379.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008342/0.2992, allocations: 6.335 MB / 385.5 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.3004, allocations: 0.8376 MB / 386.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009184/0.3013, allocations: 0.579 MB / 386.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002137/0.3016, allocations: 116.6 kB / 387 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.3016, allocations: 41.94 kB / 387 MB, free: 8.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.846e-06/0.3016, allocations: 0 / 387 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01277/0.3144, allocations: 5.829 MB / 392.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.3145, allocations: 61.03 kB / 392.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.3162, allocations: 1.147 MB / 394.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.926e-05/0.3163, allocations: 41.67 kB / 394.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/0.3167, allocations: 0.7693 MB / 394.9 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.3169, allocations: 307.8 kB / 395.2 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002929/0.3172, allocations: 202.4 kB / 395.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.093e-05/0.3173, allocations: 360.9 kB / 395.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006617/0.3179, allocations: 0.5397 MB / 396.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000773/0.3187, allocations: 0.8813 MB / 397.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.3201, allocations: 1.518 MB / 398.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3201, allocations: 3.656 kB / 398.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002782/0.3229, allocations: 2.05 MB / 400.7 MB, free: 12 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.323, allocations: 12 kB / 400.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.525e-05/0.323, allocations: 8.047 kB / 400.7 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.3244, allocations: 0.5467 MB / 401.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008225/0.3252, allocations: 245.7 kB / 401.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007873/0.3331, allocations: 7.919 MB / 409.4 MB, free: 6.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.3343, allocations: 72 kB / 409.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.3345, allocations: 51.92 kB / 409.6 MB, free: 6.688 MB / 318.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.0008912/0.3353, allocations: 0.5138 MB / 410.1 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.3356, allocations: 130.5 kB / 410.2 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/0.3386, allocations: 1.767 MB / 412 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.3386, allocations: 8 kB / 412 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3386, allocations: 4 kB / 412 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.3386, allocations: 3.984 kB / 412 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006346/0.345, allocations: 3.746 MB / 415.7 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.345, allocations: 0 / 415.7 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000519/0.3455, allocations: 125.3 kB / 415.9 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001608/0.3472, allocations: 0.5993 MB / 416.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.277e-05/0.3472, allocations: 23.98 kB / 416.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007445/0.3547, allocations: 7.077 MB / 423.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3547, allocations: 0 / 423.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003782/0.3585, allocations: 2.475 MB / 426 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006269/0.3592, allocations: 319.6 kB / 426.3 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.3593, allocations: 22.91 kB / 426.4 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006464/0.36, allocations: 51.94 kB / 426.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.3602, allocations: 72.55 kB / 426.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/0.3602, allocations: 24 kB / 426.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.3613, allocations: 0.7854 MB / 427.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3613, allocations: 0 / 427.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00131/0.3626, allocations: 376 kB / 427.7 MB, free: 4.117 MB / 334.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.0003239/0.363, allocations: 181.9 kB / 427.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003161/0.3661, allocations: 2.135 MB / 430 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3662, allocations: 0 / 430 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.3681, allocations: 1.292 MB / 431.3 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/0.3698, allocations: 353.4 kB / 431.6 MB, free: 76 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.3751, allocations: 3.961 MB / 435.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001179/0.3763, allocations: 1.46 MB / 437 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007797/0.3771, allocations: 263 kB / 437.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.3773, allocations: 87.42 kB / 437.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3773, allocations: 0 / 437.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Templates: time 0.03669/0.414, allocations: 20.87 MB / 458.2 MB, free: 5.637 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)