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.001075/0.001075, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001109/0.001109, allocations: 191 kB / 18 MB, free: 4.977 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.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 43.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2274, allocations: 49.44 MB / 400.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008676/0.2361, allocations: 8.182 MB / 408.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004809/0.2409, allocations: 2.699 MB / 411.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007605/0.2417, allocations: 39.88 kB / 411.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00161/0.2434, allocations: 0.6057 MB / 411.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00202/0.2454, allocations: 0.6289 MB / 412.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007738/0.2462, allocations: 283.6 kB / 412.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002456/0.2487, allocations: 2.031 MB / 414.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001958/0.2507, allocations: 1.42 MB / 416.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.252, allocations: 0.8876 MB / 417 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001563/0.2535, allocations: 1.059 MB / 418.1 MB, free: 7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004779/0.254, allocations: 224 kB / 418.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007938/0.2548, allocations: 319.8 kB / 418.6 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007554/0.2556, allocations: 0.635 MB / 419.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001456/0.2571, allocations: 1.027 MB / 420.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003077/0.2601, allocations: 2.998 MB / 423.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.2602, allocations: 0 / 423.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2602, allocations: 0 / 423.3 MB, free: 1.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000108/0.2603, allocations: 0 / 423.3 MB, free: 1.793 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.004917/0.2652, allocations: 2.122 MB / 425.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2653, allocations: 16.02 kB / 425.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003791/0.2657, allocations: 228 kB / 425.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006358/0.2663, allocations: 210.7 kB / 425.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.2683, allocations: 1.141 MB / 427 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.22e-05/0.2684, allocations: 123.3 kB / 427.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.2686, allocations: 147.9 kB / 427.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002959/0.2716, allocations: 1.963 MB / 429.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.609e-05/0.2716, allocations: 7.891 kB / 429.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.2718, allocations: 64 kB / 429.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.284e-05/0.2719, allocations: 74.92 kB / 429.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.2743, allocations: 1.589 MB / 430.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009228/0.2836, allocations: 6.272 MB / 437.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.2849, allocations: 0.8269 MB / 438 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009632/0.2859, allocations: 0.573 MB / 438.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002058/0.2861, allocations: 121.6 kB / 438.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.2862, allocations: 39.12 kB / 438.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.865e-06/0.2862, allocations: 0 / 438.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01315/0.2993, allocations: 5.838 MB / 444.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.2994, allocations: 68.28 kB / 444.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001553/0.301, allocations: 1.148 MB / 445.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.049e-05/0.3011, allocations: 41.7 kB / 445.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005269/0.3016, allocations: 0.7631 MB / 446.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.3018, allocations: 307.6 kB / 446.9 MB, free: 9.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.3022, allocations: 202.8 kB / 447.1 MB, free: 9.301 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3023, allocations: 349.9 kB / 447.5 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000773/0.3031, allocations: 0.5491 MB / 448 MB, free: 8.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009984/0.3041, allocations: 0.8718 MB / 448.9 MB, free: 7.383 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001868/0.306, allocations: 1.527 MB / 450.4 MB, free: 5.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.306, allocations: 4 kB / 450.4 MB, free: 5.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003354/0.3093, allocations: 2.047 MB / 452.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.3094, allocations: 8 kB / 452.5 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.3094, allocations: 15.94 kB / 452.5 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/0.3109, allocations: 0.5555 MB / 453 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.3117, allocations: 239.6 kB / 453.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008209/0.3199, allocations: 8.647 MB / 461.9 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009688/0.3209, allocations: 75.86 kB / 462 MB, free: 9.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-05/0.321, allocations: 48 kB / 462 MB, free: 9.465 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.000784/0.3218, allocations: 0.5209 MB / 462.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.3221, allocations: 122.5 kB / 462.7 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002916/0.325, allocations: 1.766 MB / 464.4 MB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.325, allocations: 11.98 kB / 464.5 MB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.325, allocations: 8 kB / 464.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.325, allocations: 7.984 kB / 464.5 MB, free: 7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006018/0.3311, allocations: 3.745 MB / 468.2 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3311, allocations: 4.219 kB / 468.2 MB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005338/0.3316, allocations: 127.8 kB / 468.3 MB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001498/0.3332, allocations: 0.5847 MB / 468.9 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.969e-05/0.3332, allocations: 23.98 kB / 469 MB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007707/0.3409, allocations: 7.712 MB / 476.7 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.341, allocations: 0 / 476.7 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003649/0.3446, allocations: 2.48 MB / 479.1 MB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006857/0.3453, allocations: 319.5 kB / 479.5 MB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001703/0.3455, allocations: 23.94 kB / 479.5 MB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006478/0.3462, allocations: 51.94 kB / 479.5 MB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.3464, allocations: 76.48 kB / 479.6 MB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-05/0.3464, allocations: 24 kB / 479.6 MB, free: 7.246 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001109/0.3475, allocations: 0.7854 MB / 480.4 MB, free: 6.453 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3476, allocations: 0 / 480.4 MB, free: 6.453 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001301/0.3489, allocations: 376 kB / 480.8 MB, free: 6.086 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.004126/0.353, allocations: 3.102 MB / 483.9 MB, free: 2.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.3563, allocations: 2.138 MB / 486 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3563, allocations: 0.8125 kB / 486 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/0.3584, allocations: 1.295 MB / 487.3 MB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.3602, allocations: 368.1 kB / 487.7 MB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/0.3805, allocations: 13.62 MB / 0.4895 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.3818, allocations: 1.46 MB / 0.491 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007578/0.3825, allocations: 263.1 kB / 0.4912 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007136/0.3833, allocations: 0.5657 MB / 0.4918 GB, free: 14.5 MB / 430.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3833, allocations: 3.938 kB / 0.4918 GB, free: 14.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07036/0.4536, allocations: 35 MB / 0.526 GB, free: 11.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.48/16.93, allocations: 7.688 kB / 0.526 GB, free: 11.89 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)