Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001511/0.001511, allocations: 207.8 kB / 18.74 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.546/1.546, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.002062/0.002062, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3465, allocations: 50.55 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004805/0.3514, allocations: 2.854 MB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.353, allocations: 0.7787 MB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.3532, allocations: 4 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002487/0.3535, allocations: 71.36 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002782/0.3537, allocations: 103.1 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.354, allocations: 111.8 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.3545, allocations: 394.5 kB / 413.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002899/0.3548, allocations: 134.9 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.3551, allocations: 167.3 kB / 413.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.3554, allocations: 175.2 kB / 413.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.376e-05/0.3555, allocations: 36 kB / 413.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.321e-05/0.3556, allocations: 32 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.003e-05/0.3556, allocations: 75.7 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.3558, allocations: 179.1 kB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.3563, allocations: 405.2 kB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3563, allocations: 0 / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3563, allocations: 3.938 kB / 414.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.3564, allocations: 4 kB / 414.6 MB, free: 11.87 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001272/0.3576, allocations: 0.6583 MB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.598e-05/0.3577, allocations: 12.03 kB / 415.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.3579, allocations: 70.72 kB / 415.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.825e-05/0.3579, allocations: 44.64 kB / 415.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.3584, allocations: 283.5 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.3584, allocations: 21.03 kB / 415.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-05/0.3585, allocations: 32.38 kB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000611/0.3591, allocations: 286.2 kB / 415.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3591, allocations: 0 / 415.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.318e-05/0.3591, allocations: 16 kB / 416 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.3592, allocations: 12 kB / 416 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006422/0.3598, allocations: 250.5 kB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.3618, allocations: 1.12 MB / 417.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.3622, allocations: 158.4 kB / 417.5 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.3624, allocations: 64.83 kB / 417.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.3624, allocations: 4 kB / 417.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.904e-05/0.3625, allocations: 34.56 kB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 3.326e-06/0.3625, allocations: 4 kB / 417.6 MB, free: 8.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002195/0.3647, allocations: 0.5942 MB / 418.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3648, allocations: 55.41 kB / 418.2 MB, free: 7.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004226/0.3652, allocations: 286.9 kB / 418.5 MB, free: 7.641 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.3653, allocations: 29.7 kB / 418.6 MB, free: 7.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.3654, allocations: 236.1 kB / 418.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.981e-05/0.3655, allocations: 75.34 kB / 418.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.3656, allocations: 61.69 kB / 418.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.3658, allocations: 342.8 kB / 419.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.3661, allocations: 99.88 kB / 419.4 MB, free: 6.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003754/0.3665, allocations: 199.9 kB / 419.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000671/0.3672, allocations: 301.1 kB / 419.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3672, allocations: 4 kB / 419.8 MB, free: 6.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009325/0.3681, allocations: 397 kB / 420.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3682, allocations: 4 kB / 420.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3682, allocations: 7.984 kB / 420.2 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.3684, allocations: 62.03 kB / 420.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000337/0.3688, allocations: 75.89 kB / 420.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.3713, allocations: 2.838 MB / 423.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.3715, allocations: 19.98 kB / 423.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.3716, allocations: 16.06 kB / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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 {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.3718, allocations: 158.8 kB / 423.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.281e-05/0.3718, allocations: 27.81 kB / 423.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.76e-05/0.3719, allocations: 30.2 kB / 423.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.3719, allocations: 4 kB / 423.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.372, allocations: 0 / 423.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.372, allocations: 3.984 kB / 423.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005304/0.3725, allocations: 341.4 kB / 423.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3725, allocations: 7.938 kB / 423.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.3727, allocations: 43.91 kB / 423.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.3729, allocations: 53.81 kB / 423.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.373, allocations: 12 kB / 423.9 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/0.3755, allocations: 2.825 MB / 426.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3755, allocations: 8.125 kB / 426.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007909/0.3763, allocations: 380.1 kB / 427.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.318e-05/0.3764, allocations: 101 kB / 427.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.3765, allocations: 4 kB / 427.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.3767, allocations: 19.97 kB / 427.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.3768, allocations: 19.97 kB / 427.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.3768, allocations: 4 kB / 427.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.377, allocations: 198 kB / 427.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.377, allocations: 0 / 427.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004338/0.3775, allocations: 80 kB / 427.5 MB, free: 13.83 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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 {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.3787, allocations: 0.9129 MB / 428.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.3798, allocations: 485.7 kB / 428.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3798, allocations: 3.938 kB / 428.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006259/0.3804, allocations: 349.2 kB / 429.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.3808, allocations: 26.75 kB / 429.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00516/0.3859, allocations: 3.026 MB / 432.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005684/0.3865, allocations: 0.7831 MB / 433.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.3867, allocations: 26.28 kB / 433.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.3869, allocations: 103.4 kB / 433.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of SimCode: time 2.154e-06/0.3869, allocations: 4 kB / 433.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03877/0.4257, allocations: 5.78 MB / 439 MB, free: 2.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11, allocations: 12.02 kB / 439 MB, free: 2.297 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1)