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.001106/0.001106, allocations: 100 kB / 16.99 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 201.8 kB / 17.9 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.2 MB / 245.9 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002324, allocations: 4 kB / 306.6 MB, free: 1.41 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1144, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007399/0.1219, allocations: 6.619 MB / 364.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004996/0.1269, allocations: 2.659 MB / 367.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.128, allocations: 31.88 kB / 367.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.1294, allocations: 0.5054 MB / 367.9 MB, free: 4.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.131, allocations: 0.553 MB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.1315, allocations: 183.7 kB / 368.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002061/0.1336, allocations: 1.353 MB / 370 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.1348, allocations: 0.9519 MB / 370.9 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008965/0.1357, allocations: 0.6461 MB / 371.6 MB, free: 348 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1906/0.3263, allocations: 0.7641 MB / 372.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004585/0.3268, allocations: 100.2 kB / 372.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006695/0.3275, allocations: 167.7 kB / 372.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005483/0.3281, allocations: 473.3 kB / 373.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004477/0.3285, allocations: 377.6 kB / 373.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.3314, allocations: 2.392 MB / 375.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3314, allocations: 0 / 375.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3314, allocations: 0.6094 kB / 375.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.475e-05/0.3315, allocations: 0 / 375.8 MB, free: 10.11 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.004114/0.3356, allocations: 1.82 MB / 377.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3357, allocations: 9.625 kB / 377.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.3364, allocations: 220.2 kB / 377.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.3385, allocations: 1.082 MB / 379 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.3386, allocations: 113.2 kB / 379.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002859/0.3389, allocations: 159.5 kB / 379.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003744/0.3427, allocations: 1.933 MB / 381.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.55e-05/0.3427, allocations: 14.25 kB / 381.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.3429, allocations: 62.17 kB / 381.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.343, allocations: 75.31 kB / 381.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.3457, allocations: 1.572 MB / 382.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/0.3565, allocations: 6.352 MB / 389.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.358, allocations: 0.8346 MB / 390.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000267/0.3583, allocations: 116 kB / 390.2 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.3583, allocations: 39.38 kB / 390.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 4.338e-06/0.3583, allocations: 0 / 390.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01325/0.3716, allocations: 5.912 MB / 396.1 MB, free: 2.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.3716, allocations: 60.59 kB / 396.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.3731, allocations: 1.132 MB / 397.3 MB, free: 1.395 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.678e-05/0.3732, allocations: 42.55 kB / 397.4 MB, free: 1.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/0.3736, allocations: 0.7803 MB / 398.1 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.3738, allocations: 298.8 kB / 398.4 MB, free: 420 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.3738, allocations: 23.66 kB / 398.4 MB, free: 400 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.435e-05/0.3739, allocations: 351.4 kB / 398.8 MB, free: 56 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000746/0.3747, allocations: 0.5502 MB / 399.3 MB, free: 15.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009272/0.3756, allocations: 0.8784 MB / 400.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008682/0.3765, allocations: 0.6913 MB / 400.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.3765, allocations: 3.219 kB / 400.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003328/0.3798, allocations: 2.046 MB / 403 MB, free: 13.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.3799, allocations: 8 kB / 403 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.3799, allocations: 12 kB / 403 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.3813, allocations: 0.5505 MB / 403.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008325/0.3821, allocations: 241.4 kB / 403.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007775/0.3899, allocations: 8.04 MB / 411.8 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.3911, allocations: 76.2 kB / 411.9 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.27e-05/0.3912, allocations: 48.25 kB / 411.9 MB, free: 3.918 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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001082/0.3923, allocations: 0.5242 MB / 412.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.3926, allocations: 122.5 kB / 412.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.3969, allocations: 1.771 MB / 414.3 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.3969, allocations: 12 kB / 414.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.397, allocations: 4 kB / 414.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.397, allocations: 7.984 kB / 414.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.4077, allocations: 3.731 MB / 418.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.4078, allocations: 4.203 kB / 418.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.4086, allocations: 130.5 kB / 418.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002499/0.4111, allocations: 0.595 MB / 418.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/0.4113, allocations: 23.98 kB / 418.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/0.4254, allocations: 7.256 MB / 426.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/0.4255, allocations: 3.984 kB / 426.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007491/0.433, allocations: 2.582 MB / 428.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/0.4344, allocations: 311.6 kB / 429 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003269/0.4347, allocations: 20 kB / 429 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.436, allocations: 59.92 kB / 429.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.4362, allocations: 75.89 kB / 429.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.4364, allocations: 20 kB / 429.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002039/0.4384, allocations: 0.7739 MB / 429.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4384, allocations: 0 / 429.9 MB, free: 1.406 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002484/0.4409, allocations: 376 kB / 430.3 MB, free: 1.039 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,69.4%) 14,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004124/0.4414, allocations: 150.2 kB / 430.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005586/0.447, allocations: 2.124 MB / 432.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.447, allocations: 1.938 kB / 432.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003587/0.4506, allocations: 1.314 MB / 433.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/0.4536, allocations: 342.3 kB / 434.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009781/0.4634, allocations: 3.907 MB / 438.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001885/0.4653, allocations: 1.487 MB / 439.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001878/0.4672, allocations: 267 kB / 439.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/0.4677, allocations: 83.44 kB / 440 MB, free: 7.215 MB / 350.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4677, allocations: 4 kB / 440 MB, free: 7.211 MB / 350.1 MB Notification: Performance of Templates: time 0.06759/0.5353, allocations: 19.93 MB / 459.9 MB, free: 3.531 MB / 366.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)