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.001251/0.001256, allocations: 107.7 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.001426/0.001426, allocations: 198.9 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009803/0.0009803, allocations: 47.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3161, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003943/0.3201, allocations: 2.826 MB / 403.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.3213, allocations: 0.7477 MB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.3214, allocations: 4 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.3216, allocations: 71.42 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.3219, allocations: 95.17 kB / 404 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.3221, allocations: 111.8 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.3225, allocations: 398.4 kB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.3227, allocations: 130.9 kB / 404.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002137/0.3229, allocations: 151.4 kB / 404.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.3231, allocations: 179.2 kB / 404.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.3232, allocations: 32 kB / 405 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.926e-05/0.3232, allocations: 36 kB / 405 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.166e-05/0.3233, allocations: 75.75 kB / 405.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.3235, allocations: 183 kB / 405.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003921/0.3239, allocations: 397.3 kB / 405.6 MB, free: 3.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3239, allocations: 4 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3239, allocations: 7.938 kB / 405.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.004e-06/0.3239, allocations: 0 / 405.6 MB, free: 3.367 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.001161/0.3251, allocations: 0.6583 MB / 406.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3251, allocations: 12.03 kB / 406.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.071e-05/0.3252, allocations: 62.73 kB / 406.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/0.3253, allocations: 44.69 kB / 406.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/0.3257, allocations: 280.7 kB / 406.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.3257, allocations: 21.03 kB / 406.7 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.3257, allocations: 32.38 kB / 406.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.3263, allocations: 294.1 kB / 407 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3263, allocations: 4 kB / 407 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/0.3264, allocations: 16 kB / 407.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.3264, allocations: 8 kB / 407.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005849/0.327, allocations: 254.4 kB / 407.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.3285, allocations: 1.116 MB / 408.4 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.3289, allocations: 150.5 kB / 408.6 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001698/0.329, allocations: 64.83 kB / 408.6 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.3291, allocations: 11.89 kB / 408.7 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.3291, allocations: 34.56 kB / 408.7 MB, free: 104 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.3291, allocations: 3.938 kB / 408.7 MB, free: 100 kB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001987/0.3311, allocations: 0.5959 MB / 409.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.3312, allocations: 55.41 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.3314, allocations: 274.6 kB / 409.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3314, allocations: 33.64 kB / 409.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.3316, allocations: 236 kB / 409.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.232e-05/0.3316, allocations: 79.31 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.645e-05/0.3317, allocations: 69.64 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3318, allocations: 334.8 kB / 410.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002732/0.3321, allocations: 95.94 kB / 410.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003328/0.3325, allocations: 203.9 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005957/0.3331, allocations: 297.8 kB / 410.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3331, allocations: 4 kB / 410.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008083/0.3339, allocations: 393.4 kB / 411.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3339, allocations: 12 kB / 411.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.3339, allocations: 7.938 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/0.3342, allocations: 57.67 kB / 411.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003144/0.3345, allocations: 79.89 kB / 411.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.3365, allocations: 2.84 MB / 414.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.3368, allocations: 24.11 kB / 414.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.3368, allocations: 16 kB / 414.3 MB, free: 9.996 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.0001485/0.3369, allocations: 145.7 kB / 414.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.922e-05/0.337, allocations: 23.86 kB / 414.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.626e-05/0.3371, allocations: 34.17 kB / 414.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3371, allocations: 4 kB / 414.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3371, allocations: 4 kB / 414.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3371, allocations: 3.984 kB / 414.6 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003559/0.3375, allocations: 329.4 kB / 414.9 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3375, allocations: 3.984 kB / 414.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.3377, allocations: 43.91 kB / 414.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.3378, allocations: 61.81 kB / 415 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.3379, allocations: 3.984 kB / 415 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/0.3397, allocations: 2.841 MB / 417.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3397, allocations: 0 / 417.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006645/0.3404, allocations: 382.8 kB / 418.2 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.706e-05/0.3405, allocations: 104.9 kB / 418.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.3405, allocations: 0 / 418.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.3407, allocations: 19.97 kB / 418.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.3408, allocations: 15.98 kB / 418.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.3408, allocations: 7.984 kB / 418.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000174/0.341, allocations: 194 kB / 418.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.341, allocations: 0 / 418.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.3414, allocations: 80 kB / 418.6 MB, free: 5.34 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.000932/0.3423, allocations: 0.9131 MB / 419.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008683/0.3432, allocations: 492.2 kB / 420 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3432, allocations: 3.938 kB / 420 MB, free: 3.891 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004539/0.3437, allocations: 342 kB / 420.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.344, allocations: 28.5 kB / 420.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/0.348, allocations: 3.015 MB / 423.4 MB, free: 320 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3484, allocations: 0.7753 MB / 424.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3485, allocations: 22.3 kB / 424.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3486, allocations: 107.4 kB / 424.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3486, allocations: 0 / 424.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.3773, allocations: 5.715 MB / 430 MB, free: 9.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.77/10.15, allocations: 10.66 kB / 430 MB, free: 9.883 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