Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 91.31 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002091/0.002091, allocations: 187.1 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.2 MB / 241.1 MB, free: 5.387 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003939, allocations: 7.219 kB / 300.8 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1348, allocations: 50.42 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008297/0.1432, allocations: 6.588 MB / 357.8 MB, free: 4.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005711/0.1489, allocations: 2.612 MB / 360.4 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.1503, allocations: 35.81 kB / 360.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.1519, allocations: 0.5132 MB / 361 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001777/0.1537, allocations: 0.5336 MB / 361.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.1543, allocations: 191.7 kB / 361.7 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002163/0.1564, allocations: 1.334 MB / 363 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001379/0.1578, allocations: 0.9558 MB / 364 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.159, allocations: 0.6344 MB / 364.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.1601, allocations: 0.7744 MB / 365.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.1603, allocations: 100 kB / 365.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004975/0.1608, allocations: 167.8 kB / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000468/0.1613, allocations: 474.7 kB / 366.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003567/0.1617, allocations: 376.8 kB / 366.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.1637, allocations: 2.392 MB / 368.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1637, allocations: 0 / 368.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1637, allocations: 3.938 kB / 368.9 MB, free: 9.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.043e-05/0.1638, allocations: 4 kB / 368.9 MB, free: 9.836 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.003424/0.1672, allocations: 1.81 MB / 370.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.1673, allocations: 8.031 kB / 370.7 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003175/0.1676, allocations: 223.9 kB / 370.9 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005857/0.1682, allocations: 225.6 kB / 371.1 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.1701, allocations: 1.083 MB / 372.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.979e-05/0.1702, allocations: 107 kB / 372.3 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002175/0.1705, allocations: 159.9 kB / 372.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002844/0.1733, allocations: 1.935 MB / 374.4 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.155e-05/0.1734, allocations: 7.906 kB / 374.4 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.1735, allocations: 63.98 kB / 374.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.791e-05/0.1736, allocations: 78.91 kB / 374.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002408/0.176, allocations: 1.581 MB / 376.2 MB, free: 2.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008788/0.1848, allocations: 6.327 MB / 382.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.1861, allocations: 0.8396 MB / 383.3 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000225/0.1864, allocations: 121.6 kB / 383.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.1864, allocations: 43.11 kB / 383.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of pre-optimization done (n=65): time 2.625e-06/0.1864, allocations: 4 kB / 383.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=85): time 0.01293/0.1993, allocations: 5.912 MB / 389.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.1995, allocations: 64.34 kB / 389.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.2011, allocations: 1.121 MB / 390.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.97e-05/0.2012, allocations: 37.7 kB / 390.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006034/0.2018, allocations: 0.7747 MB / 391.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.2021, allocations: 303.6 kB / 391.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.184e-05/0.2021, allocations: 20 kB / 391.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.2023, allocations: 357.9 kB / 392.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007493/0.2031, allocations: 0.5413 MB / 392.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009627/0.204, allocations: 0.8796 MB / 393.5 MB, free: 484 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009516/0.205, allocations: 0.6862 MB / 394.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.205, allocations: 4 kB / 394.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00336/0.2084, allocations: 2.047 MB / 396.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.2084, allocations: 10.19 kB / 396.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/0.2085, allocations: 12 kB / 396.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.2099, allocations: 0.5439 MB / 396.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008149/0.2107, allocations: 243.6 kB / 397 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007837/0.2185, allocations: 8.053 MB / 405.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.2198, allocations: 63.94 kB / 405.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.2199, allocations: 56.23 kB / 405.2 MB, free: 4.188 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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00104/0.2209, allocations: 0.5135 MB / 405.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002552/0.2212, allocations: 134.4 kB / 405.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002865/0.2241, allocations: 1.767 MB / 407.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.2241, allocations: 8 kB / 407.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.2241, allocations: 4 kB / 407.6 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.2241, allocations: 11.98 kB / 407.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006293/0.2304, allocations: 3.73 MB / 411.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.2305, allocations: 8.219 kB / 411.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005231/0.231, allocations: 127.8 kB / 411.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001511/0.2325, allocations: 0.5954 MB / 412.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.148e-05/0.2326, allocations: 27.98 kB / 412.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007513/0.2401, allocations: 7.245 MB / 419.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.2402, allocations: 4 kB / 419.4 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/0.2438, allocations: 2.579 MB / 421.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006596/0.2445, allocations: 311.5 kB / 422.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.2447, allocations: 20 kB / 422.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006016/0.2453, allocations: 59.94 kB / 422.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.2454, allocations: 76.44 kB / 422.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.008e-05/0.2455, allocations: 28 kB / 422.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.2466, allocations: 0.762 MB / 423.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2466, allocations: 0 / 423.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00129/0.2479, allocations: 376 kB / 423.6 MB, free: 1.176 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,69.4%) 14,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.217/0.4649, allocations: 3.638 MB / 427.2 MB, free: 62.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.468, allocations: 2.138 MB / 429.3 MB, free: 61.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.4681, allocations: 1.031 kB / 429.3 MB, free: 61.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002124/0.4702, allocations: 1.296 MB / 430.6 MB, free: 60.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.4724, allocations: 331.5 kB / 430.9 MB, free: 60.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02171/0.4941, allocations: 17.18 MB / 448.1 MB, free: 50.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.4952, allocations: 1.493 MB / 449.6 MB, free: 49.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009201/0.4961, allocations: 266.7 kB / 449.9 MB, free: 49.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006059/0.4967, allocations: 0.5633 MB / 450.4 MB, free: 49.77 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4967, allocations: 4 kB / 450.4 MB, free: 49.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07817/0.5749, allocations: 32.38 MB / 482.8 MB, free: 21.51 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002258/0.5752, allocations: 221.8 kB / 483 MB, free: 21.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.587/3.162, allocations: 3.094 kB / 483.1 MB, free: 21.27 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)