Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.001344/0.001344, allocations: 106.2 kB / 17.06 MB, free: 6.098 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.00143/0.00143, allocations: 200.1 kB / 18 MB, free: 5.168 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.461/1.461, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3233, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004434/0.3278, allocations: 2.832 MB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3293, allocations: 0.7516 MB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.3295, allocations: 4 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.3298, allocations: 63.44 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002888/0.3301, allocations: 103.2 kB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002786/0.3304, allocations: 103.8 kB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004325/0.3308, allocations: 402.4 kB / 404.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.3311, allocations: 126.9 kB / 404.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.3314, allocations: 155.4 kB / 404.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002744/0.3317, allocations: 175.2 kB / 404.9 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-05/0.3317, allocations: 36 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.671e-05/0.3318, allocations: 32 kB / 405 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.92e-05/0.3319, allocations: 79.75 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.3321, allocations: 179.1 kB / 405.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005843/0.3327, allocations: 409.2 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.403e-06/0.3327, allocations: 0 / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3327, allocations: 3.938 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.3327, allocations: 0 / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00137/0.3341, allocations: 0.6584 MB / 406.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.3342, allocations: 8.031 kB / 406.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.743e-05/0.3343, allocations: 74.72 kB / 406.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.3344, allocations: 36.7 kB / 406.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004762/0.3348, allocations: 284.7 kB / 406.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.3349, allocations: 21.03 kB / 406.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.3349, allocations: 36.38 kB / 406.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006259/0.3356, allocations: 290.2 kB / 407 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3356, allocations: 0 / 407 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.3356, allocations: 12 kB / 407.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.3357, allocations: 8 kB / 407.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006365/0.3363, allocations: 254.4 kB / 407.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.3381, allocations: 1.12 MB / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/0.3386, allocations: 158.5 kB / 408.6 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.3388, allocations: 64.81 kB / 408.6 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.3388, allocations: 7.906 kB / 408.7 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3388, allocations: 38.5 kB / 408.7 MB, free: 76 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.054e-06/0.3389, allocations: 0 / 408.7 MB, free: 76 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.002179/0.341, allocations: 0.592 MB / 409.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.3411, allocations: 59.34 kB / 409.3 MB, free: 15.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.3414, allocations: 282.6 kB / 409.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.3415, allocations: 29.7 kB / 409.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.3416, allocations: 232.1 kB / 409.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.3417, allocations: 83.3 kB / 410 MB, free: 14.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3418, allocations: 61.66 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.342, allocations: 338.8 kB / 410.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003091/0.3423, allocations: 99.92 kB / 410.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003692/0.3427, allocations: 195.9 kB / 410.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006505/0.3434, allocations: 301.8 kB / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3434, allocations: 8 kB / 410.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008942/0.3443, allocations: 401.4 kB / 411.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3443, allocations: 4 kB / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3443, allocations: 4 kB / 411.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000276/0.3446, allocations: 61.67 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000336/0.3449, allocations: 75.89 kB / 411.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002382/0.3473, allocations: 2.841 MB / 414.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.3476, allocations: 23.97 kB / 414.3 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.3477, allocations: 16 kB / 414.4 MB, free: 9.973 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001975/0.3479, allocations: 149.7 kB / 414.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/0.3479, allocations: 27.92 kB / 414.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.326e-05/0.348, allocations: 30.17 kB / 414.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.348, allocations: 4 kB / 414.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.348, allocations: 0 / 414.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.348, allocations: 144 / 414.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.3485, allocations: 337.4 kB / 414.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3485, allocations: 0 / 414.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.3487, allocations: 47.89 kB / 414.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001666/0.3489, allocations: 57.67 kB / 415 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.3489, allocations: 0 / 415 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.3511, allocations: 2.837 MB / 417.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3511, allocations: 0 / 417.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007849/0.3519, allocations: 383 kB / 418.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.85e-05/0.352, allocations: 104.9 kB / 418.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.3521, allocations: 4 kB / 418.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.3523, allocations: 15.98 kB / 418.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.703e-05/0.3524, allocations: 23.91 kB / 418.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.3524, allocations: 8 kB / 418.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.3526, allocations: 198 kB / 418.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3526, allocations: 0 / 418.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000402/0.353, allocations: 72 kB / 418.6 MB, free: 5.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.001168/0.3542, allocations: 0.9137 MB / 419.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3553, allocations: 487.9 kB / 420 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3553, allocations: 3.938 kB / 420 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005597/0.3559, allocations: 346 kB / 420.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.3563, allocations: 26.73 kB / 420.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/0.3613, allocations: 3.011 MB / 423.4 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.3618, allocations: 0.7714 MB / 424.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.362, allocations: 34.31 kB / 424.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.3621, allocations: 99.41 kB / 424.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3621, allocations: 0 / 424.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03588/0.398, allocations: 5.71 MB / 430 MB, free: 9.879 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.68, allocations: 16.91 kB / 430 MB, free: 9.871 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.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_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches