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.00135/0.00135, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 198 kB / 18.73 MB, free: 4.312 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.486/1.486, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.001941/0.001941, allocations: 67.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3108, allocations: 50.54 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.01807/0.3289, allocations: 14.08 MB / 423.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.3432, allocations: 5.203 MB / 428.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003576/0.3468, allocations: 83.69 kB / 428.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004062/0.3509, allocations: 1.118 MB / 429.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005636/0.3566, allocations: 1.39 MB / 431 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003107/0.3597, allocations: 0.9887 MB / 431.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006343/0.3661, allocations: 4.12 MB / 436.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004895/0.371, allocations: 3.261 MB / 439.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003514/0.3746, allocations: 1.92 MB / 441.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004286/0.3789, allocations: 2.293 MB / 443.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.3799, allocations: 0.5078 MB / 444 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001873/0.3818, allocations: 0.7692 MB / 444.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.3831, allocations: 1.149 MB / 446 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00328/0.3864, allocations: 2.151 MB / 448.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009268/0.3956, allocations: 6.856 MB / 455 MB, free: 3.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3957, allocations: 0 / 455 MB, free: 3.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.91e-06/0.3957, allocations: 0 / 455 MB, free: 3.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001765/0.3959, allocations: 7.938 kB / 455 MB, free: 3.266 MB / 366.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.01309/0.409, allocations: 4.615 MB / 459.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.409, allocations: 8.031 kB / 459.6 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000845/0.4099, allocations: 459.7 kB / 460 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004571/0.4145, allocations: 0.8299 MB / 460.9 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005702/0.4202, allocations: 2.503 MB / 463.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/0.4206, allocations: 246.4 kB / 463.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.4217, allocations: 316 kB / 463.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009465/0.4311, allocations: 4.3 MB / 468.2 MB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.031e-05/0.4313, allocations: 3.953 kB / 468.2 MB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003544/0.4316, allocations: 132 kB / 468.4 MB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001668/0.4318, allocations: 150.4 kB / 468.5 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007891/0.4397, allocations: 3.64 MB / 472.1 MB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02426/0.464, allocations: 13.39 MB / 485.5 MB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008344/0.4724, allocations: 7.234 MB / 492.8 MB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.476, allocations: 1.636 MB / 494.4 MB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008215/0.4842, allocations: 4.324 MB / 498.7 MB, free: 5.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001557/0.4858, allocations: 0.8727 MB / 499.6 MB, free: 4.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 4.408e-06/0.4858, allocations: 0 / 499.6 MB, free: 4.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.0147/0.5005, allocations: 6.768 MB / 0.4945 GB, free: 13.96 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/0.5007, allocations: 222.9 kB / 0.4947 GB, free: 13.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003281/0.504, allocations: 1.944 MB / 0.4966 GB, free: 11.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001975/0.5042, allocations: 53.7 kB / 0.4967 GB, free: 11.64 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001665/0.5059, allocations: 1.522 MB / 0.4982 GB, free: 10.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006233/0.5066, allocations: 0.4997 MB / 0.4986 GB, free: 9.605 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005266/0.5071, allocations: 315.5 kB / 0.4989 GB, free: 9.293 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5072, allocations: 301.1 kB / 0.4992 GB, free: 8.996 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.5085, allocations: 0.6754 MB / 0.4999 GB, free: 8.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.5101, allocations: 1.229 MB / 0.5011 GB, free: 6.871 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002973/0.5131, allocations: 1.966 MB / 0.503 GB, free: 4.699 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/0.5131, allocations: 7.938 kB / 0.503 GB, free: 4.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004894/0.518, allocations: 2.523 MB / 0.5055 GB, free: 2.129 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.5181, allocations: 12.28 kB / 0.5055 GB, free: 2.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.5181, allocations: 16 kB / 0.5055 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009355/0.5191, allocations: 343.1 kB / 0.5058 GB, free: 1.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.5205, allocations: 371.4 kB / 0.5062 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007595/0.5281, allocations: 6.799 MB / 0.5128 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.5298, allocations: 91.84 kB / 0.5129 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/0.53, allocations: 72.06 kB / 0.513 GB, free: 10.01 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.00209/0.5321, allocations: 1.04 MB / 0.514 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005216/0.5326, allocations: 218.6 kB / 0.5142 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004601/0.5372, allocations: 2.344 MB / 0.5165 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5373, allocations: 12 kB / 0.5165 GB, free: 6.324 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.5373, allocations: 8 kB / 0.5165 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.5373, allocations: 7.969 kB / 0.5165 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009512/0.5468, allocations: 5.229 MB / 0.5216 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.5469, allocations: 0 / 0.5216 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008369/0.5477, allocations: 180 kB / 0.5218 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.5492, allocations: 0.5 MB / 0.5223 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/0.5494, allocations: 43.97 kB / 0.5223 GB, free: 212 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01337/0.5628, allocations: 11.6 MB / 0.5337 GB, free: 3.906 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5628, allocations: 0 / 0.5337 GB, free: 3.906 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006036/0.5689, allocations: 3.253 MB / 0.5368 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.57, allocations: 447.6 kB / 0.5373 GB, free: 112 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002826/0.5703, allocations: 31.98 kB / 0.5373 GB, free: 80 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/0.5711, allocations: 67.95 kB / 0.5374 GB, free: 12 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2585/0.8297, allocations: 96.66 kB / 0.5375 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.8299, allocations: 40.72 kB / 0.5375 GB, free: 122.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002914/0.8328, allocations: 1.331 MB / 0.5388 GB, free: 122.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8328, allocations: 0.5 kB / 0.5388 GB, free: 122.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002762/0.8356, allocations: 0.5916 MB / 0.5394 GB, free: 122.4 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.006694/0.8423, allocations: 4.189 MB / 0.5435 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003556/0.8459, allocations: 2.23 MB / 0.5456 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/0.8459, allocations: 0 / 0.5456 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.8482, allocations: 1.618 MB / 0.5472 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.8508, allocations: 0.5436 MB / 0.5478 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02666/0.8775, allocations: 20.36 MB / 0.5676 GB, free: 103.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001779/0.8793, allocations: 2.356 MB / 0.5699 GB, free: 101.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.8807, allocations: 409.1 kB / 0.5703 GB, free: 100.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.882, allocations: 1.198 MB / 0.5715 GB, free: 99.48 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.882, allocations: 0 / 0.5715 GB, free: 99.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/0.9833, allocations: 55.06 MB / 0.6253 GB, free: 44.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.61, allocations: 8.188 kB / 0.6253 GB, free: 44.95 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)