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.001135/0.001134, allocations: 110 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 209.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2359, allocations: 50.55 MB / 409.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008621/0.2446, allocations: 8.215 MB / 418.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004602/0.2492, allocations: 2.746 MB / 420.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000969/0.2502, allocations: 35.88 kB / 420.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001622/0.2519, allocations: 0.6135 MB / 421.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.2536, allocations: 0.6328 MB / 422.2 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006051/0.2542, allocations: 287.6 kB / 422.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.2563, allocations: 2.035 MB / 424.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001491/0.2578, allocations: 1.424 MB / 425.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001145/0.2589, allocations: 0.8955 MB / 426.8 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.2602, allocations: 1.07 MB / 427.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002966/0.2605, allocations: 228 kB / 428.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005583/0.2611, allocations: 311.8 kB / 428.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005329/0.2616, allocations: 0.6389 MB / 429 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000885/0.2625, allocations: 1.031 MB / 430.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002652/0.2651, allocations: 3 MB / 433.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2652, allocations: 0 / 433.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2652, allocations: 0 / 433.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.025e-05/0.2652, allocations: 0 / 433.1 MB, free: 10.33 MB / 350.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.003828/0.2691, allocations: 2.143 MB / 435.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2691, allocations: 8.031 kB / 435.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005542/0.2697, allocations: 214.6 kB / 435.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.2713, allocations: 1.141 MB / 436.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.129e-05/0.2714, allocations: 111.4 kB / 436.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002131/0.2716, allocations: 159.8 kB / 436.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00295/0.2746, allocations: 1.955 MB / 438.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.99e-05/0.2746, allocations: 11.91 kB / 438.8 MB, free: 4.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.2748, allocations: 63.98 kB / 438.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.978e-05/0.2749, allocations: 78.86 kB / 439 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.2772, allocations: 1.589 MB / 440.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008744/0.286, allocations: 6.26 MB / 446.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.2873, allocations: 0.8419 MB / 447.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009297/0.2882, allocations: 0.573 MB / 448.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002061/0.2884, allocations: 113.6 kB / 448.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.2885, allocations: 43.12 kB / 448.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.805e-06/0.2885, allocations: 0 / 448.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01295/0.3015, allocations: 5.838 MB / 454.2 MB, free: 4.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.3015, allocations: 60.41 kB / 454.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.3031, allocations: 1.156 MB / 455.4 MB, free: 3.387 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.244e-05/0.3032, allocations: 37.7 kB / 455.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000501/0.3037, allocations: 0.7709 MB / 456.2 MB, free: 2.562 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.3039, allocations: 311.6 kB / 456.5 MB, free: 2.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/0.3042, allocations: 206.8 kB / 456.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3044, allocations: 345.9 kB / 457.1 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007275/0.3051, allocations: 0.5413 MB / 457.6 MB, free: 1.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008968/0.306, allocations: 0.8835 MB / 458.5 MB, free: 128 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.3078, allocations: 1.531 MB / 460 MB, free: 14.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.3078, allocations: 4 kB / 460 MB, free: 14.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003211/0.311, allocations: 2.039 MB / 462.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.311, allocations: 14.81 kB / 462.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.3111, allocations: 11.94 kB / 462.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/0.3124, allocations: 0.5553 MB / 462.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007774/0.3132, allocations: 243.6 kB / 462.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00788/0.3211, allocations: 8.648 MB / 471.5 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000994/0.3221, allocations: 71.86 kB / 471.6 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.595e-05/0.3222, allocations: 52 kB / 471.7 MB, free: 2.211 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.0007992/0.323, allocations: 0.5209 MB / 472.2 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.3232, allocations: 122.5 kB / 472.3 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0028/0.326, allocations: 1.774 MB / 474.1 MB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.3261, allocations: 8.094 kB / 474.1 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3261, allocations: 7.938 kB / 474.1 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3261, allocations: 4.078 kB / 474.1 MB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005544/0.3316, allocations: 3.745 MB / 477.8 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3317, allocations: 0 / 477.8 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005205/0.3322, allocations: 124.1 kB / 478 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.3336, allocations: 0.603 MB / 478.6 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.488e-05/0.3337, allocations: 23.98 kB / 478.6 MB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007358/0.3411, allocations: 7.706 MB / 486.3 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3411, allocations: 0 / 486.3 MB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/0.3447, allocations: 2.48 MB / 488.8 MB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000584/0.3453, allocations: 307.6 kB / 489.1 MB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002505/0.3456, allocations: 27.92 kB / 489.1 MB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006976/0.3463, allocations: 59.88 kB / 489.2 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.3465, allocations: 60.56 kB / 489.2 MB, free: 32 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/0.3465, allocations: 36.03 kB / 489.3 MB, free: 15.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.3477, allocations: 0.7856 MB / 490 MB, free: 15.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3477, allocations: 0 / 490 MB, free: 15.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00135/0.349, allocations: 376 kB / 490.4 MB, free: 14.84 MB / 414.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.0003794/0.3494, allocations: 190.9 kB / 490.6 MB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00312/0.3526, allocations: 2.134 MB / 492.7 MB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.3526, allocations: 0 / 492.7 MB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002016/0.3546, allocations: 1.299 MB / 494 MB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.3566, allocations: 379.3 kB / 494.4 MB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.3618, allocations: 3.323 MB / 497.7 MB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.3629, allocations: 1.444 MB / 499.2 MB, free: 5.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003275/0.3633, allocations: 95.42 kB / 499.3 MB, free: 5.738 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3633, allocations: 0 / 499.3 MB, free: 5.738 MB / 414.1 MB Notification: Performance of Templates: time 0.2374/0.6007, allocations: 59.37 MB / 0.5455 GB, free: 128.8 MB / 462.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)