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.001467/0.001467, allocations: 109.4 kB / 17.06 MB, free: 6 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.001672/0.001673, allocations: 200 kB / 18.01 MB, free: 5.074 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.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008884/0.0008885, allocations: 47.92 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2548, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.00932/0.2641, allocations: 8.183 MB / 408.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004877/0.2691, allocations: 2.696 MB / 411.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.2702, allocations: 43.75 kB / 411.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001994/0.2723, allocations: 0.6368 MB / 412.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001865/0.2742, allocations: 0.664 MB / 413 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007328/0.2749, allocations: 291.5 kB / 413.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002548/0.2775, allocations: 2.035 MB / 415.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001618/0.2791, allocations: 1.413 MB / 416.7 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.2802, allocations: 0.8876 MB / 417.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001376/0.2816, allocations: 1.066 MB / 418.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003944/0.282, allocations: 228 kB / 418.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006299/0.2827, allocations: 315.8 kB / 419.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006677/0.2834, allocations: 0.6311 MB / 419.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001268/0.2846, allocations: 1.027 MB / 420.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002784/0.2874, allocations: 2.995 MB / 423.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2874, allocations: 0 / 423.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2875, allocations: 0 / 423.8 MB, free: 1.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.163e-05/0.2875, allocations: 0 / 423.8 MB, free: 1.629 MB / 334.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.004748/0.2923, allocations: 2.125 MB / 426 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2923, allocations: 8.031 kB / 426 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006793/0.293, allocations: 222.7 kB / 426.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00202/0.2951, allocations: 1.13 MB / 427.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.258e-05/0.2952, allocations: 111.4 kB / 427.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.2954, allocations: 172 kB / 427.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003228/0.2987, allocations: 1.951 MB / 429.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.201e-05/0.2987, allocations: 3.906 kB / 429.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.2989, allocations: 67.98 kB / 429.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.327e-05/0.299, allocations: 82.84 kB / 429.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002567/0.3015, allocations: 1.585 MB / 431.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009048/0.3106, allocations: 6.276 MB / 437.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.312, allocations: 0.8321 MB / 438.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009897/0.313, allocations: 0.5692 MB / 438.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002227/0.3133, allocations: 121.6 kB / 439.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.3133, allocations: 43.12 kB / 439.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.195e-06/0.3133, allocations: 0 / 439.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01338/0.3267, allocations: 5.835 MB / 444.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.3268, allocations: 64.34 kB / 445 MB, free: 11.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.3283, allocations: 1.144 MB / 446.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.629e-05/0.3284, allocations: 41.7 kB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005036/0.3289, allocations: 0.7709 MB / 447 MB, free: 9.879 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000227/0.3291, allocations: 307.6 kB / 447.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.3294, allocations: 202.8 kB / 447.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3296, allocations: 357.9 kB / 447.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000767/0.3303, allocations: 0.5452 MB / 448.4 MB, free: 8.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000973/0.3313, allocations: 0.8795 MB / 449.2 MB, free: 7.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.3332, allocations: 1.524 MB / 450.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3332, allocations: 4 kB / 450.8 MB, free: 5.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003341/0.3366, allocations: 2.043 MB / 452.8 MB, free: 3.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3366, allocations: 8 kB / 452.8 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.3367, allocations: 12 kB / 452.8 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001451/0.3381, allocations: 0.5593 MB / 453.4 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00084/0.339, allocations: 243.6 kB / 453.6 MB, free: 2.855 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00832/0.3473, allocations: 8.639 MB / 462.3 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008526/0.3482, allocations: 75.88 kB / 462.3 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.031e-05/0.3483, allocations: 47.98 kB / 462.4 MB, free: 9.531 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.0007794/0.3491, allocations: 0.5208 MB / 462.9 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002431/0.3493, allocations: 122.5 kB / 463 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003056/0.3524, allocations: 1.77 MB / 464.8 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.3524, allocations: 8 kB / 464.8 MB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.3524, allocations: 4 kB / 464.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.3524, allocations: 3.984 kB / 464.8 MB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006082/0.3585, allocations: 3.741 MB / 468.5 MB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3585, allocations: 0 / 468.5 MB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005454/0.3591, allocations: 131.8 kB / 468.7 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/0.3607, allocations: 0.5956 MB / 469.3 MB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.984e-05/0.3607, allocations: 23.98 kB / 469.3 MB, free: 2.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008276/0.369, allocations: 7.702 MB / 477 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.369, allocations: 0 / 477 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003754/0.3728, allocations: 2.48 MB / 479.5 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005744/0.3734, allocations: 311.6 kB / 479.8 MB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/0.3736, allocations: 28.17 kB / 479.8 MB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000718/0.3744, allocations: 59.94 kB / 479.9 MB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.3745, allocations: 68.55 kB / 479.9 MB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.459e-05/0.3746, allocations: 31.98 kB / 480 MB, free: 7.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001236/0.3759, allocations: 0.7816 MB / 480.7 MB, free: 6.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3759, allocations: 3.938 kB / 480.8 MB, free: 6.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001324/0.3772, allocations: 376 kB / 481.1 MB, free: 6.16 MB / 398.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.0003445/0.3776, allocations: 175 kB / 481.3 MB, free: 5.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.3809, allocations: 2.145 MB / 483.4 MB, free: 3.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3809, allocations: 0 / 483.4 MB, free: 3.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00204/0.3829, allocations: 1.296 MB / 484.7 MB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.3847, allocations: 376.2 kB / 485.1 MB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005226/0.3899, allocations: 3.273 MB / 488.4 MB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.3911, allocations: 1.456 MB / 489.8 MB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007558/0.3919, allocations: 267 kB / 490.1 MB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002416/0.3922, allocations: 79.44 kB / 490.2 MB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3922, allocations: 0 / 490.2 MB, free: 12.88 MB / 414.1 MB Notification: Performance of Templates: time 0.03563/0.4278, allocations: 21.93 MB / 0.5001 GB, free: 7.156 MB / 430.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)