Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001558/0.001558, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001962/0.001962, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.485/1.485, allocations: 230.4 MB / 250 MB, free: 9.043 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.002125/0.002125, allocations: 71.81 kB / 366.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2683, allocations: 53.31 MB / 420.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.01747/0.2858, allocations: 14.14 MB / 434.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.297, allocations: 5.237 MB / 439.6 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00282/0.2998, allocations: 83.69 kB / 439.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004053/0.3039, allocations: 1.153 MB / 440.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005223/0.3091, allocations: 1.437 MB / 442.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.3122, allocations: 1 MB / 443.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006333/0.3186, allocations: 4.121 MB / 447.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003576/0.3222, allocations: 2.27 MB / 449.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00367/0.3258, allocations: 1.939 MB / 451.6 MB, free: 8.727 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004559/0.3304, allocations: 2.328 MB / 453.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001535/0.3319, allocations: 0.5117 MB / 454.4 MB, free: 5.879 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.3345, allocations: 0.7692 MB / 455.2 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001742/0.3362, allocations: 1.157 MB / 456.3 MB, free: 3.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004752/0.341, allocations: 2.151 MB / 458.5 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.3516, allocations: 6.867 MB / 465.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3516, allocations: 0 / 465.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3516, allocations: 0 / 465.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002204/0.3518, allocations: 0 / 465.3 MB, free: 10.9 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01414/0.366, allocations: 4.615 MB / 470 MB, free: 6.203 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.366, allocations: 8.031 kB / 470 MB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001217/0.3672, allocations: 459.7 kB / 470.4 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005008/0.3722, allocations: 0.8533 MB / 471.3 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005608/0.3778, allocations: 2.492 MB / 473.8 MB, free: 2.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002744/0.3781, allocations: 246.4 kB / 474 MB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.3791, allocations: 316 kB / 474.3 MB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0102/0.3893, allocations: 4.284 MB / 478.6 MB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001142/0.3894, allocations: 11.89 kB / 478.6 MB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000636/0.3901, allocations: 128 kB / 478.7 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000195/0.3903, allocations: 162.4 kB / 478.9 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008269/0.3985, allocations: 3.629 MB / 482.5 MB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02402/0.4226, allocations: 13.37 MB / 495.9 MB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007875/0.4304, allocations: 7.097 MB / 0.4912 GB, free: 3.746 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003299/0.4337, allocations: 1.526 MB / 0.4927 GB, free: 2.223 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008259/0.442, allocations: 4.316 MB / 0.4969 GB, free: 13.75 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001509/0.4435, allocations: 0.8767 MB / 0.4978 GB, free: 12.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 2.986e-06/0.4435, allocations: 0 / 0.4978 GB, free: 12.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=140): time 0.01492/0.4584, allocations: 6.737 MB / 0.5043 GB, free: 5.898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.4586, allocations: 222.9 kB / 0.5045 GB, free: 5.633 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/0.462, allocations: 1.948 MB / 0.5064 GB, free: 3.637 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002511/0.4622, allocations: 49.7 kB / 0.5065 GB, free: 3.582 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/0.4639, allocations: 1.526 MB / 0.508 GB, free: 2.043 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006533/0.4645, allocations: 0.5036 MB / 0.5085 GB, free: 1.535 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000577/0.4651, allocations: 307.5 kB / 0.5088 GB, free: 1.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4652, allocations: 301.1 kB / 0.5091 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.4665, allocations: 0.6715 MB / 0.5097 GB, free: 268 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.4682, allocations: 1.229 MB / 0.5109 GB, free: 14.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003175/0.4714, allocations: 1.955 MB / 0.5128 GB, free: 12.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.4714, allocations: 7.938 kB / 0.5128 GB, free: 12.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004819/0.4762, allocations: 2.519 MB / 0.5153 GB, free: 10.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.4762, allocations: 12 kB / 0.5153 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.938e-05/0.4763, allocations: 16 kB / 0.5153 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009608/0.4772, allocations: 335.4 kB / 0.5156 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.4787, allocations: 375.4 kB / 0.516 GB, free: 9.352 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007549/0.4863, allocations: 6.8 MB / 0.5226 GB, free: 2.133 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.488, allocations: 95.91 kB / 0.5227 GB, free: 2.039 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/0.4882, allocations: 79.98 kB / 0.5228 GB, free: 1.961 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (193): * Single equations (assignments): 189 * 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 {(1,4,100.0%), (1,8,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002023/0.4902, allocations: 1.032 MB / 0.5238 GB, free: 0.918 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/0.4907, allocations: 218.6 kB / 0.524 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004604/0.4953, allocations: 2.321 MB / 0.5263 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.4953, allocations: 16 kB / 0.5263 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.4954, allocations: 4 kB / 0.5263 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.228e-05/0.4954, allocations: 15.97 kB / 0.5263 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009957/0.5053, allocations: 5.202 MB / 0.5314 GB, free: 8.938 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/0.5053, allocations: 0 / 0.5314 GB, free: 8.938 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008572/0.5062, allocations: 175.8 kB / 0.5316 GB, free: 8.766 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.5076, allocations: 0.504 MB / 0.5321 GB, free: 8.246 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.5078, allocations: 35.98 kB / 0.5321 GB, free: 8.211 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2519/0.7596, allocations: 11.57 MB / 0.5434 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.7596, allocations: 1.312 kB / 0.5434 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00549/0.7651, allocations: 3.24 MB / 0.5466 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.7662, allocations: 440.6 kB / 0.547 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004119/0.7666, allocations: 41.44 kB / 0.547 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009733/0.7675, allocations: 63.55 kB / 0.5471 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/0.7679, allocations: 107.1 kB / 0.5472 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.802e-05/0.768, allocations: 40.38 kB / 0.5472 GB, free: 110.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002274/0.7702, allocations: 1.329 MB / 0.5485 GB, free: 109.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7702, allocations: 4.125 kB / 0.5485 GB, free: 109.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002957/0.7732, allocations: 0.5885 MB / 0.5491 GB, free: 109.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (99): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,8,100.0%), (1,3,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006556/0.7797, allocations: 4.156 MB / 0.5532 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003344/0.7831, allocations: 2.153 MB / 0.5553 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.7831, allocations: 0 / 0.5553 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002269/0.7854, allocations: 1.554 MB / 0.5568 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/0.7883, allocations: 0.5546 MB / 0.5573 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03264/0.821, allocations: 20.36 MB / 0.5772 GB, free: 88.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/0.8231, allocations: 2.368 MB / 0.5795 GB, free: 85.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001433/0.8246, allocations: 401.2 kB / 0.5799 GB, free: 85.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/0.8261, allocations: 1.191 MB / 0.5811 GB, free: 84.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.643e-06/0.8261, allocations: 0 / 0.5811 GB, free: 84.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/0.9285, allocations: 55.84 MB / 0.6356 GB, free: 28.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/15.45, allocations: 3.859 kB / 0.6356 GB, free: 28.9 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1)