Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_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 trunk/package.mo): time 0.001351/0.001351, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.375/1.375, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 59.91 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2831, allocations: 50.54 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01004/0.2932, allocations: 8.229 MB / 417.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005603/0.2988, allocations: 2.734 MB / 420 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.3001, allocations: 43.81 kB / 420.1 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.3022, allocations: 0.6047 MB / 420.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002291/0.3045, allocations: 0.6328 MB / 421.3 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008891/0.3054, allocations: 287.6 kB / 421.6 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002875/0.3083, allocations: 2.043 MB / 423.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002086/0.3104, allocations: 1.417 MB / 425.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001557/0.312, allocations: 0.8877 MB / 425.9 MB, free: 412 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001808/0.3138, allocations: 1.07 MB / 427 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005329/0.3144, allocations: 228 kB / 427.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009215/0.3153, allocations: 311.8 kB / 427.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009246/0.3163, allocations: 0.6428 MB / 428.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001719/0.318, allocations: 1.027 MB / 429.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003903/0.3219, allocations: 3.013 MB / 432.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3219, allocations: 0 / 432.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.322, allocations: 0 / 432.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.359e-05/0.322, allocations: 0 / 432.2 MB, free: 10.1 MB / 350.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.004502/0.3265, allocations: 2.19 MB / 434.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.564e-05/0.3266, allocations: 8.031 kB / 434.4 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003181/0.327, allocations: 224.1 kB / 434.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006525/0.3276, allocations: 227.6 kB / 434.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.3296, allocations: 1.142 MB / 436 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.022e-05/0.3297, allocations: 115.1 kB / 436.1 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002492/0.3299, allocations: 156 kB / 436.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003523/0.3335, allocations: 1.959 MB / 438.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.288e-05/0.3336, allocations: 15.95 kB / 438.2 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.3337, allocations: 59.94 kB / 438.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.762e-05/0.3338, allocations: 78.91 kB / 438.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002885/0.3367, allocations: 1.585 MB / 440 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01071/0.3474, allocations: 6.294 MB / 446.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.349, allocations: 0.8361 MB / 447.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.35, allocations: 0.5652 MB / 447.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002314/0.3503, allocations: 117.6 kB / 447.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.3504, allocations: 43.11 kB / 447.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.324e-06/0.3504, allocations: 0 / 447.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.0143/0.3647, allocations: 5.869 MB / 453.7 MB, free: 4.055 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3648, allocations: 60.41 kB / 453.7 MB, free: 3.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002041/0.3668, allocations: 1.152 MB / 454.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.367, allocations: 41.7 kB / 454.9 MB, free: 2.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006874/0.3677, allocations: 0.7886 MB / 455.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000336/0.368, allocations: 321.3 kB / 456 MB, free: 1.656 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003869/0.3684, allocations: 206.9 kB / 456.2 MB, free: 1.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.3686, allocations: 353.9 kB / 456.6 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008477/0.3694, allocations: 0.5413 MB / 457.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.3706, allocations: 0.8795 MB / 458 MB, free: 15.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002132/0.3727, allocations: 1.527 MB / 459.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.3728, allocations: 4 kB / 459.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003723/0.3765, allocations: 2.048 MB / 461.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.3766, allocations: 15.94 kB / 461.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.727e-05/0.3766, allocations: 19.92 kB / 461.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001523/0.3781, allocations: 0.5438 MB / 462.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.379, allocations: 239.6 kB / 462.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009649/0.3887, allocations: 8.66 MB / 471.1 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.3898, allocations: 71.92 kB / 471.1 MB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/0.39, allocations: 52.16 kB / 471.2 MB, free: 1.598 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.001062/0.3911, allocations: 0.5169 MB / 471.7 MB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003688/0.3914, allocations: 131.2 kB / 471.8 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/0.3949, allocations: 1.778 MB / 473.6 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.3949, allocations: 8 kB / 473.6 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.3949, allocations: 12.09 kB / 473.6 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.395, allocations: 7.922 kB / 473.6 MB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007038/0.402, allocations: 3.734 MB / 477.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4021, allocations: 4.031 kB / 477.4 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.4026, allocations: 127.8 kB / 477.5 MB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/0.4043, allocations: 0.5951 MB / 478.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.949e-05/0.4043, allocations: 23.98 kB / 478.1 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008945/0.4133, allocations: 7.711 MB / 485.8 MB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4133, allocations: 0 / 485.8 MB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.4176, allocations: 2.492 MB / 488.3 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007092/0.4183, allocations: 312.3 kB / 488.6 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003164/0.4187, allocations: 27.92 kB / 488.6 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007637/0.4194, allocations: 63.86 kB / 488.7 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.4196, allocations: 64.56 kB / 488.8 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/0.4197, allocations: 31.98 kB / 488.8 MB, free: 15.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001398/0.4211, allocations: 0.7856 MB / 489.6 MB, free: 14.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4211, allocations: 4 kB / 489.6 MB, free: 14.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001544/0.4227, allocations: 375.9 kB / 490 MB, free: 14.19 MB / 414.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.004673/0.4274, allocations: 3.113 MB / 493.1 MB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003627/0.431, allocations: 2.139 MB / 495.2 MB, free: 8.781 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.4311, allocations: 192 / 495.2 MB, free: 8.781 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/0.4333, allocations: 1.298 MB / 496.5 MB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/0.4354, allocations: 378.7 kB / 496.9 MB, free: 7.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/0.4594, allocations: 13.7 MB / 0.4986 GB, free: 8.824 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/0.4612, allocations: 1.46 MB / 0.5 GB, free: 7.336 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009767/0.4622, allocations: 263 kB / 0.5003 GB, free: 7.074 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009728/0.4632, allocations: 0.5657 MB / 0.5008 GB, free: 6.508 MB / 430.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4632, allocations: 0 / 0.5008 GB, free: 6.508 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08895/0.5522, allocations: 35.13 MB / 0.5351 GB, free: 3.812 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.37/16.92, allocations: 7.062 kB / 0.5352 GB, free: 3.809 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)