Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_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_0_0_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 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 113.4 kB / 17.05 MB, free: 6.082 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.001209/0.001209, allocations: 191 kB / 17.99 MB, free: 5.176 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2758, allocations: 49.45 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.005927/0.2818, allocations: 5.065 MB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003312/0.2851, allocations: 2.102 MB / 407.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.2854, allocations: 16 kB / 407.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002848/0.2883, allocations: 1.406 MB / 408.8 MB, free: 200 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.2896, allocations: 0.5705 MB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.2915, allocations: 1.071 MB / 410.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007519/0.2922, allocations: 0.7395 MB / 411.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008183/0.2931, allocations: 0.6534 MB / 411.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003717/0.2935, allocations: 334.8 kB / 412.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000399/0.2939, allocations: 430.3 kB / 412.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.012e-05/0.294, allocations: 71.94 kB / 412.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007092/0.2947, allocations: 395.6 kB / 413.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.2948, allocations: 163.4 kB / 413.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002829/0.2951, allocations: 378.1 kB / 413.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.2963, allocations: 1.209 MB / 414.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2963, allocations: 4 kB / 414.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2964, allocations: 0 / 414.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.2964, allocations: 0 / 414.8 MB, free: 10.19 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.004109/0.3005, allocations: 1.477 MB / 416.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.3005, allocations: 15.89 kB / 416.3 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.3007, allocations: 127.4 kB / 416.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002579/0.3033, allocations: 388.1 kB / 416.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.3035, allocations: 267.8 kB / 417.1 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.081e-05/0.3036, allocations: 66.38 kB / 417.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3037, allocations: 88.11 kB / 417.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.3054, allocations: 0.8797 MB / 418.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.3054, allocations: 3.984 kB / 418.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.3055, allocations: 32 kB / 418.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.3055, allocations: 20 kB / 418.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.3074, allocations: 0.8042 MB / 419 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.3115, allocations: 2.943 MB / 421.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.3127, allocations: 1.01 MB / 422.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005348/0.3133, allocations: 238.4 kB / 423.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.1e-05/0.3134, allocations: 93.66 kB / 423.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.3134, allocations: 35.12 kB / 423.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 1.773e-06/0.3134, allocations: 3.938 kB / 423.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.007952/0.3214, allocations: 2.44 MB / 425.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.3214, allocations: 85.67 kB / 425.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.3218, allocations: 312.4 kB / 426.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.3218, allocations: 41.7 kB / 426.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.3221, allocations: 371.9 kB / 426.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.3222, allocations: 230 kB / 426.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.3225, allocations: 146.5 kB / 426.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3226, allocations: 358.7 kB / 427.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008039/0.3234, allocations: 273.8 kB / 427.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009504/0.3244, allocations: 0.5042 MB / 428 MB, free: 12.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/0.3262, allocations: 0.8115 MB / 428.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.3262, allocations: 0 / 428.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002229/0.3285, allocations: 0.9106 MB / 429.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.3285, allocations: 11.94 kB / 429.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.3285, allocations: 8 kB / 429.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002349/0.3288, allocations: 73.61 kB / 429.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008678/0.3296, allocations: 203.7 kB / 430 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.3316, allocations: 2.864 MB / 432.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007028/0.3323, allocations: 59.94 kB / 432.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.948e-05/0.3324, allocations: 44.05 kB / 433 MB, free: 6.918 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.0003143/0.3327, allocations: 217.6 kB / 433.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.3328, allocations: 47.66 kB / 433.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.3349, allocations: 0.743 MB / 434 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.3349, allocations: 8 kB / 434 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3349, allocations: 0 / 434 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.3349, allocations: 7.922 kB / 434 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.3378, allocations: 1.425 MB / 435.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3378, allocations: 0 / 435.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007244/0.3385, allocations: 139.8 kB / 435.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000189/0.3387, allocations: 69.61 kB / 435.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.848e-05/0.3388, allocations: 15.98 kB / 435.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.3407, allocations: 2.848 MB / 438.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3408, allocations: 7.875 kB / 438.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002651/0.3434, allocations: 1.087 MB / 439.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.3437, allocations: 164.8 kB / 439.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.3438, allocations: 15.97 kB / 439.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005458/0.3443, allocations: 52.02 kB / 439.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.3444, allocations: 48.44 kB / 439.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.3445, allocations: 19.98 kB / 439.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.3447, allocations: 219.1 kB / 440.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3447, allocations: 0 / 440.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006828/0.3454, allocations: 172 kB / 440.3 MB, free: 15.22 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.003088/0.3485, allocations: 1.701 MB / 442 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.3506, allocations: 0.9193 MB / 442.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3506, allocations: 0 / 442.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.3517, allocations: 0.5559 MB / 443.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.3522, allocations: 45.02 kB / 443.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009272/0.3615, allocations: 5.215 MB / 448.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.362, allocations: 0.8848 MB / 449.6 MB, free: 5.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004412/0.3625, allocations: 92.52 kB / 449.7 MB, free: 5.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003414/0.3628, allocations: 223.3 kB / 449.9 MB, free: 5.188 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3629, allocations: 0 / 449.9 MB, free: 5.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04632/0.4092, allocations: 11.34 MB / 461.2 MB, free: 10.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.69, allocations: 11.41 kB / 461.2 MB, free: 10.07 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches