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.001492/0.001492, allocations: 122.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.00147/0.00147, allocations: 202 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.507/1.507, 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.002657/0.002657, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3401, allocations: 50.54 MB / 409.1 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.007375/0.3476, allocations: 5.086 MB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00456/0.3522, allocations: 2.152 MB / 416.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006469/0.3528, allocations: 16 kB / 416.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00375/0.3567, allocations: 1.403 MB / 417.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001445/0.3581, allocations: 417.4 kB / 418.1 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002782/0.3609, allocations: 1.207 MB / 419.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001459/0.3624, allocations: 0.7511 MB / 420.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001266/0.3637, allocations: 0.6495 MB / 420.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005964/0.3643, allocations: 326.8 kB / 421 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005915/0.3649, allocations: 446.3 kB / 421.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.365, allocations: 68 kB / 421.5 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.3661, allocations: 419.6 kB / 422 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.3663, allocations: 155.5 kB / 422.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004329/0.3667, allocations: 386.1 kB / 422.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002035/0.3688, allocations: 1.221 MB / 423.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.108e-05/0.3688, allocations: 0 / 423.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3688, allocations: 3.938 kB / 423.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.3689, allocations: 0 / 423.7 MB, free: 2.688 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.004932/0.3738, allocations: 1.493 MB / 425.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3739, allocations: 8.031 kB / 425.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.374, allocations: 131.4 kB / 425.3 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002718/0.3768, allocations: 392.1 kB / 425.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.3771, allocations: 263.4 kB / 426 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.3773, allocations: 62.38 kB / 426 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.3775, allocations: 88.12 kB / 426.1 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/0.3794, allocations: 0.8642 MB / 427 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.849e-05/0.3795, allocations: 7.953 kB / 427 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-05/0.3795, allocations: 36 kB / 427 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.3796, allocations: 20 kB / 427.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.3816, allocations: 0.8042 MB / 427.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.3866, allocations: 3.018 MB / 430.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.388, allocations: 0.9924 MB / 431.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005669/0.3886, allocations: 246.4 kB / 432.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002247/0.3889, allocations: 178.7 kB / 432.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/0.3889, allocations: 39.12 kB / 432.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.685e-06/0.3889, allocations: 0 / 432.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00805/0.397, allocations: 2.409 MB / 434.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.3971, allocations: 85.67 kB / 434.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004769/0.3976, allocations: 324.3 kB / 435.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.896e-05/0.3977, allocations: 33.7 kB / 435.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003255/0.398, allocations: 371.9 kB / 435.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.3982, allocations: 218.1 kB / 435.7 MB, free: 6.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/0.3985, allocations: 146.6 kB / 435.9 MB, free: 5.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.3987, allocations: 354.7 kB / 436.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.3995, allocations: 265.8 kB / 436.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.4006, allocations: 0.5121 MB / 437 MB, free: 4.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.4024, allocations: 0.8037 MB / 437.8 MB, free: 3.746 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4024, allocations: 0 / 437.8 MB, free: 3.746 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002314/0.4047, allocations: 0.9022 MB / 438.7 MB, free: 2.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.4048, allocations: 12.56 kB / 438.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.4048, allocations: 12 kB / 438.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002982/0.4051, allocations: 73.7 kB / 438.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008867/0.406, allocations: 207.7 kB / 439 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002949/0.409, allocations: 2.865 MB / 441.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008019/0.4098, allocations: 63.97 kB / 441.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.4099, allocations: 39.92 kB / 442 MB, free: 15.28 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.0003818/0.4103, allocations: 217.5 kB / 442.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.4104, allocations: 51.64 kB / 442.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002049/0.4125, allocations: 0.7273 MB / 443 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.4125, allocations: 12 kB / 443 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4125, allocations: 0 / 443 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.4125, allocations: 7.922 kB / 443 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.4155, allocations: 1.409 MB / 444.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.4156, allocations: 0 / 444.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.4163, allocations: 139.8 kB / 444.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/0.4165, allocations: 53.67 kB / 444.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.4165, allocations: 16 kB / 444.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002514/0.4191, allocations: 2.852 MB / 447.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4191, allocations: 3.938 kB / 447.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/0.4219, allocations: 1.087 MB / 448.5 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.4222, allocations: 160.8 kB / 448.7 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.4223, allocations: 12 kB / 448.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.4228, allocations: 43.95 kB / 448.8 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.423, allocations: 48.48 kB / 448.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.334e-05/0.423, allocations: 16 kB / 448.8 MB, free: 8.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002766/0.4233, allocations: 227.1 kB / 449 MB, free: 7.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4233, allocations: 0 / 449 MB, free: 7.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007452/0.4241, allocations: 176 kB / 449.2 MB, free: 7.629 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.003389/0.4275, allocations: 1.689 MB / 450.9 MB, free: 5.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002283/0.4298, allocations: 0.9124 MB / 451.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4298, allocations: 0 / 451.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.431, allocations: 0.5433 MB / 452.4 MB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.4317, allocations: 57.08 kB / 452.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.4425, allocations: 5.199 MB / 457.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006009/0.4432, allocations: 0.8888 MB / 458.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004369/0.4436, allocations: 88.52 kB / 458.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.444, allocations: 223.3 kB / 458.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.444, allocations: 0 / 458.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04918/0.4932, allocations: 11.34 MB / 470.1 MB, free: 2.531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.3, allocations: 14.5 kB / 470.2 MB, free: 2.523 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 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)