Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_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.001307/0.001307, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 200.7 kB / 18.74 MB, free: 4.184 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.496/1.496, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001907/0.001907, allocations: 63.91 kB / 358.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3007, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.04092/0.3417, allocations: 34.63 MB / 443.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02312/0.3648, allocations: 9.998 MB / 453.7 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008345/0.3732, allocations: 251.1 kB / 454 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02046/0.3938, allocations: 8.162 MB / 462.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01462/0.4084, allocations: 3.799 MB / 465.9 MB, free: 8.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008432/0.4169, allocations: 2.297 MB / 468.2 MB, free: 6.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02146/0.4384, allocations: 13.32 MB / 481.5 MB, free: 8.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03614/0.4746, allocations: 22.64 MB / 0.4924 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0135/0.4881, allocations: 6.635 MB / 0.4988 GB, free: 11.19 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01354/0.5017, allocations: 7.502 MB / 0.5062 GB, free: 3.664 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005521/0.5072, allocations: 1.895 MB / 0.508 GB, free: 1.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007569/0.5148, allocations: 2.32 MB / 0.5103 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006478/0.5214, allocations: 3.788 MB / 0.514 GB, free: 11.65 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01922/0.5406, allocations: 7.21 MB / 0.521 GB, free: 4.414 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5333/1.074, allocations: 25.36 MB / 0.5458 GB, free: 53.54 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/1.074, allocations: 0 / 0.5458 GB, free: 53.54 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.004e-06/1.074, allocations: 0 / 0.5458 GB, free: 53.54 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000737/1.075, allocations: 3.516 kB / 0.5458 GB, free: 53.54 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.05501/1.13, allocations: 15.14 MB / 0.5606 GB, free: 49.28 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.551e-05/1.13, allocations: 7.031 kB / 0.5606 GB, free: 49.28 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008867/1.139, allocations: 1.548 MB / 0.5621 GB, free: 49.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04092/1.18, allocations: 6.841 MB / 0.5688 GB, free: 48.07 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02206/1.202, allocations: 8.202 MB / 0.5768 GB, free: 45.66 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001021/1.203, allocations: 0.809 MB / 0.5776 GB, free: 45.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006517/1.209, allocations: 1.072 MB / 0.5786 GB, free: 44.94 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05362/1.263, allocations: 17.42 MB / 0.5956 GB, free: 30.12 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007052/1.264, allocations: 19.89 kB / 0.5957 GB, free: 30.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005942/1.27, allocations: 457.8 kB / 0.5961 GB, free: 29.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006871/1.27, allocations: 0.6404 MB / 0.5967 GB, free: 29.03 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.039/1.309, allocations: 16.37 MB / 0.6127 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1233/1.433, allocations: 55.42 MB / 0.6668 GB, free: 5.023 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04032/1.473, allocations: 33.7 MB / 0.6997 GB, free: 16 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009903/1.483, allocations: 4.432 MB / 0.7041 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02722/1.51, allocations: 12.43 MB / 0.7162 GB, free: 15.21 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005313/1.516, allocations: 3.107 MB / 0.7192 GB, free: 12.05 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=434): time 7.093e-06/1.516, allocations: 0 / 0.7192 GB, free: 12.05 MB / 0.5607 GB Notification: Performance of matching and sorting (n=452): time 0.0584/1.574, allocations: 23.62 MB / 0.7423 GB, free: 4.367 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002638/1.575, allocations: 415.1 kB / 0.7427 GB, free: 3.879 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008245/1.583, allocations: 4.612 MB / 0.7472 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001064/1.584, allocations: 97.7 kB / 0.7473 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005583/1.59, allocations: 4.925 MB / 0.7521 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002652/1.592, allocations: 1.619 MB / 0.7537 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00239/1.595, allocations: 1.137 MB / 0.7548 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001575/1.595, allocations: 301.1 kB / 0.7551 GB, free: 7.172 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005193/1.6, allocations: 2.827 MB / 0.7578 GB, free: 4.34 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3076/1.908, allocations: 5.015 MB / 0.7627 GB, free: 230.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/1.919, allocations: 8.307 MB / 0.7709 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001065/1.919, allocations: 19.31 kB / 0.7709 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01748/1.937, allocations: 9.609 MB / 0.7803 GB, free: 223.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/1.937, allocations: 38.88 kB / 0.7803 GB, free: 223.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/1.937, allocations: 66.88 kB / 0.7804 GB, free: 223.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003866/1.941, allocations: 1.472 MB / 0.7818 GB, free: 223.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005583/1.946, allocations: 1.324 MB / 0.7831 GB, free: 223.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01957/1.966, allocations: 17.62 MB / 0.8003 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006219/1.972, allocations: 360.9 kB / 0.8006 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001359/1.974, allocations: 285.2 kB / 0.8009 GB, free: 211 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (688): * Single equations (assignments): 682 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 5 systems {(1,4,100.0%), (1,5,100.0%), (1,13,100.0%), (1,4,100.0%), (14,44,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0079/1.982, allocations: 3.907 MB / 0.8047 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001492/1.983, allocations: 0.5244 MB / 0.8052 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.996, allocations: 7.956 MB / 0.813 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.86e-05/1.997, allocations: 51.94 kB / 0.8131 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.042e-05/1.997, allocations: 16 kB / 0.8131 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-05/1.997, allocations: 23.06 kB / 0.8131 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02956/2.026, allocations: 17.4 MB / 0.8301 GB, free: 188.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/2.026, allocations: 4 kB / 0.8301 GB, free: 188.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00324/2.03, allocations: 0.7495 MB / 0.8308 GB, free: 187.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003985/2.034, allocations: 1.578 MB / 0.8324 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008817/2.034, allocations: 108 kB / 0.8325 GB, free: 185.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01953/2.054, allocations: 21.29 MB / 0.8533 GB, free: 163.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/2.054, allocations: 9.812 kB / 0.8533 GB, free: 163.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/2.071, allocations: 11.51 MB / 0.8645 GB, free: 152.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003652/2.075, allocations: 1.17 MB / 0.8656 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/2.076, allocations: 96.55 kB / 0.8657 GB, free: 151 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00304/2.079, allocations: 239.8 kB / 0.866 GB, free: 150.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008671/2.08, allocations: 332.4 kB / 0.8663 GB, free: 150.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002845/2.081, allocations: 136 kB / 0.8664 GB, free: 150.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004866/2.086, allocations: 3.14 MB / 0.8695 GB, free: 147.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.91e-07/2.086, allocations: 0 / 0.8695 GB, free: 147.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01077/2.096, allocations: 1.889 MB / 0.8713 GB, free: 145.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.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 (396): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (14,44,41.8%), (1,5,100.0%), (1,13,100.0%), (1,3,100.0%), (1,8,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.01976/2.116, allocations: 12.54 MB / 0.8836 GB, free: 132.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01372/2.13, allocations: 8.103 MB / 0.8915 GB, free: 124.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/2.13, allocations: 0 / 0.8915 GB, free: 124.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007994/2.138, allocations: 4.671 MB / 0.896 GB, free: 119.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008074/2.146, allocations: 1.349 MB / 0.8974 GB, free: 118.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09756/2.244, allocations: 63.63 MB / 0.9595 GB, free: 52.49 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01011/2.254, allocations: 6.839 MB / 0.9662 GB, free: 45.62 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006932/2.261, allocations: 1.85 MB / 0.968 GB, free: 43.76 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007951/2.269, allocations: 4.069 MB / 0.972 GB, free: 39.69 MB / 0.5919 GB Notification: Performance of SimCode: time 1.773e-06/2.269, allocations: 4 kB / 0.972 GB, free: 39.69 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4933/2.762, allocations: 153.8 MB / 1.122 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.06/24.82, allocations: 21.28 kB / 1.122 GB, free: 134.2 MB / 0.5919 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1)