Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 43.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.332, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.008319/0.3404, allocations: 5.049 MB / 405.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004329/0.3448, allocations: 2.09 MB / 407.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006861/0.3455, allocations: 20 kB / 407.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.349, allocations: 1.396 MB / 408.8 MB, free: 252 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001857/0.3509, allocations: 0.5749 MB / 409.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002211/0.3531, allocations: 1.066 MB / 410.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.3544, allocations: 0.7355 MB / 411.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.3556, allocations: 0.6456 MB / 411.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005538/0.3562, allocations: 342.8 kB / 412.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006376/0.3568, allocations: 426.3 kB / 412.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.357, allocations: 68 kB / 412.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009541/0.3579, allocations: 387.6 kB / 413 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.3581, allocations: 167.4 kB / 413.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004922/0.3586, allocations: 374.2 kB / 413.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002193/0.3608, allocations: 1.198 MB / 414.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3608, allocations: 4 kB / 414.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3608, allocations: 0 / 414.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.194e-05/0.3609, allocations: 4 kB / 414.7 MB, free: 10.27 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.005073/0.366, allocations: 1.458 MB / 416.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.366, allocations: 12.03 kB / 416.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002101/0.3663, allocations: 135.4 kB / 416.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/0.3689, allocations: 388.1 kB / 416.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.3692, allocations: 256.8 kB / 417 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.296e-05/0.3693, allocations: 70.38 kB / 417 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.3694, allocations: 84.38 kB / 417.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.3712, allocations: 0.8796 MB / 418 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/0.3713, allocations: 7.984 kB / 418 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.934e-05/0.3714, allocations: 32 kB / 418.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.3714, allocations: 20 kB / 418.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.3733, allocations: 0.7964 MB / 418.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006394/0.3797, allocations: 2.946 MB / 421.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.3817, allocations: 1.014 MB / 422.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008338/0.3826, allocations: 242.4 kB / 423.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001694/0.3828, allocations: 89.66 kB / 423.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/0.3828, allocations: 39.12 kB / 423.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 4.088e-06/0.3828, allocations: 3.938 kB / 423.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01229/0.3951, allocations: 2.432 MB / 425.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.3953, allocations: 81.67 kB / 425.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/0.3958, allocations: 303.2 kB / 426 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.03e-05/0.3959, allocations: 37.7 kB / 426 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000352/0.3963, allocations: 375.9 kB / 426.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/0.3966, allocations: 218.1 kB / 426.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003726/0.3969, allocations: 154.5 kB / 426.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.3972, allocations: 350.7 kB / 427.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.3986, allocations: 273.8 kB / 427.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.4004, allocations: 0.5003 MB / 427.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/0.4036, allocations: 0.8115 MB / 428.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.343e-06/0.4037, allocations: 0 / 428.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004069/0.4077, allocations: 0.9028 MB / 429.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.4078, allocations: 19.86 kB / 429.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.4078, allocations: 8 kB / 429.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004311/0.4083, allocations: 65.67 kB / 429.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001579/0.4099, allocations: 203.7 kB / 429.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.4135, allocations: 2.876 MB / 432.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.4148, allocations: 63.89 kB / 432.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.415, allocations: 39.98 kB / 432.9 MB, free: 7.055 MB / 350.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.0005778/0.4156, allocations: 217.7 kB / 433.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.4158, allocations: 43.7 kB / 433.1 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003766/0.4196, allocations: 0.7429 MB / 433.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.4196, allocations: 8 kB / 433.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.4196, allocations: 0 / 433.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/0.4197, allocations: 7.922 kB / 433.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005609/0.4253, allocations: 1.425 MB / 435.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4253, allocations: 0 / 435.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.4266, allocations: 131.8 kB / 435.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003249/0.4269, allocations: 57.67 kB / 435.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-05/0.427, allocations: 15.98 kB / 435.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003735/0.4308, allocations: 2.856 MB / 438.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4308, allocations: 0 / 438.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004958/0.4358, allocations: 1.095 MB / 439.5 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004237/0.4362, allocations: 164.8 kB / 439.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/0.4364, allocations: 15.98 kB / 439.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009167/0.4373, allocations: 43.95 kB / 439.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002292/0.4376, allocations: 48.56 kB / 439.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.682e-05/0.4377, allocations: 19.98 kB / 439.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004399/0.4381, allocations: 211.1 kB / 439.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4382, allocations: 0 / 439.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001365/0.4395, allocations: 175.9 kB / 440.1 MB, free: 15.38 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.005855/0.4454, allocations: 1.702 MB / 441.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003807/0.4492, allocations: 0.9124 MB / 442.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/0.4493, allocations: 0 / 442.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002052/0.4513, allocations: 0.5589 MB / 443.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008546/0.4522, allocations: 40.59 kB / 443.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.4683, allocations: 5.156 MB / 448.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007852/0.4691, allocations: 0.8809 MB / 449.4 MB, free: 5.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008108/0.4699, allocations: 92.53 kB / 449.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/0.4705, allocations: 231.3 kB / 449.7 MB, free: 5.41 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4706, allocations: 3.938 kB / 449.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04466/0.5152, allocations: 11.16 MB / 460.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.83, allocations: 448 / 460.9 MB, free: 10.45 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_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_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches