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.001161/0.001161, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.00117/0.00117, allocations: 200.1 kB / 18 MB, free: 5.168 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.285/1.285, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 55.91 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2455, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.00889/0.2544, allocations: 8.184 MB / 408.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00474/0.2592, allocations: 2.691 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.2603, allocations: 43.81 kB / 411.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.2622, allocations: 0.636 MB / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001898/0.2641, allocations: 0.6562 MB / 412.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007742/0.2649, allocations: 299.5 kB / 412.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002375/0.2673, allocations: 2.026 MB / 414.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001536/0.2688, allocations: 1.424 MB / 416.2 MB, free: 8.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.27, allocations: 0.8838 MB / 417.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001255/0.2712, allocations: 1.066 MB / 418.2 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002908/0.2715, allocations: 224 kB / 418.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005379/0.2721, allocations: 319.8 kB / 418.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005472/0.2726, allocations: 0.635 MB / 419.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009766/0.2736, allocations: 1.034 MB / 420.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002752/0.2764, allocations: 2.997 MB / 423.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2764, allocations: 0 / 423.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2764, allocations: 3.938 kB / 423.4 MB, free: 1.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.589e-05/0.2765, allocations: 0 / 423.4 MB, free: 1.566 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.003854/0.2803, allocations: 2.182 MB / 425.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2804, allocations: 8.031 kB / 425.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000261/0.2807, allocations: 224.1 kB / 425.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005522/0.2812, allocations: 223.7 kB / 426 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.283, allocations: 1.15 MB / 427.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.257e-05/0.2831, allocations: 111.4 kB / 427.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.2833, allocations: 159.9 kB / 427.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002844/0.2861, allocations: 1.959 MB / 429.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.54e-05/0.2862, allocations: 7.953 kB / 429.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.2863, allocations: 60 kB / 429.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.041e-05/0.2864, allocations: 78.91 kB / 429.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/0.2889, allocations: 1.585 MB / 431.1 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008732/0.2976, allocations: 6.286 MB / 437.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.299, allocations: 0.8363 MB / 438.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009405/0.2999, allocations: 0.5729 MB / 438.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002147/0.3002, allocations: 117.6 kB / 438.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.3002, allocations: 43.12 kB / 438.9 MB, free: 1.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 3.316e-06/0.3002, allocations: 0 / 438.9 MB, free: 1.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01303/0.3133, allocations: 5.872 MB / 444.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.3133, allocations: 64.41 kB / 444.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.3149, allocations: 1.14 MB / 446 MB, free: 10.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.105e-05/0.315, allocations: 41.7 kB / 446.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/0.3155, allocations: 0.7924 MB / 446.8 MB, free: 9.457 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.3158, allocations: 313.4 kB / 447.2 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/0.3161, allocations: 210.8 kB / 447.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3162, allocations: 349.9 kB / 447.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007386/0.317, allocations: 0.5413 MB / 448.2 MB, free: 8.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009329/0.3179, allocations: 0.8835 MB / 449.1 MB, free: 7.012 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.3197, allocations: 1.52 MB / 450.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.3197, allocations: 4 kB / 450.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003306/0.323, allocations: 2.055 MB / 452.7 MB, free: 3.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.3231, allocations: 8 kB / 452.7 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.3231, allocations: 15.94 kB / 452.7 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/0.3245, allocations: 0.5555 MB / 453.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008096/0.3253, allocations: 243.6 kB / 453.5 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007924/0.3332, allocations: 8.651 MB / 462.2 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000973/0.3343, allocations: 75.83 kB / 462.2 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.136e-05/0.3344, allocations: 47.98 kB / 462.3 MB, free: 9.086 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.0007965/0.3352, allocations: 0.5209 MB / 462.8 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.3354, allocations: 131.2 kB / 462.9 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.3383, allocations: 1.77 MB / 464.7 MB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.3383, allocations: 8 kB / 464.7 MB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3383, allocations: 4 kB / 464.7 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3383, allocations: 4.078 kB / 464.7 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005903/0.3442, allocations: 3.745 MB / 468.5 MB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3443, allocations: 0 / 468.5 MB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.3448, allocations: 132 kB / 468.6 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.3463, allocations: 0.5925 MB / 469.2 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-05/0.3464, allocations: 23.98 kB / 469.2 MB, free: 2.023 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007908/0.3543, allocations: 7.713 MB / 476.9 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3544, allocations: 128 / 476.9 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003701/0.3581, allocations: 2.488 MB / 479.4 MB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006401/0.3588, allocations: 316.3 kB / 479.7 MB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.3589, allocations: 27.92 kB / 479.8 MB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006526/0.3596, allocations: 51.94 kB / 479.8 MB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.3598, allocations: 68.5 kB / 479.9 MB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.314e-05/0.3599, allocations: 31.98 kB / 479.9 MB, free: 6.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.361, allocations: 0.7854 MB / 480.7 MB, free: 6.059 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.361, allocations: 0 / 480.7 MB, free: 6.059 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001342/0.3623, allocations: 375.9 kB / 481.1 MB, free: 5.691 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.004057/0.3664, allocations: 3.113 MB / 484.2 MB, free: 2.512 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003258/0.3697, allocations: 2.142 MB / 486.3 MB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3697, allocations: 0 / 486.3 MB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.3717, allocations: 1.295 MB / 487.6 MB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.3735, allocations: 370.6 kB / 488 MB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01914/0.3927, allocations: 13.66 MB / 0.4899 GB, free: 360 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001074/0.3938, allocations: 1.464 MB / 0.4913 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007431/0.3945, allocations: 263 kB / 0.4916 GB, free: 14.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006822/0.3952, allocations: 0.5696 MB / 0.4921 GB, free: 14.03 MB / 430.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3952, allocations: 0 / 0.4921 GB, free: 14.03 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07079/0.466, allocations: 35 MB / 0.5263 GB, free: 11.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.61/17.07, allocations: 6.984 kB / 0.5263 GB, free: 11.44 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)