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.001364/0.001364, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 60.33 kB / 307 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1018, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01015/0.1119, allocations: 8.213 MB / 365.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005033/0.117, allocations: 2.742 MB / 368.5 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005462/0.1176, allocations: 39.88 kB / 368.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.1191, allocations: 0.6174 MB / 369.1 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.1204, allocations: 0.6289 MB / 369.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.121, allocations: 287.6 kB / 370.1 MB, free: 1.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1453/0.2663, allocations: 2.025 MB / 372.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00201/0.2683, allocations: 1.427 MB / 373.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.2698, allocations: 0.8827 MB / 374.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.271, allocations: 1.067 MB / 375.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.2713, allocations: 227.2 kB / 375.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006103/0.2719, allocations: 319.1 kB / 376 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006298/0.2725, allocations: 0.6343 MB / 376.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009474/0.2735, allocations: 1.031 MB / 377.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003461/0.2769, allocations: 2.974 MB / 380.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.277, allocations: 1.062 kB / 380.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.277, allocations: 0 / 380.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.733e-05/0.277, allocations: 3.938 kB / 380.6 MB, free: 9.125 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.004017/0.2811, allocations: 2.13 MB / 382.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2811, allocations: 9.844 kB / 382.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005778/0.2817, allocations: 217 kB / 383 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/0.2833, allocations: 1.107 MB / 384.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/0.2834, allocations: 115.3 kB / 384.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/0.2837, allocations: 153.1 kB / 384.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003025/0.2867, allocations: 1.966 MB / 386.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.623e-05/0.2868, allocations: 7.312 kB / 386.3 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.2869, allocations: 65.09 kB / 386.4 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.365e-05/0.287, allocations: 77.47 kB / 386.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002396/0.2894, allocations: 1.583 MB / 388 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008463/0.2979, allocations: 6.341 MB / 394.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.2991, allocations: 0.8301 MB / 395.2 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008446/0.3, allocations: 0.5775 MB / 395.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001944/0.3002, allocations: 115.6 kB / 395.9 MB, free: 428 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.3002, allocations: 43.38 kB / 396 MB, free: 380 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.816e-06/0.3002, allocations: 0 / 396 MB, free: 380 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.0129/0.3131, allocations: 5.835 MB / 401.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.3132, allocations: 64.34 kB / 401.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001778/0.315, allocations: 1.149 MB / 403 MB, free: 11.42 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.39e-05/0.3151, allocations: 45.64 kB / 403 MB, free: 11.37 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008228/0.3159, allocations: 0.7769 MB / 403.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003474/0.3162, allocations: 306.6 kB / 404.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003983/0.3167, allocations: 206.7 kB / 404.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.3169, allocations: 357.9 kB / 404.7 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008867/0.3178, allocations: 0.5452 MB / 405.2 MB, free: 9.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.3189, allocations: 0.881 MB / 406.1 MB, free: 8.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002076/0.321, allocations: 1.516 MB / 407.6 MB, free: 6.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.321, allocations: 4 kB / 407.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003759/0.3248, allocations: 2.05 MB / 409.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.3248, allocations: 8 kB / 409.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/0.3249, allocations: 12 kB / 409.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/0.3264, allocations: 0.5542 MB / 410.2 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008748/0.3273, allocations: 243.9 kB / 410.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009932/0.3372, allocations: 8.649 MB / 419.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.3385, allocations: 80.08 kB / 419.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.3386, allocations: 47.94 kB / 419.3 MB, free: 10.44 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.001134/0.3398, allocations: 0.5148 MB / 419.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/0.34, allocations: 122.5 kB / 419.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003263/0.3433, allocations: 1.772 MB / 421.7 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3433, allocations: 12 kB / 421.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.3434, allocations: 4 kB / 421.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3434, allocations: 3.984 kB / 421.7 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006588/0.35, allocations: 3.76 MB / 425.4 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/0.35, allocations: 7.938 kB / 425.4 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005366/0.3505, allocations: 123.1 kB / 425.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/0.3522, allocations: 0.5923 MB / 426.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.062e-05/0.3522, allocations: 23.98 kB / 426.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008833/0.3611, allocations: 7.708 MB / 433.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3611, allocations: 0 / 433.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004212/0.3653, allocations: 2.484 MB / 436.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/0.3661, allocations: 311.8 kB / 436.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.3663, allocations: 20 kB / 436.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006709/0.367, allocations: 67.86 kB / 436.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.3672, allocations: 64.03 kB / 436.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.839e-05/0.3673, allocations: 28.09 kB / 436.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001319/0.3686, allocations: 0.7933 MB / 437.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3686, allocations: 0 / 437.6 MB, free: 7.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001543/0.3702, allocations: 380 kB / 438 MB, free: 7.18 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.0003864/0.3706, allocations: 174.1 kB / 438.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004048/0.3746, allocations: 2.36 MB / 440.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.3746, allocations: 4.75 kB / 440.6 MB, free: 4.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002203/0.3768, allocations: 1.297 MB / 441.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.3787, allocations: 390.2 kB / 442.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005547/0.3843, allocations: 3.31 MB / 445.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/0.3856, allocations: 1.46 MB / 447 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008535/0.3864, allocations: 267 kB / 447.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.3867, allocations: 83.44 kB / 447.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3867, allocations: 0 / 447.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of Templates: time 0.04269/0.4294, allocations: 21.66 MB / 469 MB, free: 8.297 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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)