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_Initialize.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_Initialize,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001902/0.001908, 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.002438/0.002438, 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.437/1.437, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.002098/0.002099, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2667, allocations: 50.54 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.01123/0.278, allocations: 8.952 MB / 418 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00606/0.2841, allocations: 2.941 MB / 421 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.2856, allocations: 47.81 kB / 421 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.2874, allocations: 0.6045 MB / 421.6 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002479/0.2899, allocations: 0.73 MB / 422.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000873/0.2907, allocations: 339.5 kB / 422.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003169/0.2939, allocations: 2.373 MB / 425.1 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0023/0.2963, allocations: 1.762 MB / 426.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0018/0.2981, allocations: 1.071 MB / 427.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002219/0.3003, allocations: 1.339 MB / 429.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005497/0.3009, allocations: 284 kB / 429.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009125/0.3018, allocations: 379.8 kB / 429.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008944/0.3027, allocations: 0.7986 MB / 430.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001718/0.3044, allocations: 1.268 MB / 431.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004672/0.3091, allocations: 3.709 MB / 435.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.3092, allocations: 4 kB / 435.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3092, allocations: 0 / 435.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.188e-05/0.3093, allocations: 0 / 435.7 MB, free: 6.648 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.005916/0.3152, allocations: 2.658 MB / 438.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3153, allocations: 15.97 kB / 438.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003671/0.3156, allocations: 266 kB / 438.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001028/0.3167, allocations: 299.3 kB / 438.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002544/0.3192, allocations: 1.417 MB / 440.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.3194, allocations: 139.7 kB / 440.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003161/0.3197, allocations: 187.9 kB / 440.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004182/0.3239, allocations: 2.402 MB / 443 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.448e-05/0.3239, allocations: 11.98 kB / 443 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001661/0.3241, allocations: 72 kB / 443.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.806e-05/0.3242, allocations: 83.5 kB / 443.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003548/0.3278, allocations: 2.02 MB / 445.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01227/0.3401, allocations: 7.388 MB / 452.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.3421, allocations: 1.277 MB / 453.9 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.3439, allocations: 0.9125 MB / 454.8 MB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002536/0.3441, allocations: 114.1 kB / 454.9 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.3442, allocations: 43.56 kB / 454.9 MB, free: 2.898 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 3.156e-06/0.3442, allocations: 0 / 454.9 MB, free: 2.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.009861/0.3541, allocations: 4.933 MB / 459.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.3542, allocations: 60.41 kB / 459.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002183/0.3564, allocations: 1.393 MB / 461.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.3565, allocations: 45.7 kB / 461.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007872/0.3573, allocations: 0.915 MB / 462.3 MB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003494/0.3576, allocations: 376.8 kB / 462.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000363/0.358, allocations: 214.8 kB / 462.9 MB, free: 10.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3582, allocations: 353.9 kB / 463.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.3593, allocations: 0.6388 MB / 463.8 MB, free: 9.836 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.3606, allocations: 0.922 MB / 464.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/0.363, allocations: 1.641 MB / 466.4 MB, free: 7.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.363, allocations: 7.938 kB / 466.4 MB, free: 7.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004522/0.3676, allocations: 2.391 MB / 468.8 MB, free: 4.617 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.3676, allocations: 12 kB / 468.8 MB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.3677, allocations: 8 kB / 468.8 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001893/0.3696, allocations: 0.7245 MB / 469.5 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/0.3705, allocations: 235.5 kB / 469.8 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/0.3823, allocations: 8.733 MB / 478.5 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3835, allocations: 88.03 kB / 478.6 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.3837, allocations: 48.11 kB / 478.6 MB, free: 10.49 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (6,29,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001187/0.3849, allocations: 0.6262 MB / 479.3 MB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003457/0.3852, allocations: 155 kB / 479.4 MB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00355/0.3888, allocations: 1.901 MB / 481.3 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.3888, allocations: 8 kB / 481.3 MB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.3888, allocations: 8 kB / 481.3 MB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.3888, allocations: 7.969 kB / 481.3 MB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007074/0.3959, allocations: 4.005 MB / 485.4 MB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.396, allocations: 4.031 kB / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007978/0.3968, allocations: 179.7 kB / 485.5 MB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.398, allocations: 461.9 kB / 486 MB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.241e-05/0.3982, allocations: 39.86 kB / 486 MB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007039/0.4052, allocations: 6.687 MB / 492.7 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4052, allocations: 7.969 kB / 492.7 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/0.4099, allocations: 2.776 MB / 495.5 MB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008218/0.4108, allocations: 372 kB / 495.9 MB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000234/0.411, allocations: 23.98 kB / 495.9 MB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007736/0.4118, allocations: 71.92 kB / 496 MB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002408/0.4121, allocations: 76.77 kB / 496 MB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.4122, allocations: 35.92 kB / 496.1 MB, free: 8.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001555/0.4137, allocations: 0.9703 MB / 497 MB, free: 7.469 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4137, allocations: 0 / 497 MB, free: 7.469 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001533/0.4153, allocations: 435.9 kB / 497.5 MB, free: 7.043 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.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 (84): * Single equations (assignments): 80 * 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 {(2,12,100.0%), (1,1,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.004951/0.4202, allocations: 3.411 MB / 0.4891 GB, free: 3.574 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003635/0.4239, allocations: 2.02 MB / 0.4911 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.4239, allocations: 4 kB / 0.4911 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.4261, allocations: 1.344 MB / 0.4924 GB, free: 124 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/0.4281, allocations: 378.9 kB / 0.4928 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02743/0.4556, allocations: 16.4 MB / 0.5088 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001732/0.4574, allocations: 1.7 MB / 0.5105 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.4585, allocations: 312 kB / 0.5108 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/0.4596, allocations: 0.7101 MB / 0.5114 GB, free: 12.13 MB / 446.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4596, allocations: 0 / 0.5114 GB, free: 12.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3014/0.761, allocations: 40.08 MB / 0.5506 GB, free: 124.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/17.73, allocations: 5.047 kB / 0.5506 GB, free: 124.9 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_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_IMC_Initialize.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1)