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.00116/0.001161, allocations: 115.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.4 MB, free: 9.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.86 kB / 306.5 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1137, allocations: 50.53 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01009/0.1238, allocations: 8.181 MB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005208/0.1291, allocations: 2.719 MB / 367.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.1303, allocations: 35.81 kB / 367.9 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001708/0.132, allocations: 0.548 MB / 368.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001706/0.1338, allocations: 0.575 MB / 369 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006011/0.1344, allocations: 251.7 kB / 369.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1899/0.3242, allocations: 2.024 MB / 371.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002676/0.327, allocations: 1.424 MB / 372.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.3289, allocations: 0.8964 MB / 373.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001648/0.3306, allocations: 1.092 MB / 374.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003544/0.331, allocations: 231.5 kB / 375 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007589/0.3317, allocations: 313.5 kB / 375.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006668/0.3324, allocations: 0.6286 MB / 375.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3335, allocations: 1.034 MB / 376.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00309/0.3366, allocations: 2.979 MB / 379.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3366, allocations: 0.75 kB / 379.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3366, allocations: 2.812 kB / 379.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.859e-05/0.3367, allocations: 1.219 kB / 379.9 MB, free: 9.059 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.004528/0.3412, allocations: 2.129 MB / 382 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3413, allocations: 9.688 kB / 382 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006428/0.3419, allocations: 220.7 kB / 382.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/0.3437, allocations: 1.101 MB / 383.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-05/0.3438, allocations: 116.1 kB / 383.5 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002445/0.344, allocations: 156.3 kB / 383.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003251/0.3473, allocations: 1.959 MB / 385.6 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.064e-05/0.3474, allocations: 11.42 kB / 385.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.3475, allocations: 64.69 kB / 385.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.163e-05/0.3476, allocations: 77.56 kB / 385.7 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002428/0.35, allocations: 1.582 MB / 387.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009596/0.3596, allocations: 6.335 MB / 393.6 MB, free: 1.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.361, allocations: 0.8346 MB / 394.5 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008937/0.3619, allocations: 0.5738 MB / 395.1 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/0.3622, allocations: 116.1 kB / 395.2 MB, free: 356 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.3622, allocations: 49 kB / 395.2 MB, free: 304 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.866e-06/0.3622, allocations: 0 / 395.2 MB, free: 304 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01337/0.3756, allocations: 5.834 MB / 401.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.3757, allocations: 64.34 kB / 401.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.3774, allocations: 1.149 MB / 402.3 MB, free: 11.79 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.68e-05/0.3775, allocations: 45.69 kB / 402.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005318/0.378, allocations: 0.7699 MB / 403.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.3783, allocations: 306.1 kB / 403.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.3787, allocations: 210.8 kB / 403.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3788, allocations: 349.9 kB / 403.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007757/0.3796, allocations: 0.5491 MB / 404.5 MB, free: 9.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.3806, allocations: 0.8791 MB / 405.4 MB, free: 8.531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.3824, allocations: 1.529 MB / 406.9 MB, free: 6.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.3824, allocations: 4 kB / 406.9 MB, free: 6.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003496/0.3859, allocations: 2.045 MB / 408.9 MB, free: 4.898 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.386, allocations: 8 kB / 408.9 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.386, allocations: 12 kB / 409 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.3875, allocations: 0.5516 MB / 409.5 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008715/0.3884, allocations: 239.7 kB / 409.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008639/0.397, allocations: 8.661 MB / 418.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.3985, allocations: 67.92 kB / 418.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002231/0.3988, allocations: 51.94 kB / 418.5 MB, free: 10.8 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.001119/0.3999, allocations: 0.5203 MB / 419 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003449/0.4002, allocations: 122.5 kB / 419.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.4035, allocations: 1.777 MB / 420.9 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.4035, allocations: 8 kB / 420.9 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.4036, allocations: 4 kB / 420.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.4036, allocations: 3.984 kB / 420.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007247/0.4108, allocations: 3.755 MB / 424.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.4109, allocations: 4.219 kB / 424.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/0.4114, allocations: 126.2 kB / 424.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/0.4131, allocations: 0.5943 MB / 425.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.389e-05/0.4132, allocations: 23.98 kB / 425.4 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008533/0.4218, allocations: 7.711 MB / 433.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4218, allocations: 0 / 433.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004101/0.4259, allocations: 2.479 MB / 435.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008728/0.4268, allocations: 311.6 kB / 435.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004595/0.4273, allocations: 23.98 kB / 436 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000951/0.4283, allocations: 59.88 kB / 436 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.4285, allocations: 67.84 kB / 436.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.769e-05/0.4286, allocations: 24 kB / 436.1 MB, free: 8.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.4301, allocations: 0.7895 MB / 436.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4301, allocations: 0 / 436.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001933/0.4321, allocations: 376 kB / 437.3 MB, free: 7.559 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.0004452/0.4325, allocations: 175.4 kB / 437.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0042/0.4367, allocations: 2.37 MB / 439.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.4368, allocations: 0 / 439.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002298/0.4391, allocations: 1.297 MB / 441.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002682/0.4418, allocations: 379.9 kB / 441.5 MB, free: 3.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006982/0.4488, allocations: 3.977 MB / 445.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.4503, allocations: 1.456 MB / 446.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.4514, allocations: 267 kB / 447.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.4518, allocations: 83.44 kB / 447.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4518, allocations: 0 / 447.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of Templates: time 0.03939/0.4912, allocations: 21.76 MB / 469 MB, free: 7.918 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)