Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.001397/0.001397, allocations: 115.8 kB / 17.07 MB, free: 5.984 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.001689/0.00169, allocations: 190.9 kB / 18 MB, free: 5.074 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.442/1.442, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 43.94 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3091, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.007757/0.3169, allocations: 6.709 MB / 407 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004313/0.3213, allocations: 2.39 MB / 409.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005953/0.3219, allocations: 20 kB / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003949/0.3259, allocations: 1.883 MB / 411.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002075/0.328, allocations: 0.7067 MB / 412 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002298/0.3303, allocations: 1.18 MB / 413.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001523/0.3318, allocations: 1.121 MB / 414.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.3332, allocations: 0.9388 MB / 415.2 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006077/0.3338, allocations: 486.1 kB / 415.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006592/0.3345, allocations: 0.6186 MB / 416.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.3346, allocations: 100 kB / 416.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008978/0.3355, allocations: 431.6 kB / 416.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.3357, allocations: 251 kB / 417 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004964/0.3362, allocations: 0.5558 MB / 417.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.338, allocations: 1.657 MB / 419.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.338, allocations: 0 / 419.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.338, allocations: 0 / 419.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.338, allocations: 0 / 419.3 MB, free: 5.707 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.006069/0.3441, allocations: 2.043 MB / 421.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3441, allocations: 12.03 kB / 421.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.3443, allocations: 186.4 kB / 421.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003473/0.3478, allocations: 0.5114 MB / 422 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.3482, allocations: 314.9 kB / 422.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.383e-05/0.3483, allocations: 98.89 kB / 422.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.3485, allocations: 128.4 kB / 422.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00227/0.3508, allocations: 1.296 MB / 423.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.794e-05/0.3508, allocations: 7.953 kB / 423.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.3509, allocations: 51.98 kB / 423.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.674e-05/0.351, allocations: 36 kB / 423.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002385/0.3534, allocations: 1.193 MB / 425.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006282/0.3596, allocations: 4.191 MB / 429.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.3623, allocations: 2.456 MB / 431.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009689/0.3633, allocations: 0.5008 MB / 432.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.3635, allocations: 110.1 kB / 432.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.3635, allocations: 47.56 kB / 432.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 3.216e-06/0.3635, allocations: 0 / 432.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01071/0.3742, allocations: 3.805 MB / 436.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.824e-05/0.3743, allocations: 94.11 kB / 436.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004467/0.3748, allocations: 389.6 kB / 436.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.3749, allocations: 49.64 kB / 436.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/0.3751, allocations: 472.5 kB / 437.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.3754, allocations: 448.1 kB / 437.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003218/0.3757, allocations: 231.5 kB / 437.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3759, allocations: 374.8 kB / 438.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.3769, allocations: 435.8 kB / 438.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.3782, allocations: 0.7035 MB / 439.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002281/0.3805, allocations: 1.179 MB / 440.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3805, allocations: 3.938 kB / 440.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002992/0.3835, allocations: 1.471 MB / 442 MB, free: 13.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.3835, allocations: 11.94 kB / 442 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.3835, allocations: 8 kB / 442 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005293/0.3841, allocations: 193.6 kB / 442.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.3853, allocations: 295.6 kB / 442.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.3894, allocations: 4.367 MB / 446.9 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009552/0.3904, allocations: 79.91 kB / 447 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.178e-05/0.3905, allocations: 59.97 kB / 447 MB, free: 8.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004309/0.391, allocations: 274.3 kB / 447.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.3911, allocations: 67.77 kB / 447.4 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003009/0.3941, allocations: 1.347 MB / 448.7 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.3941, allocations: 19.88 kB / 448.7 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3942, allocations: 7.984 kB / 448.7 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.3942, allocations: 7.969 kB / 448.7 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004567/0.3988, allocations: 2.614 MB / 451.4 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.3988, allocations: 0 / 451.4 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000981/0.3998, allocations: 215.9 kB / 451.6 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004262/0.4002, allocations: 165.5 kB / 451.7 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-05/0.4003, allocations: 27.98 kB / 451.8 MB, free: 3.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003962/0.4042, allocations: 4.18 MB / 455.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.4043, allocations: 3.938 kB / 455.9 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003852/0.4081, allocations: 1.892 MB / 457.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003574/0.4085, allocations: 228.5 kB / 458.1 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.4086, allocations: 24 kB / 458.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006822/0.4093, allocations: 63.95 kB / 458.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/0.4095, allocations: 100.9 kB / 458.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.368e-05/0.4096, allocations: 35.98 kB / 458.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003058/0.4099, allocations: 267.2 kB / 458.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4099, allocations: 0 / 458.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001148/0.4111, allocations: 307.9 kB / 458.8 MB, free: 12.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (106): * Single equations (assignments): 104 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004311/0.4154, allocations: 2.497 MB / 461.3 MB, free: 9.828 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00336/0.4188, allocations: 1.458 MB / 462.8 MB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4188, allocations: 0 / 462.8 MB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.4203, allocations: 0.87 MB / 463.7 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/0.4209, allocations: 69.67 kB / 463.7 MB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/0.4342, allocations: 7.67 MB / 471.4 MB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007039/0.435, allocations: 1.005 MB / 472.4 MB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006272/0.4356, allocations: 150.6 kB / 472.5 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005639/0.4362, allocations: 347.3 kB / 472.9 MB, free: 13.86 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4362, allocations: 0 / 472.9 MB, free: 13.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04637/0.4826, allocations: 17.32 MB / 490.2 MB, free: 12.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.14/22.62, allocations: 7.281 kB / 490.2 MB, free: 12.77 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_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_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches