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.001811/0.001812, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.002304/0.002304, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.192/2.192, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.001981, allocations: 53.05 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1746, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00991/0.1845, allocations: 5.033 MB / 355.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005373/0.1899, allocations: 2.086 MB / 357.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000833/0.1908, allocations: 16 kB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.1957, allocations: 1.411 MB / 358.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002612/0.1983, allocations: 0.5709 MB / 359.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.2016, allocations: 1.045 MB / 360.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001938/0.2036, allocations: 0.7317 MB / 361.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.2053, allocations: 0.6614 MB / 361.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007589/0.2061, allocations: 342.7 kB / 362.1 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001046/0.2072, allocations: 430.3 kB / 362.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002591/0.2074, allocations: 68 kB / 362.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001528/0.209, allocations: 391.6 kB / 362.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002616/0.2093, allocations: 167.4 kB / 363.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006288/0.2099, allocations: 374.2 kB / 363.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002654/0.2126, allocations: 1.176 MB / 364.6 MB, free: 5.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2126, allocations: 4 kB / 364.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2126, allocations: 0 / 364.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.014e-05/0.2127, allocations: 0 / 364.6 MB, free: 5.785 MB / 302.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.007336/0.22, allocations: 1.446 MB / 366.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.276e-05/0.2201, allocations: 12.03 kB / 366.1 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003439/0.2205, allocations: 131.3 kB / 366.2 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004115/0.2246, allocations: 387.6 kB / 366.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004205/0.225, allocations: 257.2 kB / 366.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.2252, allocations: 62.38 kB / 366.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002425/0.2254, allocations: 84.38 kB / 367 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003174/0.2286, allocations: 0.8759 MB / 367.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.589e-05/0.2287, allocations: 3.906 kB / 367.9 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.2288, allocations: 36 kB / 367.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.039e-05/0.2289, allocations: 20 kB / 367.9 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003738/0.2326, allocations: 0.8042 MB / 368.7 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2952/0.5279, allocations: 2.946 MB / 371.7 MB, free: 23.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.5302, allocations: 1.008 MB / 372.7 MB, free: 22.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.5312, allocations: 238.9 kB / 372.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.5314, allocations: 98.39 kB / 373 MB, free: 22.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.5315, allocations: 41.12 kB / 373.1 MB, free: 22.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 5.971e-06/0.5315, allocations: 0 / 373.1 MB, free: 22.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01476/0.5462, allocations: 2.424 MB / 375.5 MB, free: 21.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.5463, allocations: 85.3 kB / 375.6 MB, free: 21.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/0.5469, allocations: 296.5 kB / 375.9 MB, free: 21.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.196e-05/0.547, allocations: 38.05 kB / 375.9 MB, free: 21.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.5473, allocations: 363.3 kB / 376.3 MB, free: 21.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.5475, allocations: 210.3 kB / 376.5 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003665/0.5479, allocations: 155 kB / 376.6 MB, free: 21.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.548, allocations: 350.6 kB / 377 MB, free: 20.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.5496, allocations: 272.5 kB / 377.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.5512, allocations: 0.5094 MB / 377.7 MB, free: 20.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003098/0.5543, allocations: 0.808 MB / 378.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.5544, allocations: 2.531 kB / 378.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004137/0.5585, allocations: 0.9002 MB / 379.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.184e-05/0.5586, allocations: 13.56 kB / 379.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/0.5586, allocations: 7.875 kB / 379.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004691/0.5591, allocations: 71.97 kB / 379.5 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.5607, allocations: 199.6 kB / 379.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.5633, allocations: 2.862 MB / 382.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.5647, allocations: 72.8 kB / 382.7 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.5648, allocations: 35.92 kB / 382.7 MB, free: 16.49 MB / 302.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.0005661/0.5654, allocations: 217.9 kB / 382.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.5656, allocations: 44.47 kB / 383 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003612/0.5692, allocations: 0.7448 MB / 383.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/0.5693, allocations: 9.812 kB / 383.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.5693, allocations: 0.9375 kB / 383.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.5693, allocations: 10.14 kB / 383.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0053/0.5746, allocations: 1.432 MB / 385.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.5747, allocations: 0 / 385.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.576, allocations: 135.4 kB / 385.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003844/0.5764, allocations: 62.89 kB / 385.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.212e-05/0.5765, allocations: 16.23 kB / 385.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/0.5792, allocations: 2.847 MB / 388.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.5792, allocations: 4.734 kB / 388.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/0.5838, allocations: 1.091 MB / 389.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/0.5843, allocations: 157.4 kB / 389.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.5845, allocations: 15.08 kB / 389.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008798/0.5853, allocations: 54.81 kB / 389.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.5856, allocations: 44.16 kB / 389.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.878e-05/0.5857, allocations: 19.81 kB / 389.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003654/0.5861, allocations: 211 kB / 389.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5861, allocations: 0 / 389.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001398/0.5875, allocations: 172.4 kB / 390 MB, free: 11.52 MB / 302.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.005458/0.593, allocations: 1.686 MB / 391.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004152/0.5972, allocations: 0.9412 MB / 392.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.5972, allocations: 0 / 392.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.5991, allocations: 0.5499 MB / 393.1 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009203/0.6, allocations: 51.59 kB / 393.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/0.6141, allocations: 5.195 MB / 398.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.6146, allocations: 0.8797 MB / 399.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007692/0.6154, allocations: 100.4 kB / 399.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004058/0.6158, allocations: 228.3 kB / 399.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6159, allocations: 0 / 399.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06562/0.6815, allocations: 10.98 MB / 410.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/16.51, allocations: 4.5 kB / 410.6 MB, free: 12.24 MB / 318.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