Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_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.001278/0.001278, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 200.6 kB / 18.72 MB, free: 4.438 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.46/1.46, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002017/0.002017, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3165, allocations: 50.54 MB / 409.1 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007019/0.3236, allocations: 5.094 MB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00388/0.3275, allocations: 2.156 MB / 416.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004585/0.328, allocations: 20 kB / 416.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.3313, allocations: 1.399 MB / 417.7 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.3328, allocations: 421.4 kB / 418.2 MB, free: 8.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.3352, allocations: 1.21 MB / 419.4 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.3364, allocations: 0.7472 MB / 420.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001019/0.3374, allocations: 0.6417 MB / 420.8 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004992/0.3379, allocations: 334.8 kB / 421.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005175/0.3384, allocations: 438.3 kB / 421.5 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.3386, allocations: 72 kB / 421.6 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009356/0.3395, allocations: 415.6 kB / 422 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.3397, allocations: 167.4 kB / 422.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003629/0.3401, allocations: 378.1 kB / 422.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001681/0.3417, allocations: 1.221 MB / 423.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3418, allocations: 0 / 423.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3418, allocations: 0 / 423.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.3418, allocations: 0 / 423.7 MB, free: 2.66 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004412/0.3462, allocations: 1.489 MB / 425.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3463, allocations: 8.031 kB / 425.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.3464, allocations: 135.4 kB / 425.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002539/0.349, allocations: 364.1 kB / 425.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.3493, allocations: 263.3 kB / 426 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.094e-05/0.3493, allocations: 70.38 kB / 426 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.3495, allocations: 84.12 kB / 426.1 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/0.3512, allocations: 0.8719 MB / 427 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.3512, allocations: 3.953 kB / 427 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-05/0.3513, allocations: 40 kB / 427 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.3513, allocations: 20 kB / 427.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001802/0.3531, allocations: 0.7886 MB / 427.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004531/0.3577, allocations: 3.029 MB / 430.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.3591, allocations: 0.9966 MB / 431.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005317/0.3596, allocations: 230.4 kB / 432.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001701/0.3598, allocations: 190.7 kB / 432.3 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.3599, allocations: 43.11 kB / 432.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 1.934e-06/0.3599, allocations: 0 / 432.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007416/0.3673, allocations: 2.401 MB / 434.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.3674, allocations: 85.67 kB / 434.8 MB, free: 6.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003891/0.3678, allocations: 324.3 kB / 435.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.3678, allocations: 33.7 kB / 435.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/0.3681, allocations: 375.9 kB / 435.5 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.3683, allocations: 218.1 kB / 435.7 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002449/0.3685, allocations: 146.5 kB / 435.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.3687, allocations: 362.7 kB / 436.2 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007588/0.3695, allocations: 261.8 kB / 436.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009647/0.3705, allocations: 0.5081 MB / 437 MB, free: 4.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.3722, allocations: 0.8076 MB / 437.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.3722, allocations: 4 kB / 437.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002115/0.3743, allocations: 0.8946 MB / 438.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.3744, allocations: 11.94 kB / 438.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.3744, allocations: 11.98 kB / 438.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002688/0.3747, allocations: 77.98 kB / 438.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.3755, allocations: 199.7 kB / 439 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/0.3779, allocations: 2.861 MB / 441.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006447/0.3785, allocations: 63.97 kB / 441.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.195e-05/0.3786, allocations: 35.98 kB / 442 MB, free: 15.29 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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.0003066/0.3789, allocations: 213.6 kB / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.571e-05/0.379, allocations: 47.69 kB / 442.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/0.381, allocations: 0.7274 MB / 442.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.381, allocations: 8 kB / 443 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.381, allocations: 0 / 443 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.381, allocations: 7.922 kB / 443 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.3838, allocations: 1.425 MB / 444.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3838, allocations: 0 / 444.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006378/0.3845, allocations: 131.8 kB / 444.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001919/0.3847, allocations: 65.61 kB / 444.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.901e-05/0.3847, allocations: 12 kB / 444.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002447/0.3872, allocations: 2.849 MB / 447.4 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.3872, allocations: 3.938 kB / 447.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.3898, allocations: 1.075 MB / 448.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.39, allocations: 164.8 kB / 448.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.848e-05/0.3901, allocations: 15.98 kB / 448.7 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004791/0.3906, allocations: 44.02 kB / 448.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.3907, allocations: 52.44 kB / 448.8 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.3908, allocations: 19.98 kB / 448.8 MB, free: 8.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.391, allocations: 223 kB / 449 MB, free: 7.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.391, allocations: 0 / 449 MB, free: 7.805 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007024/0.3918, allocations: 172 kB / 449.2 MB, free: 7.637 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (58): * Single equations (assignments): 56 * 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.003033/0.3948, allocations: 1.69 MB / 450.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.397, allocations: 0.9045 MB / 451.8 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.397, allocations: 0 / 451.8 MB, free: 4.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.398, allocations: 0.5473 MB / 452.3 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.3986, allocations: 52.95 kB / 452.4 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009626/0.4082, allocations: 5.159 MB / 457.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00059/0.4088, allocations: 0.881 MB / 458.4 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004016/0.4093, allocations: 88.52 kB / 458.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003692/0.4096, allocations: 219.3 kB / 458.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4096, allocations: 0 / 458.7 MB, free: 13.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04345/0.4531, allocations: 11.21 MB / 469.9 MB, free: 2.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.4, allocations: 17.77 kB / 470 MB, free: 2.723 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.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_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1)