Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001303/0.001304, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2644, allocations: 50.53 MB / 408.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.005176/0.2696, allocations: 4.343 MB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.2724, allocations: 1.705 MB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002316/0.2727, allocations: 12 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00225/0.275, allocations: 1.038 MB / 415.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005921/0.2756, allocations: 250.2 kB / 416.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001439/0.277, allocations: 0.759 MB / 416.9 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000635/0.2777, allocations: 0.6377 MB / 417.5 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007272/0.2784, allocations: 0.5052 MB / 418 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.2788, allocations: 274.9 kB / 418.3 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.2791, allocations: 358.5 kB / 418.6 MB, free: 7.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.597e-05/0.2792, allocations: 56 kB / 418.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005488/0.2798, allocations: 295.7 kB / 419 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.2799, allocations: 139.5 kB / 419.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.2802, allocations: 326.4 kB / 419.4 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.2812, allocations: 0.9835 MB / 420.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.2812, allocations: 0 / 420.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2812, allocations: 0 / 420.4 MB, free: 5.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.2812, allocations: 0 / 420.4 MB, free: 5.883 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.003679/0.2849, allocations: 1.286 MB / 421.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.285, allocations: 11.97 kB / 421.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.2851, allocations: 122.8 kB / 421.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001363/0.2865, allocations: 208.3 kB / 422 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/0.2867, allocations: 239.5 kB / 422.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.2867, allocations: 58.38 kB / 422.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.2869, allocations: 72.38 kB / 422.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.2881, allocations: 0.77 MB / 423.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.865e-05/0.2882, allocations: 11.94 kB / 423.2 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.383e-05/0.2883, allocations: 28 kB / 423.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.2883, allocations: 20 kB / 423.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.2895, allocations: 0.6571 MB / 423.9 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.2934, allocations: 3.262 MB / 427.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.2955, allocations: 2.071 MB / 429.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005784/0.2961, allocations: 323.5 kB / 429.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.2963, allocations: 186.8 kB / 429.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.2963, allocations: 43.44 kB / 429.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.474e-06/0.2963, allocations: 0 / 429.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002441/0.2988, allocations: 1.134 MB / 430.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.2988, allocations: 111.7 kB / 431 MB, free: 10.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.2991, allocations: 282.4 kB / 431.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.888e-05/0.2992, allocations: 37.64 kB / 431.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.2994, allocations: 304.4 kB / 431.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.2995, allocations: 261.8 kB / 431.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.2997, allocations: 138.6 kB / 432 MB, free: 9.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.2999, allocations: 354.7 kB / 432.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.3003, allocations: 225.9 kB / 432.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005515/0.3009, allocations: 378.3 kB / 432.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.302, allocations: 0.6376 MB / 433.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.302, allocations: 0 / 433.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001462/0.3034, allocations: 0.8305 MB / 434.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3035, allocations: 8 kB / 434.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.3035, allocations: 8.312 kB / 434.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003976/0.3039, allocations: 121.6 kB / 434.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006172/0.3045, allocations: 159.8 kB / 434.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003106/0.3076, allocations: 3.794 MB / 438.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.3082, allocations: 83.44 kB / 438.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/0.3082, allocations: 31.98 kB / 438.6 MB, free: 2.418 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.0002627/0.3085, allocations: 201.7 kB / 438.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.3086, allocations: 43.72 kB / 438.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.31, allocations: 0.7452 MB / 439.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.31, allocations: 8 kB / 439.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.31, allocations: 8 kB / 439.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.3101, allocations: 7.922 kB / 439.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.3123, allocations: 1.485 MB / 441.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3124, allocations: 0 / 441.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/0.3128, allocations: 111.9 kB / 441.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002907/0.3131, allocations: 110 kB / 441.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.3132, allocations: 15.98 kB / 441.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/0.3159, allocations: 3.354 MB / 444.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3159, allocations: 0 / 444.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.3176, allocations: 1.125 MB / 445.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.3178, allocations: 128.6 kB / 445.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/0.3178, allocations: 19.98 kB / 445.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003679/0.3182, allocations: 28.05 kB / 446 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3183, allocations: 52.58 kB / 446 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.439e-05/0.3184, allocations: 24 kB / 446 MB, free: 10.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.3185, allocations: 193.9 kB / 446.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3185, allocations: 0 / 446.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007881/0.3193, allocations: 219.6 kB / 446.4 MB, free: 10.15 MB / 366.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.002183/0.3215, allocations: 1.712 MB / 448.2 MB, free: 8.398 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.323, allocations: 0.8835 MB / 449 MB, free: 7.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.323, allocations: 0 / 449 MB, free: 7.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007238/0.3238, allocations: 0.5641 MB / 449.6 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.3243, allocations: 43.55 kB / 449.6 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006394/0.3307, allocations: 4.77 MB / 454.4 MB, free: 1.887 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.3311, allocations: 0.8616 MB / 455.3 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003328/0.3314, allocations: 80.34 kB / 455.4 MB, free: 0.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002727/0.3317, allocations: 199.4 kB / 455.6 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of SimCode: time 1.153e-06/0.3317, allocations: 0 / 455.6 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0349/0.3666, allocations: 10.75 MB / 466.3 MB, free: 6.164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.52, allocations: 15.84 kB / 466.3 MB, free: 6.148 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches