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.001432/0.001432, 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.00131/0.00131, allocations: 199.9 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.461/1.461, allocations: 227.7 MB / 247.2 MB, free: 10.13 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.001973/0.001973, allocations: 71.88 kB / 358.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2725, allocations: 50.54 MB / 409.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.04006/0.3126, allocations: 34.63 MB / 443.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0216/0.3342, allocations: 9.99 MB / 453.7 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006502/0.3407, allocations: 255.1 kB / 454 MB, free: 4.266 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0203/0.3611, allocations: 8.175 MB / 462.2 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01373/0.3749, allocations: 3.794 MB / 466 MB, free: 8.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007925/0.3828, allocations: 2.286 MB / 468.2 MB, free: 5.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02/0.4028, allocations: 13.34 MB / 481.6 MB, free: 8.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04072/0.4436, allocations: 22.62 MB / 0.4924 GB, free: 1.805 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0124/0.456, allocations: 6.635 MB / 0.4989 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01343/0.4695, allocations: 7.506 MB / 0.5062 GB, free: 3.621 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005641/0.4752, allocations: 1.898 MB / 0.5081 GB, free: 1.723 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009006/0.4842, allocations: 2.324 MB / 0.5103 GB, free: 15.4 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007512/0.4918, allocations: 3.78 MB / 0.514 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01472/0.5065, allocations: 7.218 MB / 0.5211 GB, free: 4.363 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.513/1.02, allocations: 25.36 MB / 0.5458 GB, free: 53.7 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/1.02, allocations: 0 / 0.5458 GB, free: 53.7 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.204e-06/1.02, allocations: 0 / 0.5458 GB, free: 53.7 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007801/1.02, allocations: 2.156 kB / 0.5458 GB, free: 53.7 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.05341/1.074, allocations: 15.13 MB / 0.5606 GB, free: 49.44 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/1.074, allocations: 10.22 kB / 0.5606 GB, free: 49.44 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007622/1.081, allocations: 1.544 MB / 0.5621 GB, free: 49.33 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03911/1.121, allocations: 6.751 MB / 0.5687 GB, free: 48.19 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01952/1.14, allocations: 8.214 MB / 0.5767 GB, free: 45.74 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009553/1.141, allocations: 0.8131 MB / 0.5775 GB, free: 45.38 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005652/1.147, allocations: 1.071 MB / 0.5786 GB, free: 45.02 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04818/1.195, allocations: 17.45 MB / 0.5956 GB, free: 30.08 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006338/1.196, allocations: 19.89 kB / 0.5956 GB, free: 30.06 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004942/1.201, allocations: 452.7 kB / 0.5961 GB, free: 29.63 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005715/1.201, allocations: 0.6397 MB / 0.5967 GB, free: 28.99 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03464/1.236, allocations: 16.42 MB / 0.6127 GB, free: 12.57 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1134/1.349, allocations: 55.46 MB / 0.6669 GB, free: 4.902 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03534/1.385, allocations: 33.73 MB / 0.6998 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009195/1.394, allocations: 4.435 MB / 0.7042 GB, free: 11.41 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02781/1.422, allocations: 12.48 MB / 0.7163 GB, free: 15.02 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006576/1.429, allocations: 3.104 MB / 0.7194 GB, free: 11.86 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=434): time 1.141e-05/1.429, allocations: 0 / 0.7194 GB, free: 11.86 MB / 0.5607 GB Notification: Performance of matching and sorting (n=452): time 0.06319/1.492, allocations: 23.69 MB / 0.7425 GB, free: 4.109 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003023/1.492, allocations: 411.4 kB / 0.7429 GB, free: 3.621 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01015/1.502, allocations: 4.615 MB / 0.7474 GB, free: 15 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0009187/1.503, allocations: 103.8 kB / 0.7475 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005585/1.509, allocations: 4.912 MB / 0.7523 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002441/1.511, allocations: 1.616 MB / 0.7539 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003847/1.515, allocations: 1.149 MB / 0.755 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001313/1.515, allocations: 309.1 kB / 0.7553 GB, free: 6.902 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00542/1.521, allocations: 2.834 MB / 0.7581 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2765/1.797, allocations: 5.016 MB / 0.763 GB, free: 230.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/1.808, allocations: 8.324 MB / 0.7711 GB, free: 227.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/1.808, allocations: 19.34 kB / 0.7711 GB, free: 227.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01663/1.825, allocations: 9.636 MB / 0.7805 GB, free: 223.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/1.825, allocations: 36.66 kB / 0.7806 GB, free: 223.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/1.825, allocations: 66.84 kB / 0.7806 GB, free: 223.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003746/1.829, allocations: 1.478 MB / 0.7821 GB, free: 223.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005332/1.834, allocations: 1.34 MB / 0.7834 GB, free: 223.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/1.852, allocations: 17.61 MB / 0.8006 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005783/1.857, allocations: 354.8 kB / 0.8009 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001401/1.859, allocations: 287.9 kB / 0.8012 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.007704/1.867, allocations: 3.904 MB / 0.805 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001691/1.868, allocations: 0.5273 MB / 0.8055 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01469/1.883, allocations: 7.962 MB / 0.8133 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.511e-05/1.883, allocations: 51.94 kB / 0.8133 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.96e-05/1.883, allocations: 16 kB / 0.8134 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-05/1.883, allocations: 23.3 kB / 0.8134 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03531/1.919, allocations: 17.44 MB / 0.8304 GB, free: 188 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/1.919, allocations: 4 kB / 0.8304 GB, free: 188 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003491/1.922, allocations: 0.7611 MB / 0.8312 GB, free: 187.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004194/1.926, allocations: 1.567 MB / 0.8327 GB, free: 185.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009962/1.927, allocations: 119.9 kB / 0.8328 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02133/1.949, allocations: 21.29 MB / 0.8536 GB, free: 163.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/1.949, allocations: 7.938 kB / 0.8536 GB, free: 163.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02013/1.969, allocations: 11.54 MB / 0.8649 GB, free: 152 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003205/1.972, allocations: 1.177 MB / 0.866 GB, free: 150.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0019/1.974, allocations: 96.56 kB / 0.8661 GB, free: 150.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003895/1.978, allocations: 235.8 kB / 0.8663 GB, free: 150.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/1.979, allocations: 339.6 kB / 0.8667 GB, free: 150.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007026/1.98, allocations: 140 kB / 0.8668 GB, free: 150 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006017/1.986, allocations: 3.14 MB / 0.8699 GB, free: 146.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.4e-07/1.986, allocations: 0 / 0.8699 GB, free: 146.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01011/1.996, allocations: 1.885 MB / 0.8717 GB, free: 145 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.02169/2.018, allocations: 12.57 MB / 0.884 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01369/2.032, allocations: 8.115 MB / 0.8919 GB, free: 124.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/2.032, allocations: 0 / 0.8919 GB, free: 124.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00838/2.04, allocations: 4.678 MB / 0.8965 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009691/2.05, allocations: 1.354 MB / 0.8978 GB, free: 118.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1202/2.17, allocations: 63.57 MB / 0.9599 GB, free: 52.25 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01166/2.182, allocations: 6.846 MB / 0.9666 GB, free: 45.37 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00656/2.188, allocations: 1.858 MB / 0.9684 GB, free: 43.51 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006669/2.195, allocations: 4.084 MB / 0.9724 GB, free: 39.42 MB / 0.5919 GB Notification: Performance of SimCode: time 8.92e-07/2.195, allocations: 0 / 0.9724 GB, free: 39.42 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4921/2.687, allocations: 153.1 MB / 1.122 GB, free: 134.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.9/25.58, allocations: 16.44 kB / 1.122 GB, free: 134.5 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.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_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)