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.001475/0.001475, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001764/0.001764, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.4 MB / 246.3 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 61.22 kB / 306.4 MB, free: 0.6914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07665/0.07782, allocations: 50.53 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008163/0.08602, allocations: 8.185 MB / 365.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004016/0.09007, allocations: 2.711 MB / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007777/0.09087, allocations: 39.81 kB / 367.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00143/0.09237, allocations: 0.548 MB / 368.4 MB, free: 2.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.09362, allocations: 0.5789 MB / 369 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000464/0.09409, allocations: 251.7 kB / 369.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.138/0.2321, allocations: 2.357 MB / 371.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.2335, allocations: 1.162 MB / 372.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.2345, allocations: 0.7899 MB / 373.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00099/0.2355, allocations: 1.036 MB / 374.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002182/0.2358, allocations: 142.9 kB / 374.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004848/0.2363, allocations: 246 kB / 374.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004877/0.2368, allocations: 0.5471 MB / 375.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007466/0.2375, allocations: 0.9441 MB / 376.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002223/0.2397, allocations: 2.905 MB / 379.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2398, allocations: 3.875 kB / 379.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.2398, allocations: 1.531 kB / 379.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.2398, allocations: 0 / 379.3 MB, free: 9.262 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.003271/0.2431, allocations: 2.13 MB / 381.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2431, allocations: 9.375 kB / 381.5 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002565/0.2434, allocations: 228 kB / 381.7 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005235/0.2439, allocations: 216.4 kB / 381.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.2453, allocations: 1.1 MB / 383 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.485e-05/0.2454, allocations: 118.7 kB / 383.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.2456, allocations: 157.8 kB / 383.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/0.2483, allocations: 1.962 MB / 385.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/0.2483, allocations: 6.688 kB / 385.2 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.2485, allocations: 64.34 kB / 385.3 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.352e-05/0.2486, allocations: 75.73 kB / 385.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002215/0.2508, allocations: 1.581 MB / 387 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00719/0.258, allocations: 6.354 MB / 393.3 MB, free: 1.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.2592, allocations: 0.83 MB / 394.1 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008466/0.26, allocations: 0.572 MB / 394.7 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001764/0.2602, allocations: 124.2 kB / 394.8 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.2602, allocations: 39.12 kB / 394.9 MB, free: 448 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.194e-06/0.2602, allocations: 6.094 kB / 394.9 MB, free: 444 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01175/0.272, allocations: 5.822 MB / 400.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.272, allocations: 67.75 kB / 400.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.2734, allocations: 1.156 MB / 401.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.2735, allocations: 41.7 kB / 402 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004719/0.274, allocations: 0.7688 MB / 402.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.2742, allocations: 314.4 kB / 403 MB, free: 11.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003078/0.2745, allocations: 206.8 kB / 403.2 MB, free: 10.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.2747, allocations: 349.9 kB / 403.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007671/0.2754, allocations: 0.5413 MB / 404.1 MB, free: 9.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009741/0.2764, allocations: 0.8848 MB / 405 MB, free: 8.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.2782, allocations: 1.521 MB / 406.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.2782, allocations: 7.938 kB / 406.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003125/0.2813, allocations: 2.046 MB / 408.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.2814, allocations: 8 kB / 408.6 MB, free: 5.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.2814, allocations: 12 kB / 408.6 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.2828, allocations: 0.5508 MB / 409.2 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007725/0.2836, allocations: 242.1 kB / 409.4 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007112/0.2907, allocations: 7.903 MB / 417.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009276/0.2916, allocations: 79.77 kB / 417.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.402e-05/0.2917, allocations: 48.16 kB / 417.4 MB, free: 11.92 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.0007923/0.2925, allocations: 0.5226 MB / 417.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.2927, allocations: 122.6 kB / 418.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002847/0.2956, allocations: 1.776 MB / 419.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.2956, allocations: 8 kB / 419.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2956, allocations: 8 kB / 419.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2956, allocations: 3.984 kB / 419.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005607/0.3013, allocations: 3.763 MB / 423.6 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3013, allocations: 0 / 423.6 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004959/0.3018, allocations: 127 kB / 423.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001543/0.3033, allocations: 0.5914 MB / 424.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-05/0.3034, allocations: 23.98 kB / 424.4 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006957/0.3104, allocations: 7.077 MB / 431.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3104, allocations: 112 / 431.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003492/0.3139, allocations: 2.482 MB / 433.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005315/0.3144, allocations: 315.5 kB / 434.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.3146, allocations: 20 kB / 434.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.3153, allocations: 55.94 kB / 434.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.3155, allocations: 75.78 kB / 434.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.09e-05/0.3155, allocations: 24 kB / 434.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.3166, allocations: 0.7894 MB / 435.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3166, allocations: 0 / 435.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001288/0.3179, allocations: 380 kB / 435.6 MB, free: 9.32 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.003912/0.3219, allocations: 3.092 MB / 438.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002975/0.3248, allocations: 2.145 MB / 440.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3249, allocations: 0 / 440.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001852/0.3267, allocations: 1.296 MB / 442.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.3283, allocations: 356.2 kB / 442.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02426/0.3526, allocations: 15.28 MB / 457.7 MB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.354, allocations: 1.456 MB / 459.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009134/0.3549, allocations: 263 kB / 459.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007239/0.3556, allocations: 0.5696 MB / 460 MB, free: 15.95 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3556, allocations: 0 / 460 MB, free: 15.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05212/0.4078, allocations: 33.66 MB / 493.7 MB, free: 14.68 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.408, allocations: 245.7 kB / 493.9 MB, free: 14.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.323/2.73, allocations: 0 / 493.9 MB, free: 14.43 MB / 414.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)