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.0008141/0.0008142, allocations: 92.59 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009666/0.0009666, allocations: 204.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.172/1.172, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002056, allocations: 4 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07319/0.07341, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.006657/0.0801, allocations: 7.687 MB / 367.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003041/0.08316, allocations: 2.696 MB / 369.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003304/0.0835, allocations: 35.81 kB / 369.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.08454, allocations: 0.5441 MB / 370.3 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009254/0.08548, allocations: 0.5789 MB / 370.9 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.08588, allocations: 251.7 kB / 371.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1383/0.2242, allocations: 2.344 MB / 373.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.2258, allocations: 1.149 MB / 374.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.227, allocations: 0.7033 MB / 375.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001373/0.2284, allocations: 0.9349 MB / 376.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003427/0.2288, allocations: 102.2 kB / 376.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006802/0.2295, allocations: 203.1 kB / 376.6 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005504/0.23, allocations: 0.4912 MB / 377.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007768/0.2308, allocations: 0.9017 MB / 378 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002406/0.2332, allocations: 2.819 MB / 380.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2332, allocations: 0 / 380.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2332, allocations: 0 / 380.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.2333, allocations: 1.031 kB / 380.8 MB, free: 8.594 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.002658/0.2359, allocations: 1.808 MB / 382.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.236, allocations: 9.625 kB / 382.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002413/0.2362, allocations: 231.5 kB / 382.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004998/0.2367, allocations: 216.7 kB / 383.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.2381, allocations: 1.104 MB / 384.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.722e-05/0.2381, allocations: 112.8 kB / 384.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000218/0.2384, allocations: 163.2 kB / 384.4 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/0.241, allocations: 1.959 MB / 386.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.995e-05/0.2411, allocations: 5.812 kB / 386.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.2412, allocations: 63.39 kB / 386.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-05/0.2413, allocations: 78.61 kB / 386.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00218/0.2435, allocations: 1.58 MB / 388.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006876/0.2503, allocations: 6.378 MB / 394.5 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.2514, allocations: 0.8321 MB / 395.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008161/0.2523, allocations: 0.5766 MB / 395.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.2525, allocations: 116.3 kB / 396 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.2525, allocations: 47.25 kB / 396.1 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 1.814e-06/0.2525, allocations: 0 / 396.1 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01141/0.2639, allocations: 5.898 MB / 402 MB, free: 13.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.264, allocations: 68.34 kB / 402 MB, free: 13.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.2653, allocations: 1.151 MB / 403.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.217e-05/0.2654, allocations: 41.7 kB / 403.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004634/0.2659, allocations: 0.779 MB / 404 MB, free: 11.06 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000206/0.2661, allocations: 305.3 kB / 404.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.2662, allocations: 89.67 kB / 404.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2663, allocations: 357.9 kB / 404.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007086/0.267, allocations: 0.5413 MB / 405.3 MB, free: 9.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008856/0.2679, allocations: 0.8853 MB / 406.2 MB, free: 8.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.2696, allocations: 1.515 MB / 407.7 MB, free: 7.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.2696, allocations: 4 kB / 407.7 MB, free: 7.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00295/0.2726, allocations: 2.049 MB / 409.7 MB, free: 5.117 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2726, allocations: 8 kB / 409.7 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/0.2726, allocations: 12 kB / 409.7 MB, free: 5.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/0.2739, allocations: 0.5583 MB / 410.3 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007376/0.2747, allocations: 244.9 kB / 410.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007019/0.2817, allocations: 7.894 MB / 418.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007226/0.2824, allocations: 79.94 kB / 418.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.771e-05/0.2825, allocations: 51.98 kB / 418.6 MB, free: 11.78 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.0006907/0.2832, allocations: 0.5182 MB / 419.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001762/0.2834, allocations: 122.5 kB / 419.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002767/0.2862, allocations: 1.771 MB / 421 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.2862, allocations: 12 kB / 421 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.2862, allocations: 4 kB / 421 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.2862, allocations: 3.984 kB / 421 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00536/0.2916, allocations: 3.765 MB / 424.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.2916, allocations: 96 / 424.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.2921, allocations: 131.7 kB / 424.9 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001464/0.2936, allocations: 0.5912 MB / 425.5 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-05/0.2936, allocations: 23.98 kB / 425.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006676/0.3003, allocations: 7.073 MB / 432.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3003, allocations: 4 kB / 432.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003317/0.3037, allocations: 2.482 MB / 435.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004409/0.3041, allocations: 319.5 kB / 435.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.3043, allocations: 20 kB / 435.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006176/0.3049, allocations: 55.94 kB / 435.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.305, allocations: 60.56 kB / 435.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.3051, allocations: 35.98 kB / 435.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001008/0.3061, allocations: 0.7855 MB / 436.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3061, allocations: 0 / 436.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00116/0.3073, allocations: 380 kB / 436.7 MB, free: 9.113 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.003758/0.3111, allocations: 3.101 MB / 439.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.3139, allocations: 2.146 MB / 441.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.314, allocations: 2 kB / 441.9 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.3158, allocations: 1.287 MB / 443.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.3176, allocations: 355.8 kB / 443.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/0.3389, allocations: 15.4 MB / 459 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.3399, allocations: 1.46 MB / 460.4 MB, free: 316 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007044/0.3406, allocations: 263 kB / 460.7 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007535/0.3414, allocations: 0.5738 MB / 461.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3414, allocations: 0 / 461.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.267/3.608, allocations: 33.14 MB / 494.4 MB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/3.608, allocations: 248.7 kB / 494.6 MB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.331/5.939, allocations: 0 / 494.6 MB, free: 14.54 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)