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_YD.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_YD,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001398/0.001398, allocations: 118.3 kB / 17.78 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.001455/0.001455, allocations: 201.2 kB / 18.74 MB, free: 4.18 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.521/1.521, allocations: 227.7 MB / 247.2 MB, free: 10.22 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.001865/0.001865, allocations: 67.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2764, allocations: 50.55 MB / 409.1 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01877/0.2952, allocations: 14.85 MB / 423.9 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01069/0.306, allocations: 4.87 MB / 428.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003516/0.3095, allocations: 91.62 kB / 428.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004041/0.3137, allocations: 1.083 MB / 430 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006209/0.3199, allocations: 1.425 MB / 431.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003531/0.3235, allocations: 0.9666 MB / 432.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008887/0.3324, allocations: 5.121 MB / 437.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007749/0.3402, allocations: 3.855 MB / 441.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00499/0.3452, allocations: 2.348 MB / 443.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005856/0.3511, allocations: 2.756 MB / 446.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.3531, allocations: 0.6211 MB / 447.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003497/0.3567, allocations: 0.8512 MB / 447.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002796/0.3595, allocations: 1.453 MB / 449.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007092/0.3666, allocations: 2.649 MB / 452 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.3803, allocations: 8.351 MB / 460.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3804, allocations: 0 / 460.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3804, allocations: 0 / 460.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003024/0.3807, allocations: 0 / 460.4 MB, free: 13.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: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01873/0.3995, allocations: 5.494 MB / 465.9 MB, free: 8.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.3995, allocations: 12.03 kB / 465.9 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002024/0.4016, allocations: 0.5391 MB / 466.4 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006106/0.4077, allocations: 0.9349 MB / 467.4 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008301/0.416, allocations: 3.06 MB / 470.4 MB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004795/0.4166, allocations: 295.7 kB / 470.7 MB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001699/0.4183, allocations: 384 kB / 471.1 MB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01619/0.4345, allocations: 5.399 MB / 476.5 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001945/0.4347, allocations: 3.953 kB / 476.5 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001233/0.436, allocations: 164 kB / 476.6 MB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002336/0.4362, allocations: 167.7 kB / 476.8 MB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01164/0.4479, allocations: 4.75 MB / 481.6 MB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04038/0.4883, allocations: 16.81 MB / 498.4 MB, free: 7.316 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01172/0.5001, allocations: 8.792 MB / 0.4953 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004165/0.5043, allocations: 1.87 MB / 0.4971 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.5158, allocations: 5.109 MB / 0.5021 GB, free: 6.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002525/0.5184, allocations: 1.321 MB / 0.5034 GB, free: 5.059 MB / 430.1 MB Notification: Performance of pre-optimization done (n=185): time 4.668e-06/0.5184, allocations: 0 / 0.5034 GB, free: 5.059 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.02317/0.5416, allocations: 8.719 MB / 0.5119 GB, free: 12.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/0.5418, allocations: 235.6 kB / 0.5121 GB, free: 11.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005262/0.5471, allocations: 2.347 MB / 0.5144 GB, free: 9.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003416/0.5475, allocations: 61.7 kB / 0.5145 GB, free: 9.414 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00235/0.5499, allocations: 1.793 MB / 0.5162 GB, free: 7.602 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009882/0.5509, allocations: 0.643 MB / 0.5168 GB, free: 6.953 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001028/0.5519, allocations: 411.9 kB / 0.5172 GB, free: 6.543 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.552, allocations: 309 kB / 0.5175 GB, free: 6.238 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/0.554, allocations: 1.023 MB / 0.5185 GB, free: 5.211 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00266/0.5567, allocations: 1.63 MB / 0.5201 GB, free: 3.324 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004574/0.5613, allocations: 2.652 MB / 0.5227 GB, free: 464 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/0.5613, allocations: 4 kB / 0.5227 GB, free: 460 kB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.007516/0.5689, allocations: 3.591 MB / 0.5262 GB, free: 12.81 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/0.5689, allocations: 8 kB / 0.5262 GB, free: 12.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.666e-05/0.569, allocations: 23.97 kB / 0.5263 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/0.5711, allocations: 0.7667 MB / 0.527 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.5729, allocations: 391.3 kB / 0.5274 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2663/0.8393, allocations: 11.83 MB / 0.5389 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002513/0.8418, allocations: 131.8 kB / 0.5391 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006054/0.8425, allocations: 92.48 kB / 0.5391 GB, free: 120.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(1,8,100.0%), (9,25,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003449/0.8459, allocations: 1.332 MB / 0.5404 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008456/0.8468, allocations: 261.4 kB / 0.5407 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00685/0.8536, allocations: 3.369 MB / 0.544 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.8537, allocations: 15.84 kB / 0.544 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.962e-05/0.8538, allocations: 14.62 kB / 0.544 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.981e-05/0.8538, allocations: 13.69 kB / 0.544 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.8667, allocations: 7.021 MB / 0.5509 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.8668, allocations: 0 / 0.5509 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008593/0.8677, allocations: 185.9 kB / 0.5511 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/0.8699, allocations: 0.9402 MB / 0.552 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002112/0.8701, allocations: 47.12 kB / 0.552 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/0.8843, allocations: 16.67 MB / 0.5683 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.8844, allocations: 4.031 kB / 0.5683 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007247/0.8916, allocations: 4.809 MB / 0.573 GB, free: 97.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/0.8931, allocations: 0.5695 MB / 0.5736 GB, free: 96.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/0.8938, allocations: 43.94 kB / 0.5736 GB, free: 96.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/0.8954, allocations: 99.91 kB / 0.5737 GB, free: 96.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006379/0.896, allocations: 201.7 kB / 0.5739 GB, free: 96.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.8962, allocations: 55.05 kB / 0.5739 GB, free: 96.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002792/0.899, allocations: 1.61 MB / 0.5755 GB, free: 94.78 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.899, allocations: 0 / 0.5755 GB, free: 94.78 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003655/0.9027, allocations: 0.7804 MB / 0.5763 GB, free: 94 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,25,33.3%), (1,13,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.007678/0.9104, allocations: 5.453 MB / 0.5816 GB, free: 88.49 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004869/0.9153, allocations: 3.327 MB / 0.5849 GB, free: 85.09 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/0.9153, allocations: 0 / 0.5849 GB, free: 85.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003301/0.9186, allocations: 2.442 MB / 0.5872 GB, free: 82.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003845/0.9225, allocations: 0.713 MB / 0.5879 GB, free: 81.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04542/0.968, allocations: 26.81 MB / 0.6141 GB, free: 54.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003557/0.9716, allocations: 2.853 MB / 0.6169 GB, free: 51.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001892/0.9735, allocations: 0.5172 MB / 0.6174 GB, free: 50.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002213/0.9757, allocations: 1.463 MB / 0.6188 GB, free: 49.39 MB / 462.1 MB Notification: Performance of SimCode: time 1.403e-06/0.9757, allocations: 0 / 0.6188 GB, free: 49.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1406/1.116, allocations: 70.83 MB / 0.688 GB, free: 11.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.95/16.06, allocations: 4.438 kB / 0.688 GB, free: 11.29 MB / 494.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.csv --start-time 0 --stop-time 2.5 --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_YD.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1)