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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001092, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.235, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008544/0.2435, allocations: 8.213 MB / 417 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004841/0.2484, allocations: 2.742 MB / 419.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.2496, allocations: 43.81 kB / 419.8 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.2514, allocations: 0.6057 MB / 420.4 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.2533, allocations: 0.6367 MB / 421 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007422/0.254, allocations: 279.6 kB / 421.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002358/0.2564, allocations: 2.042 MB / 423.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001738/0.2582, allocations: 1.432 MB / 424.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001299/0.2595, allocations: 0.8877 MB / 425.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.2612, allocations: 1.07 MB / 426.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005537/0.2618, allocations: 228 kB / 426.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009219/0.2627, allocations: 319.8 kB / 427.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007713/0.2635, allocations: 0.635 MB / 427.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.265, allocations: 1.027 MB / 428.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00325/0.2682, allocations: 3.002 MB / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2682, allocations: 0 / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.2682, allocations: 0 / 431.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.199e-05/0.2683, allocations: 4 kB / 431.9 MB, free: 10.25 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.004839/0.2732, allocations: 2.129 MB / 434 MB, free: 8.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.2733, allocations: 15.97 kB / 434.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003958/0.2737, allocations: 232 kB / 434.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006572/0.2743, allocations: 222.6 kB / 434.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.2765, allocations: 1.126 MB / 435.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.931e-05/0.2766, allocations: 119.1 kB / 435.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002519/0.2768, allocations: 167.8 kB / 435.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.2799, allocations: 1.947 MB / 437.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.912e-05/0.28, allocations: 11.83 kB / 437.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.2802, allocations: 64 kB / 437.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.812e-05/0.2802, allocations: 74.92 kB / 438 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/0.2829, allocations: 1.589 MB / 439.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009369/0.2923, allocations: 6.256 MB / 445.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.2936, allocations: 0.8418 MB / 446.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009503/0.2946, allocations: 0.5713 MB / 447.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002091/0.2948, allocations: 121.6 kB / 447.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.2949, allocations: 43.12 kB / 447.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.695e-06/0.2949, allocations: 0 / 447.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01294/0.3078, allocations: 5.839 MB / 453.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.3079, allocations: 60.41 kB / 453.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.3095, allocations: 1.149 MB / 454.5 MB, free: 3.082 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.452e-05/0.3096, allocations: 37.7 kB / 454.5 MB, free: 3.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005087/0.3101, allocations: 0.7787 MB / 455.3 MB, free: 2.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.3103, allocations: 311.6 kB / 455.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.3107, allocations: 202.8 kB / 455.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3108, allocations: 349.9 kB / 456.1 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007518/0.3116, allocations: 0.5413 MB / 456.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009517/0.3125, allocations: 0.8834 MB / 457.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001803/0.3143, allocations: 1.524 MB / 459.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.3144, allocations: 8 kB / 459.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003292/0.3177, allocations: 2.047 MB / 461.1 MB, free: 12.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.3177, allocations: 14.91 kB / 461.1 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.3177, allocations: 16.23 kB / 461.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/0.3191, allocations: 0.5552 MB / 461.7 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008445/0.32, allocations: 243.6 kB / 461.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008122/0.3281, allocations: 8.658 MB / 470.6 MB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009621/0.3291, allocations: 63.94 kB / 470.7 MB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3293, allocations: 51.98 kB / 470.7 MB, free: 1.891 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.0008294/0.3301, allocations: 0.5247 MB / 471.2 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002701/0.3304, allocations: 122.5 kB / 471.4 MB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002923/0.3333, allocations: 1.766 MB / 473.1 MB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3333, allocations: 8 kB / 473.1 MB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.3334, allocations: 4 kB / 473.1 MB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3334, allocations: 3.984 kB / 473.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006358/0.3397, allocations: 3.745 MB / 476.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.3398, allocations: 4 kB / 476.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005563/0.3403, allocations: 123.8 kB / 477 MB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001557/0.3419, allocations: 0.5967 MB / 477.6 MB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-05/0.342, allocations: 23.98 kB / 477.6 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007932/0.3499, allocations: 7.701 MB / 485.3 MB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.35, allocations: 4 kB / 485.3 MB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003656/0.3536, allocations: 2.484 MB / 487.8 MB, free: 192 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007222/0.3544, allocations: 307.6 kB / 488.1 MB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/0.3546, allocations: 27.94 kB / 488.2 MB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007073/0.3553, allocations: 55.94 kB / 488.2 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.3555, allocations: 68.55 kB / 488.3 MB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/0.3556, allocations: 24 kB / 488.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001203/0.3568, allocations: 0.7856 MB / 489.1 MB, free: 14.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3568, allocations: 0 / 489.1 MB, free: 14.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001374/0.3582, allocations: 388 kB / 489.5 MB, free: 14.52 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.004139/0.3624, allocations: 3.104 MB / 492.6 MB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003286/0.3657, allocations: 2.149 MB / 494.7 MB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.3657, allocations: 0 / 494.7 MB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/0.3677, allocations: 1.288 MB / 496 MB, free: 7.762 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/0.3696, allocations: 372 kB / 496.4 MB, free: 7.402 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0207/0.3903, allocations: 13.63 MB / 0.498 GB, free: 9.227 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/0.3917, allocations: 1.467 MB / 0.4995 GB, free: 7.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008212/0.3926, allocations: 263.1 kB / 0.4997 GB, free: 7.469 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007167/0.3933, allocations: 0.5618 MB / 0.5003 GB, free: 6.906 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3933, allocations: 4 kB / 0.5003 GB, free: 6.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07028/0.4636, allocations: 35.64 MB / 0.5351 GB, free: 3.633 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.23/16.7, allocations: 2.75 kB / 0.5351 GB, free: 3.633 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)