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_Conveyor.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_Conveyor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, 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.001377/0.001377, allocations: 202 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.412/1.412, 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.001945/0.001945, allocations: 63.88 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2787, allocations: 50.55 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.01286/0.2916, allocations: 9.517 MB / 418.6 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008313/0.2999, allocations: 3.627 MB / 422.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002004/0.302, allocations: 47.81 kB / 422.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.3043, allocations: 0.729 MB / 423 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002966/0.3073, allocations: 0.8427 MB / 423.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.3087, allocations: 455.1 kB / 424.3 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003562/0.3122, allocations: 2.427 MB / 426.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002398/0.3146, allocations: 1.782 MB / 428.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.3166, allocations: 1.094 MB / 429.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001881/0.3185, allocations: 1.39 MB / 431 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003877/0.3189, allocations: 280 kB / 431.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008254/0.3197, allocations: 419.8 kB / 431.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008506/0.3206, allocations: 0.8063 MB / 432.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001402/0.322, allocations: 1.287 MB / 433.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004288/0.3263, allocations: 3.768 MB / 437.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3263, allocations: 0 / 437.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.3263, allocations: 4 kB / 437.5 MB, free: 4.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.694e-05/0.3264, allocations: 0 / 437.5 MB, free: 4.762 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: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.005867/0.3323, allocations: 2.75 MB / 440.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3323, allocations: 12.03 kB / 440.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003753/0.3327, allocations: 274.6 kB / 440.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008283/0.3336, allocations: 291.3 kB / 440.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/0.3362, allocations: 1.397 MB / 442.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.3364, allocations: 147.6 kB / 442.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003165/0.3367, allocations: 188 kB / 442.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004407/0.3411, allocations: 2.436 MB / 445 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.146e-05/0.3412, allocations: 7.953 kB / 445 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001807/0.3414, allocations: 79.98 kB / 445.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.3415, allocations: 99.67 kB / 445.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003516/0.345, allocations: 1.986 MB / 447.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/0.357, allocations: 7.342 MB / 454.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.3591, allocations: 1.337 MB / 455.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.3607, allocations: 0.8754 MB / 456.7 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002589/0.361, allocations: 118.1 kB / 456.8 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.3621, allocations: 0.6828 MB / 457.5 MB, free: 304 kB / 366.1 MB Notification: Performance of pre-optimization done (n=99): time 2.605e-06/0.3621, allocations: 0 / 457.5 MB, free: 304 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.01682/0.379, allocations: 7.379 MB / 464.9 MB, free: 8.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.3791, allocations: 171.2 kB / 465.1 MB, free: 8.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.3814, allocations: 1.427 MB / 466.5 MB, free: 7.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001319/0.3815, allocations: 49.64 kB / 466.5 MB, free: 7.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009444/0.3825, allocations: 0.9623 MB / 467.5 MB, free: 6.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000448/0.383, allocations: 436.3 kB / 467.9 MB, free: 5.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004253/0.3834, allocations: 251.5 kB / 468.2 MB, free: 5.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.3836, allocations: 361.9 kB / 468.5 MB, free: 5.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.3847, allocations: 0.6403 MB / 469.2 MB, free: 4.375 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.3861, allocations: 0.9975 MB / 470.2 MB, free: 3.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002521/0.3886, allocations: 1.703 MB / 471.9 MB, free: 1.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3886, allocations: 4 kB / 471.9 MB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004236/0.3929, allocations: 2.356 MB / 474.2 MB, free: 15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.3929, allocations: 8 kB / 474.2 MB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.3929, allocations: 12 kB / 474.3 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/0.3942, allocations: 495.9 kB / 474.7 MB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/0.3953, allocations: 295.5 kB / 475 MB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007947/0.4033, allocations: 7.19 MB / 482.2 MB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.4046, allocations: 95.86 kB / 482.3 MB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.4048, allocations: 60.05 kB / 482.4 MB, free: 6.422 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.dutyCycle.nextTimeEvent,$whenCondition1,dutyCycle.nextTimeEventScaled,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001168/0.406, allocations: 0.6291 MB / 483 MB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003705/0.4063, allocations: 163 kB / 483.2 MB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.4103, allocations: 2.163 MB / 485.3 MB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.4103, allocations: 15.98 kB / 485.3 MB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.4104, allocations: 4 kB / 485.3 MB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.4104, allocations: 3.984 kB / 485.3 MB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007863/0.4182, allocations: 4.462 MB / 489.8 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.4183, allocations: 4 kB / 489.8 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008033/0.4191, allocations: 192.1 kB / 490 MB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.4206, allocations: 0.5271 MB / 490.5 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.4207, allocations: 35.98 kB / 490.6 MB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008933/0.4296, allocations: 8.736 MB / 499.3 MB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.4297, allocations: 4 kB / 499.3 MB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005135/0.4348, allocations: 3.096 MB / 0.4906 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007884/0.4356, allocations: 375.9 kB / 0.491 GB, free: 1.168 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000252/0.4359, allocations: 39.98 kB / 0.491 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007796/0.4367, allocations: 67.94 kB / 0.4911 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002682/0.437, allocations: 96.73 kB / 0.4912 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/0.437, allocations: 43.98 kB / 0.4912 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001494/0.4385, allocations: 0.9835 MB / 0.4922 GB, free: 15.94 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4386, allocations: 0 / 0.4922 GB, free: 15.94 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001583/0.4401, allocations: 451.9 kB / 0.4926 GB, free: 15.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,3,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.006954/0.4471, allocations: 4.033 MB / 0.4965 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003861/0.451, allocations: 2.262 MB / 0.4988 GB, free: 9.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.451, allocations: 0 / 0.4988 GB, free: 9.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/0.4536, allocations: 1.527 MB / 0.5002 GB, free: 7.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.4559, allocations: 431.6 kB / 0.5007 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/0.4827, allocations: 16.23 MB / 0.5165 GB, free: 6.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/0.4844, allocations: 1.698 MB / 0.5182 GB, free: 4.645 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.4856, allocations: 329 kB / 0.5185 GB, free: 4.316 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/0.4867, allocations: 0.7492 MB / 0.5192 GB, free: 3.566 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4867, allocations: 0 / 0.5192 GB, free: 3.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2895/0.7762, allocations: 41.55 MB / 0.5598 GB, free: 116.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.41, allocations: 6.578 kB / 0.5598 GB, free: 116.6 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.csv --start-time 0 --stop-time 20 --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_Conveyor.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1)