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.IMS_Start.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.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001459/0.001459, allocations: 120.9 kB / 17.84 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 200.4 kB / 18.78 MB, free: 4.137 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.391/1.391, allocations: 230.4 MB / 250 MB, free: 9.027 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.001817/0.001817, allocations: 68.03 kB / 366.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2448, allocations: 53.31 MB / 420.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01401/0.2589, allocations: 11.91 MB / 432.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007461/0.2663, allocations: 3.832 MB / 435.9 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.268, allocations: 79.69 kB / 436 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002142/0.2701, allocations: 0.9211 MB / 436.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003221/0.2733, allocations: 1.138 MB / 438.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.2746, allocations: 0.507 MB / 438.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005229/0.2798, allocations: 4.238 MB / 442.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.2829, allocations: 2.407 MB / 445.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.2861, allocations: 1.916 MB / 447.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004461/0.2906, allocations: 2.394 MB / 449.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001154/0.2917, allocations: 0.4961 MB / 450 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.2934, allocations: 0.5975 MB / 450.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001444/0.2948, allocations: 1.418 MB / 452 MB, free: 8.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002919/0.2978, allocations: 2.205 MB / 454.2 MB, free: 6.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007436/0.3052, allocations: 6.594 MB / 460.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3052, allocations: 3.984 kB / 460.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3052, allocations: 0 / 460.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001564/0.3054, allocations: 0 / 460.8 MB, free: 15.48 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.009916/0.3153, allocations: 4.415 MB / 465.3 MB, free: 10.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3153, allocations: 12.03 kB / 465.3 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006778/0.316, allocations: 446.6 kB / 465.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/0.3174, allocations: 490.2 kB / 466.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004426/0.3218, allocations: 2.427 MB / 468.6 MB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002102/0.322, allocations: 234.1 kB / 468.8 MB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006055/0.3226, allocations: 311.9 kB / 469.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008014/0.3307, allocations: 4.369 MB / 473.5 MB, free: 2.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.582e-05/0.3307, allocations: 11.89 kB / 473.5 MB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002914/0.331, allocations: 124 kB / 473.6 MB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.3312, allocations: 134 kB / 473.8 MB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006602/0.3378, allocations: 3.779 MB / 477.6 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02158/0.3593, allocations: 13.41 MB / 491 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003612/0.3629, allocations: 2.762 MB / 493.7 MB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002771/0.3657, allocations: 1.567 MB / 495.3 MB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002788/0.366, allocations: 134.3 kB / 495.4 MB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.576e-05/0.3661, allocations: 51.88 kB / 495.5 MB, free: 12.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=164): time 4.528e-06/0.3661, allocations: 0 / 495.5 MB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=180): time 0.01846/0.3845, allocations: 9.027 MB / 0.4927 GB, free: 2.852 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.3846, allocations: 77.41 kB / 0.4928 GB, free: 2.762 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003942/0.3885, allocations: 2.374 MB / 0.4951 GB, free: 368 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003594/0.3889, allocations: 57.7 kB / 0.4951 GB, free: 304 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.3902, allocations: 1.513 MB / 0.4966 GB, free: 14.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008227/0.391, allocations: 0.6313 MB / 0.4972 GB, free: 14.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000691/0.3917, allocations: 367.5 kB / 0.4976 GB, free: 13.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.3918, allocations: 301.1 kB / 0.4979 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00198/0.3938, allocations: 1.124 MB / 0.499 GB, free: 12.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002199/0.396, allocations: 1.571 MB / 0.5005 GB, free: 10.6 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00407/0.4001, allocations: 2.784 MB / 0.5032 GB, free: 7.641 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.4001, allocations: 4 kB / 0.5032 GB, free: 7.637 MB / 430.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006265/0.4064, allocations: 3.598 MB / 0.5067 GB, free: 4.008 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.4064, allocations: 15.94 kB / 0.5067 GB, free: 3.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.4064, allocations: 12 kB / 0.5068 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002036/0.4085, allocations: 0.8053 MB / 0.5075 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00183/0.4103, allocations: 455.3 kB / 0.508 GB, free: 2.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.4218, allocations: 11.17 MB / 0.5189 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.4238, allocations: 132 kB / 0.519 GB, free: 6.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.4239, allocations: 79.98 kB / 0.5191 GB, free: 6.633 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001916/0.4259, allocations: 1.092 MB / 0.5201 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005339/0.4264, allocations: 262.3 kB / 0.5204 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005819/0.4322, allocations: 3.282 MB / 0.5236 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/0.4322, allocations: 20.06 kB / 0.5236 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.4322, allocations: 12 kB / 0.5236 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.4323, allocations: 7.969 kB / 0.5236 GB, free: 1.914 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.4443, allocations: 6.837 MB / 0.5303 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4443, allocations: 4 kB / 0.5303 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.4455, allocations: 295.8 kB / 0.5306 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002381/0.4479, allocations: 0.9268 MB / 0.5315 GB, free: 9.707 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.448, allocations: 43.92 kB / 0.5316 GB, free: 9.664 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2091/0.6571, allocations: 14.62 MB / 0.5458 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.6571, allocations: 2.562 kB / 0.5458 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007053/0.6642, allocations: 4.862 MB / 0.5506 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/0.6654, allocations: 0.5752 MB / 0.5511 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004192/0.6658, allocations: 39.5 kB / 0.5512 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.6671, allocations: 120.2 kB / 0.5513 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004056/0.6675, allocations: 161.7 kB / 0.5514 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.856e-05/0.6676, allocations: 47.27 kB / 0.5515 GB, free: 108.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00203/0.6696, allocations: 1.637 MB / 0.5531 GB, free: 108.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6696, allocations: 0 / 0.5531 GB, free: 108.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00184/0.6715, allocations: 0.7112 MB / 0.5538 GB, free: 108 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006138/0.6776, allocations: 5.521 MB / 0.5592 GB, free: 105.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004281/0.6819, allocations: 3.479 MB / 0.5626 GB, free: 102.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.6819, allocations: 4 kB / 0.5626 GB, free: 102.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002761/0.6847, allocations: 2.422 MB / 0.5649 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/0.6882, allocations: 0.7272 MB / 0.5657 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03271/0.7209, allocations: 26.42 MB / 0.5914 GB, free: 73.55 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001787/0.7227, allocations: 2.522 MB / 0.5939 GB, free: 71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001542/0.7242, allocations: 0.5867 MB / 0.5945 GB, free: 70.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/0.7255, allocations: 1.265 MB / 0.5957 GB, free: 69.14 MB / 462.1 MB Notification: Performance of SimCode: time 1.653e-06/0.7255, allocations: 0 / 0.5957 GB, free: 69.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1071/0.8326, allocations: 67.77 MB / 0.6619 GB, free: 2.059 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.62, allocations: 8 kB / 0.6619 GB, free: 2.051 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1)