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_withLosses.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_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001826/0.001826, allocations: 117.6 kB / 17.78 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.002043/0.002043, allocations: 200.7 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.51/1.51, 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.002143/0.002143, allocations: 67.89 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2918, allocations: 50.54 MB / 409.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01775/0.3096, allocations: 14.27 MB / 423.4 MB, free: 3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.3211, allocations: 5.347 MB / 428.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003001/0.3242, allocations: 83.69 kB / 428.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004007/0.3282, allocations: 1.063 MB / 429.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005739/0.334, allocations: 1.425 MB / 431.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003149/0.3372, allocations: 1.013 MB / 432.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00598/0.3432, allocations: 4.364 MB / 436.7 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004251/0.3474, allocations: 3.356 MB / 440 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003118/0.3506, allocations: 2.013 MB / 442 MB, free: 224 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003931/0.3545, allocations: 2.409 MB / 444.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009388/0.3555, allocations: 0.5352 MB / 445 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.3575, allocations: 0.9135 MB / 445.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.3589, allocations: 1.363 MB / 447.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003158/0.3621, allocations: 2.364 MB / 449.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00968/0.3718, allocations: 7.42 MB / 457.1 MB, free: 1.156 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3718, allocations: 0 / 457.1 MB, free: 1.156 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3718, allocations: 0 / 457.1 MB, free: 1.156 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002035/0.372, allocations: 0 / 457.1 MB, free: 1.156 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01387/0.3859, allocations: 5.14 MB / 462.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.386, allocations: 8.031 kB / 462.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009655/0.3869, allocations: 0.5461 MB / 462.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00466/0.3916, allocations: 0.9077 MB / 463.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005794/0.3974, allocations: 2.844 MB / 466.5 MB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002447/0.3977, allocations: 258.8 kB / 466.7 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007625/0.3985, allocations: 339.9 kB / 467.1 MB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/0.409, allocations: 4.588 MB / 471.7 MB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.678e-05/0.4092, allocations: 12 kB / 471.7 MB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003569/0.4095, allocations: 132 kB / 471.8 MB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002048/0.4098, allocations: 154.8 kB / 472 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008142/0.4179, allocations: 3.942 MB / 475.9 MB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02609/0.444, allocations: 14.11 MB / 490 MB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008336/0.4524, allocations: 7.006 MB / 497 MB, free: 7.855 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003111/0.4556, allocations: 1.72 MB / 498.7 MB, free: 6.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00795/0.4635, allocations: 4.495 MB / 0.4914 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/0.4636, allocations: 55.88 kB / 0.4915 GB, free: 1.438 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.636e-06/0.4636, allocations: 0 / 0.4915 GB, free: 1.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01759/0.4812, allocations: 7.849 MB / 0.4992 GB, free: 9.457 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.4813, allocations: 73.41 kB / 0.4992 GB, free: 9.371 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00417/0.4855, allocations: 2.661 MB / 0.5018 GB, free: 6.688 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001672/0.4857, allocations: 57.7 kB / 0.5019 GB, free: 6.625 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/0.4871, allocations: 1.686 MB / 0.5035 GB, free: 4.922 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006642/0.4878, allocations: 0.6545 MB / 0.5042 GB, free: 4.262 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006093/0.4884, allocations: 339.4 kB / 0.5045 GB, free: 3.926 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4886, allocations: 301.1 kB / 0.5048 GB, free: 3.629 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/0.4903, allocations: 0.9058 MB / 0.5057 GB, free: 2.723 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001981/0.4923, allocations: 1.314 MB / 0.5069 GB, free: 1.258 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003743/0.496, allocations: 2.348 MB / 0.5092 GB, free: 14.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.998e-06/0.496, allocations: 11.94 kB / 0.5092 GB, free: 14.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006155/0.5022, allocations: 3.09 MB / 0.5123 GB, free: 11.65 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.5022, allocations: 12 kB / 0.5123 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/0.5023, allocations: 12 kB / 0.5123 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/0.5038, allocations: 0.5477 MB / 0.5128 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.5056, allocations: 431.3 kB / 0.5132 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.5157, allocations: 7.617 MB / 0.5207 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/0.5177, allocations: 87.88 kB / 0.5208 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002061/0.5179, allocations: 75.98 kB / 0.5208 GB, free: 2.598 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002277/0.5202, allocations: 1.173 MB / 0.522 GB, free: 1.414 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000657/0.5209, allocations: 270.3 kB / 0.5222 GB, free: 1.148 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00575/0.5266, allocations: 2.89 MB / 0.5251 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.553e-05/0.5267, allocations: 23.94 kB / 0.5251 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.5267, allocations: 8 kB / 0.5251 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.5268, allocations: 15.91 kB / 0.5251 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/0.5381, allocations: 6.37 MB / 0.5313 GB, free: 7.723 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5382, allocations: 0 / 0.5313 GB, free: 7.723 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.5395, allocations: 275.6 kB / 0.5316 GB, free: 7.453 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/0.5412, allocations: 0.6193 MB / 0.5322 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.5413, allocations: 43.98 kB / 0.5322 GB, free: 6.781 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2353/0.7766, allocations: 11.44 MB / 0.5434 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.7767, allocations: 1.25 kB / 0.5434 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00667/0.7834, allocations: 4.18 MB / 0.5475 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/0.7844, allocations: 0.5573 MB / 0.548 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003247/0.7848, allocations: 39.88 kB / 0.5481 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.7858, allocations: 88.22 kB / 0.5482 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/0.7861, allocations: 136.8 kB / 0.5483 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.7863, allocations: 53.66 kB / 0.5483 GB, free: 117.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002139/0.7884, allocations: 1.869 MB / 0.5502 GB, free: 116.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7884, allocations: 3.938 kB / 0.5502 GB, free: 116.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002158/0.7906, allocations: 0.6925 MB / 0.5508 GB, free: 116.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007011/0.7976, allocations: 5.107 MB / 0.5558 GB, free: 114.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004258/0.8019, allocations: 2.832 MB / 0.5586 GB, free: 112.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.8019, allocations: 5.938 kB / 0.5586 GB, free: 112.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002423/0.8043, allocations: 1.937 MB / 0.5605 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.807, allocations: 0.6009 MB / 0.5611 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03281/0.8398, allocations: 26.22 MB / 0.5867 GB, free: 85.16 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.8416, allocations: 2.66 MB / 0.5893 GB, free: 82.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001455/0.8431, allocations: 0.5085 MB / 0.5898 GB, free: 81.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/0.8445, allocations: 1.447 MB / 0.5912 GB, free: 80.51 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/0.8446, allocations: 4 kB / 0.5912 GB, free: 80.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/0.9477, allocations: 64.9 MB / 0.6546 GB, free: 16.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.53, allocations: 15.05 kB / 0.6546 GB, free: 16.2 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 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_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)