Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.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.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",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.001497/0.001497, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001205/0.001205, allocations: 200 kB / 18.01 MB, free: 5.047 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.245, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.005771/0.2508, allocations: 4.336 MB / 404.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003187/0.2541, allocations: 1.631 MB / 406.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004349/0.2545, allocations: 12 kB / 406.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.2571, allocations: 1.029 MB / 407.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007821/0.2579, allocations: 250.2 kB / 407.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001614/0.2595, allocations: 0.7928 MB / 408.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008828/0.2604, allocations: 0.6452 MB / 408.9 MB, free: 88 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008094/0.2613, allocations: 0.5091 MB / 409.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003852/0.2617, allocations: 270.9 kB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004343/0.2621, allocations: 362.5 kB / 410.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.363e-05/0.2622, allocations: 56 kB / 410.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006157/0.2628, allocations: 271.7 kB / 410.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.2629, allocations: 143.5 kB / 410.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.2632, allocations: 326.4 kB / 410.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.2644, allocations: 0.9641 MB / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2644, allocations: 0 / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.709e-06/0.2644, allocations: 0 / 411.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2645, allocations: 3.938 kB / 411.8 MB, free: 13.2 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003633/0.2681, allocations: 1.271 MB / 413.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2681, allocations: 12.03 kB / 413.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.2683, allocations: 118.8 kB / 413.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.2697, allocations: 208.3 kB / 413.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.2699, allocations: 247.5 kB / 413.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-05/0.27, allocations: 50.38 kB / 413.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.2701, allocations: 80.33 kB / 413.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.2716, allocations: 0.7738 MB / 414.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.2716, allocations: 4 kB / 414.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.746e-05/0.2717, allocations: 28 kB / 414.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.746e-05/0.2717, allocations: 20 kB / 414.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.2732, allocations: 0.661 MB / 415.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004476/0.2777, allocations: 3.1 MB / 418.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.2803, allocations: 2.064 MB / 420.4 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006839/0.281, allocations: 339.6 kB / 420.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/0.2811, allocations: 97.73 kB / 420.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.2812, allocations: 43.22 kB / 420.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=72): time 2.405e-06/0.2812, allocations: 0 / 420.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.002749/0.2839, allocations: 1.142 MB / 422 MB, free: 2.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/0.284, allocations: 111.5 kB / 422.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.2844, allocations: 274.5 kB / 422.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.736e-05/0.2844, allocations: 41.64 kB / 422.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.2847, allocations: 308.3 kB / 422.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.2849, allocations: 261.8 kB / 423 MB, free: 1.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/0.2851, allocations: 138.6 kB / 423.2 MB, free: 1.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.2853, allocations: 350.7 kB / 423.5 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005356/0.2858, allocations: 229.9 kB / 423.7 MB, free: 476 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006354/0.2865, allocations: 389 kB / 424.1 MB, free: 32 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.2877, allocations: 0.6337 MB / 424.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.2877, allocations: 0 / 424.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001745/0.2895, allocations: 0.8306 MB / 425.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.2895, allocations: 11.98 kB / 425.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.2895, allocations: 4 kB / 425.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004213/0.29, allocations: 129.8 kB / 425.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006387/0.2906, allocations: 159.8 kB / 425.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.2944, allocations: 3.798 MB / 429.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005822/0.295, allocations: 91.38 kB / 429.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.476e-05/0.2951, allocations: 31.98 kB / 429.8 MB, free: 10 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (86): * Single equations (assignments): 84 * 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,7,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.2954, allocations: 201.7 kB / 430 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.2956, allocations: 43.72 kB / 430 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.2972, allocations: 0.7414 MB / 430.8 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.2973, allocations: 8 kB / 430.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2973, allocations: 0 / 430.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.2973, allocations: 15.92 kB / 430.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002721/0.3, allocations: 1.481 MB / 432.3 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3, allocations: 3.938 kB / 432.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005018/0.3005, allocations: 115.9 kB / 432.4 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003237/0.3009, allocations: 109.6 kB / 432.5 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.688e-05/0.3009, allocations: 19.98 kB / 432.5 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003064/0.304, allocations: 3.357 MB / 435.9 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.304, allocations: 3.984 kB / 435.9 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.3061, allocations: 1.121 MB / 437 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.3063, allocations: 120.8 kB / 437.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.286e-05/0.3063, allocations: 16 kB / 437.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.3067, allocations: 36.03 kB / 437.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3069, allocations: 48.59 kB / 437.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.3069, allocations: 19.98 kB / 437.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.3072, allocations: 194 kB / 437.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3072, allocations: 0 / 437.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008345/0.308, allocations: 223.5 kB / 437.6 MB, free: 1.738 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.port_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 (60): * Single equations (assignments): 58 * 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,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002552/0.3106, allocations: 1.722 MB / 439.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.3124, allocations: 0.8835 MB / 440.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3125, allocations: 0 / 440.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009403/0.3134, allocations: 0.5603 MB / 440.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000531/0.314, allocations: 36.56 kB / 440.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008211/0.3222, allocations: 4.794 MB / 445.6 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005576/0.3228, allocations: 0.8616 MB / 446.5 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003584/0.3232, allocations: 80.36 kB / 446.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.3235, allocations: 203.3 kB / 446.8 MB, free: 8.293 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3235, allocations: 4 kB / 446.8 MB, free: 8.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04191/0.3654, allocations: 10.7 MB / 457.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.94, allocations: 4.062 kB / 457.5 MB, free: 13.77 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CuboidSections/CuboidSections.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches