Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 118.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.001596/0.001596, 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.574/1.574, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.002072/0.002072, allocations: 59.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3021, allocations: 50.56 MB / 409.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.01081/0.313, allocations: 7.846 MB / 416.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007181/0.3202, allocations: 2.499 MB / 419.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001825/0.3221, allocations: 59.75 kB / 419.5 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.3241, allocations: 440.9 kB / 419.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004392/0.3285, allocations: 0.8577 MB / 420.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.3304, allocations: 395.2 kB / 421.2 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005914/0.3364, allocations: 3.25 MB / 424.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003715/0.3401, allocations: 2.899 MB / 427.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.3426, allocations: 1.414 MB / 428.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002935/0.3456, allocations: 1.693 MB / 430.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.3468, allocations: 360 kB / 430.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001889/0.3487, allocations: 499.9 kB / 431.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001426/0.3502, allocations: 0.9037 MB / 432.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002861/0.353, allocations: 1.61 MB / 433.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007191/0.3603, allocations: 4.714 MB / 438.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3603, allocations: 0 / 438.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3603, allocations: 0 / 438.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001096/0.3604, allocations: 0 / 438.5 MB, free: 3.934 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.009879/0.3703, allocations: 3.723 MB / 442.2 MB, free: 148 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3704, allocations: 12.03 kB / 442.2 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007708/0.3712, allocations: 441 kB / 442.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004252/0.3754, allocations: 0.7406 MB / 443.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003873/0.3793, allocations: 1.855 MB / 445.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002079/0.3796, allocations: 205.7 kB / 445.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008479/0.3804, allocations: 267.9 kB / 445.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008745/0.3892, allocations: 3.623 MB / 449.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.74e-05/0.3893, allocations: 0 / 449.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003364/0.3896, allocations: 112 kB / 449.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.3898, allocations: 109.4 kB / 449.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006479/0.3963, allocations: 3.105 MB / 452.6 MB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02047/0.4168, allocations: 10.28 MB / 462.9 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005979/0.4229, allocations: 4.57 MB / 467.5 MB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.4246, allocations: 0.9541 MB / 468.4 MB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004745/0.4294, allocations: 2.639 MB / 471.1 MB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/0.4295, allocations: 59.3 kB / 471.1 MB, free: 1.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.326e-06/0.4295, allocations: 0 / 471.1 MB, free: 1.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.006967/0.4365, allocations: 2.661 MB / 473.8 MB, free: 15.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.4366, allocations: 93.86 kB / 473.9 MB, free: 15.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002359/0.4389, allocations: 1.407 MB / 475.3 MB, free: 13.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/0.4391, allocations: 45.7 kB / 475.4 MB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.4401, allocations: 1.21 MB / 476.6 MB, free: 12.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/0.4405, allocations: 376.8 kB / 476.9 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003668/0.4409, allocations: 222.9 kB / 477.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.4411, allocations: 353.9 kB / 477.5 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001075/0.4422, allocations: 0.5647 MB / 478.1 MB, free: 10.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.4434, allocations: 0.8491 MB / 478.9 MB, free: 9.926 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.4458, allocations: 1.453 MB / 480.4 MB, free: 8.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.4458, allocations: 8 kB / 480.4 MB, free: 8.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.004142/0.45, allocations: 1.973 MB / 482.3 MB, free: 6.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.45, allocations: 8 kB / 482.3 MB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.4501, allocations: 8 kB / 482.4 MB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001106/0.4512, allocations: 400.2 kB / 482.7 MB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008448/0.452, allocations: 219.6 kB / 483 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008711/0.4608, allocations: 6.536 MB / 489.5 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.462, allocations: 143.1 kB / 489.6 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.4621, allocations: 44 kB / 489.7 MB, free: 14.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (110): * Single equations (assignments): 108 * Array equations: 0 * 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 {(2,19,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001689/0.4638, allocations: 0.8721 MB / 490.6 MB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.4642, allocations: 143.1 kB / 490.7 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00331/0.4675, allocations: 1.656 MB / 492.3 MB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.4675, allocations: 12 kB / 492.4 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/0.4676, allocations: 8 kB / 492.4 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.4676, allocations: 11.91 kB / 492.4 MB, free: 12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007336/0.4749, allocations: 3.926 MB / 496.3 MB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.475, allocations: 0 / 496.3 MB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005871/0.4756, allocations: 132 kB / 496.4 MB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.4767, allocations: 401.3 kB / 496.8 MB, free: 7.465 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.875e-05/0.4768, allocations: 31.98 kB / 496.9 MB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008943/0.4858, allocations: 6.524 MB / 0.4916 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/0.4858, allocations: 3.938 kB / 0.4916 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/0.4906, allocations: 2.49 MB / 0.494 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007951/0.4915, allocations: 255.9 kB / 0.4943 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003559/0.4918, allocations: 24 kB / 0.4943 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009234/0.4928, allocations: 87.84 kB / 0.4944 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.4932, allocations: 100.7 kB / 0.4945 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.721e-05/0.4933, allocations: 31.98 kB / 0.4945 GB, free: 13.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001792/0.4951, allocations: 0.9873 MB / 0.4955 GB, free: 12.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4951, allocations: 3.938 kB / 0.4955 GB, free: 12.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00263/0.4977, allocations: 0.6852 MB / 0.4961 GB, free: 11.91 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,loss_m.Phi.re,loss_m.Phi.im) * 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 (64): * Single equations (assignments): 62 * Array equations: 0 * 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 {(2,21,100.0%), (2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005306/0.503, allocations: 3.095 MB / 0.4992 GB, free: 8.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003688/0.5068, allocations: 1.788 MB / 0.5009 GB, free: 6.953 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.5068, allocations: 4 kB / 0.5009 GB, free: 6.949 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002217/0.509, allocations: 1.134 MB / 0.502 GB, free: 5.793 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001962/0.511, allocations: 312.5 kB / 0.5023 GB, free: 5.488 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0351/0.5462, allocations: 16.06 MB / 0.518 GB, free: 4.945 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002746/0.5489, allocations: 2.192 MB / 0.5201 GB, free: 2.715 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001161/0.5501, allocations: 343 kB / 0.5205 GB, free: 2.375 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/0.5516, allocations: 0.8781 MB / 0.5213 GB, free: 1.496 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5516, allocations: 3.938 kB / 0.5213 GB, free: 1.492 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.352/0.9036, allocations: 38.81 MB / 0.5592 GB, free: 115.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/14.03, allocations: 10.52 kB / 0.5592 GB, free: 115.9 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1)