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.001113/0.001113, allocations: 112.1 kB / 17.07 MB, free: 5.992 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.001143/0.001143, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.271/1.271, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009789/0.000979, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.258, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008608/0.2666, allocations: 8.182 MB / 408.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004554/0.2712, allocations: 2.695 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008892/0.2721, allocations: 39.81 kB / 411.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001598/0.2738, allocations: 0.6438 MB / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001499/0.2753, allocations: 0.664 MB / 412.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.2759, allocations: 287.6 kB / 412.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00211/0.278, allocations: 2.038 MB / 414.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.2796, allocations: 1.421 MB / 416.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.2809, allocations: 0.8877 MB / 417.1 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.2821, allocations: 1.059 MB / 418.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002779/0.2824, allocations: 231.9 kB / 418.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000567/0.2829, allocations: 323.8 kB / 418.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00058/0.2835, allocations: 0.6273 MB / 419.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009998/0.2845, allocations: 1.031 MB / 420.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002745/0.2873, allocations: 3.001 MB / 423.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2873, allocations: 0 / 423.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2873, allocations: 4 kB / 423.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.955e-05/0.2874, allocations: 0 / 423.4 MB, free: 1.559 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.003768/0.2912, allocations: 2.174 MB / 425.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.2912, allocations: 12.03 kB / 425.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002652/0.2915, allocations: 228 kB / 425.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005966/0.2921, allocations: 227.7 kB / 426 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/0.294, allocations: 1.134 MB / 427.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.754e-05/0.2941, allocations: 111.4 kB / 427.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000224/0.2943, allocations: 163.9 kB / 427.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002858/0.2972, allocations: 1.963 MB / 429.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.56e-05/0.2973, allocations: 11.89 kB / 429.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.2974, allocations: 60 kB / 429.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.543e-05/0.2975, allocations: 74.92 kB / 429.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.2998, allocations: 1.589 MB / 431.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008775/0.3086, allocations: 6.29 MB / 437.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.3099, allocations: 0.8399 MB / 438.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000899/0.3108, allocations: 0.5691 MB / 438.8 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002078/0.311, allocations: 113.6 kB / 438.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.3111, allocations: 43.12 kB / 438.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.705e-06/0.3111, allocations: 4 kB / 438.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01266/0.3238, allocations: 5.873 MB / 444.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.3238, allocations: 60.41 kB / 444.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.3254, allocations: 1.14 MB / 446 MB, free: 10.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.393e-05/0.3255, allocations: 41.7 kB / 446.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005336/0.326, allocations: 0.7924 MB / 446.9 MB, free: 9.449 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.3263, allocations: 309.4 kB / 447.2 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/0.3266, allocations: 210.8 kB / 447.4 MB, free: 8.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3267, allocations: 349.9 kB / 447.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007181/0.3274, allocations: 0.5452 MB / 448.2 MB, free: 8.039 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009011/0.3283, allocations: 0.8834 MB / 449.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.3301, allocations: 1.52 MB / 450.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.3301, allocations: 4 kB / 450.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003194/0.3333, allocations: 2.048 MB / 452.7 MB, free: 3.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.3333, allocations: 12 kB / 452.7 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.3334, allocations: 15.94 kB / 452.7 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.3347, allocations: 0.5555 MB / 453.3 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008307/0.3356, allocations: 243.6 kB / 453.5 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008001/0.3436, allocations: 8.643 MB / 462.2 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/0.3447, allocations: 75.81 kB / 462.2 MB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.671e-05/0.3448, allocations: 48 kB / 462.3 MB, free: 9.09 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.0008817/0.3457, allocations: 0.5169 MB / 462.8 MB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.3459, allocations: 127.4 kB / 462.9 MB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.3487, allocations: 1.782 MB / 464.7 MB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3488, allocations: 12 kB / 464.7 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.3488, allocations: 4.094 kB / 464.7 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3488, allocations: 7.969 kB / 464.7 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005993/0.3548, allocations: 3.745 MB / 468.5 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.3548, allocations: 0 / 468.5 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005213/0.3554, allocations: 123.9 kB / 468.6 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.3569, allocations: 0.5993 MB / 469.2 MB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.459e-05/0.3569, allocations: 20 kB / 469.2 MB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007662/0.3646, allocations: 7.706 MB / 476.9 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3646, allocations: 4 kB / 476.9 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003667/0.3683, allocations: 2.496 MB / 479.4 MB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007162/0.3691, allocations: 316.3 kB / 479.7 MB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/0.3693, allocations: 27.92 kB / 479.8 MB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.37, allocations: 51.94 kB / 479.8 MB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3702, allocations: 68.56 kB / 479.9 MB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.812e-05/0.3702, allocations: 20 kB / 479.9 MB, free: 6.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.3714, allocations: 0.7893 MB / 480.7 MB, free: 6.059 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3715, allocations: 0 / 480.7 MB, free: 6.059 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001417/0.3729, allocations: 379.9 kB / 481.1 MB, free: 5.688 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.004037/0.3769, allocations: 3.113 MB / 484.2 MB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003262/0.3802, allocations: 2.138 MB / 486.3 MB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.3802, allocations: 4 kB / 486.3 MB, free: 280 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.3823, allocations: 1.303 MB / 487.6 MB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001773/0.3841, allocations: 358.5 kB / 488 MB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01983/0.4039, allocations: 13.68 MB / 0.4899 GB, free: 348 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.4051, allocations: 1.464 MB / 0.4913 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007241/0.4058, allocations: 259.1 kB / 0.4916 GB, free: 14.59 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006698/0.4065, allocations: 0.5657 MB / 0.4921 GB, free: 14.02 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4065, allocations: 0 / 0.4921 GB, free: 14.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07117/0.4777, allocations: 35 MB / 0.5263 GB, free: 11.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.09/16.57, allocations: 7.812 kB / 0.5263 GB, free: 11.42 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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)