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.001647/0.001647, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001714/0.001714, allocations: 200 kB / 18.01 MB, free: 5.047 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 47.94 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2485, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009742/0.2583, allocations: 8.183 MB / 408.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004827/0.2631, allocations: 2.699 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006209/0.2638, allocations: 39.88 kB / 411.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001528/0.2654, allocations: 0.6047 MB / 411.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.2668, allocations: 0.6288 MB / 412.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.2673, allocations: 287.6 kB / 412.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002248/0.2696, allocations: 2.039 MB / 414.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001681/0.2713, allocations: 1.417 MB / 416.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.2725, allocations: 0.8798 MB / 417 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.2738, allocations: 1.059 MB / 418.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003101/0.2742, allocations: 224 kB / 418.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005877/0.2748, allocations: 323.8 kB / 418.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006237/0.2754, allocations: 0.635 MB / 419.2 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001043/0.2764, allocations: 1.031 MB / 420.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003052/0.2795, allocations: 3.001 MB / 423.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2795, allocations: 0 / 423.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2795, allocations: 0 / 423.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.12e-05/0.2796, allocations: 4 kB / 423.3 MB, free: 1.645 MB / 334.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.003962/0.2835, allocations: 2.174 MB / 425.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.2836, allocations: 12.03 kB / 425.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002863/0.2839, allocations: 224.1 kB / 425.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00059/0.2845, allocations: 227.7 kB / 425.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001798/0.2863, allocations: 1.142 MB / 427 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.828e-05/0.2864, allocations: 115.3 kB / 427.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.2866, allocations: 163.9 kB / 427.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003062/0.2897, allocations: 1.955 MB / 429.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/0.2898, allocations: 3.953 kB / 429.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.2899, allocations: 67.98 kB / 429.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.331e-05/0.29, allocations: 78.91 kB / 429.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002567/0.2926, allocations: 1.581 MB / 431 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009295/0.3019, allocations: 6.29 MB / 437.3 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.3033, allocations: 0.8342 MB / 438.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3044, allocations: 0.5691 MB / 438.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002272/0.3046, allocations: 117.6 kB / 438.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/0.3047, allocations: 43.59 kB / 438.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 5.471e-06/0.3047, allocations: 4 kB / 438.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01324/0.3179, allocations: 5.872 MB / 444.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.318, allocations: 60.41 kB / 444.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.3196, allocations: 1.14 MB / 445.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.547e-05/0.3197, allocations: 41.7 kB / 446 MB, free: 10.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006142/0.3203, allocations: 0.7924 MB / 446.8 MB, free: 9.539 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002711/0.3206, allocations: 313.4 kB / 447.1 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003317/0.3209, allocations: 214.8 kB / 447.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3211, allocations: 353.9 kB / 447.6 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007979/0.3219, allocations: 0.5491 MB / 448.2 MB, free: 8.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.323, allocations: 0.8757 MB / 449.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002021/0.325, allocations: 1.524 MB / 450.6 MB, free: 5.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.325, allocations: 4 kB / 450.6 MB, free: 5.406 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003402/0.3285, allocations: 2.048 MB / 452.6 MB, free: 3.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3285, allocations: 8 kB / 452.6 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.3285, allocations: 15.94 kB / 452.6 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001412/0.3299, allocations: 0.5555 MB / 453.2 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/0.3308, allocations: 247.6 kB / 453.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009087/0.3398, allocations: 8.647 MB / 462.1 MB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009324/0.3408, allocations: 75.98 kB / 462.2 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.609e-05/0.3409, allocations: 51.98 kB / 462.2 MB, free: 9.164 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.0008582/0.3418, allocations: 0.5181 MB / 462.7 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.342, allocations: 127.2 kB / 462.9 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003083/0.3451, allocations: 1.774 MB / 464.6 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3451, allocations: 8 kB / 464.6 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3451, allocations: 4 kB / 464.6 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.3451, allocations: 3.984 kB / 464.7 MB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006111/0.3513, allocations: 3.741 MB / 468.4 MB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.3513, allocations: 0 / 468.4 MB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005283/0.3518, allocations: 131.8 kB / 468.5 MB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001614/0.3534, allocations: 0.5875 MB / 469.1 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-05/0.3535, allocations: 27.98 kB / 469.1 MB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/0.3623, allocations: 7.711 MB / 476.8 MB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3623, allocations: 4.062 kB / 476.8 MB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003946/0.3662, allocations: 2.488 MB / 479.3 MB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005815/0.3668, allocations: 320.2 kB / 479.7 MB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002257/0.3671, allocations: 27.92 kB / 479.7 MB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006743/0.3678, allocations: 55.94 kB / 479.7 MB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.3679, allocations: 64.56 kB / 479.8 MB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-05/0.368, allocations: 31.92 kB / 479.8 MB, free: 6.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.3693, allocations: 0.7854 MB / 480.6 MB, free: 6.141 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3693, allocations: 96 / 480.6 MB, free: 6.141 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001334/0.3706, allocations: 379.9 kB / 481 MB, free: 5.77 MB / 398.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.004449/0.3751, allocations: 3.113 MB / 484.1 MB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003536/0.3786, allocations: 2.143 MB / 486.2 MB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3786, allocations: 0 / 486.2 MB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.3808, allocations: 1.295 MB / 487.5 MB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/0.3825, allocations: 363.5 kB / 487.9 MB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/0.4041, allocations: 13.67 MB / 0.4898 GB, free: 440 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/0.4055, allocations: 1.456 MB / 0.4912 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000774/0.4063, allocations: 267 kB / 0.4915 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007882/0.4071, allocations: 0.5657 MB / 0.492 GB, free: 14.11 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4071, allocations: 0 / 0.492 GB, free: 14.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07994/0.4871, allocations: 35 MB / 0.5262 GB, free: 11.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.51/19, allocations: 14.19 kB / 0.5262 GB, free: 11.51 MB / 462.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/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)